isoMsg.setHeader("xxx".getBytes())
Cheers
The NACChannel expects a length header to be non zero. How will it gather bytes for the response if the response length header contains a length of 00 00?
Your server is not sending the correct header in the response.
-chhil
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/77f2db34-ab0f-4670-8cc7-64e438f45973%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There is a reason why length headers are important. You could get 2 message responses at the tcp packet level following each other and you would incorrectly gather the 2 responses as one reading all the data in the stream.
How many bytes would you read to determine the message is complete?
I don't think it's reasonable to hack your way through to implement something that is clearly a problem at the server side.
If you still really want to do this. In your overriden receive method read the first 2 bytes and discard, them do what the padchannel does in its receive method.
-chhil
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a642b7d8-b50b-48ab-a223-ae9584ddca12%40googlegroups.com.