[jpos-users] Invalid Message Length....

View: New views
2 Messages — Rating Filter:   Alert me  

[jpos-users] Invalid Message Length....

by VolDeMort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi y'all,
I'm facing a problem while testing my jPOS QServer implementation.
Actually I'm using a ASCIIChannel and the configuration of my server
is the following:

<?xml version="1.0" ?>
<server class="org.jpos.test.Qserver" logger="Q2"
  name="qserver">
 <attr name="port" type="java.lang.Integer">10000</attr>
 <channel class="org.jpos.iso.channel.ASCIIChannel"
name="asciichannel"
        logger="Q2" packager="org.jpos.iso.packager.GenericPackager"
header="0000">
                <property name="header" value="0000" />
                <property name="packager-config" value="cfg/packager/iso87ascii.xml"/
>
 </channel>
 <request-listener class="org.jpos.bsh.BSHRequestListener"
logger="Q2">
  <property name="source" value="cfg/server.bsh" />
 </request-listener>
</server>

I've a client simulator and,with it all walk normally. But when I try
to receive a ISO 8583 message from another device (using the TCP/IP
Protocol but not implemented using jPOS),there's always an
error ::----- invalid length message   ,C00

For this test the message I'm sopposed to receive is :
0063080082200001000000000400000000000000091810333148278706604787001
where::
header:0063
MTI:0800

I've not more specifications about the sender.....
Thanks (Sorry for the bad english ¤_¤)
--~--~---------~--~----~------------~-------~--~----~
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-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Invalid Message Length....

by Mark Salter-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


VolDeMort wrote:

> I'm facing a problem while testing my jPOS QServer implementation.
> Actually I'm using a ASCIIChannel and the configuration of my server
> is the following:

ASCIIChannel expects to receive a length in 4 ASCII characters like
c'1234' for a length of 1234.

> I've a client simulator and,with it all walk normally.
That will be because your simulator is also using ASCIIChannel?

> But when I try
> to receive a ISO 8583 message from another device (using the TCP/IP
> Protocol but not implemented using jPOS),there's always an
> error ::----- invalid length message   ,C00
So your real device is not using a network format compatible with
ASCIIChannel, meaning your Channel selection is wrong.

ASCIIChannel is 'seeing c',C00' as the length bytes.  If we take c',C00'
as ASCII and convert it to binary, we get:-

   x'2c433030'

which unfortunatly appears to bear no relation to the length you expect
to see - we would need to see the whole packet...

>
> For this test the message I'm sopposed to receive is :
> 0063 0800822000 0100000000 0400000000 0000000918 1033314827 8706604787 001
> where::
> header:0063
> MTI:0800

Is 0063 really the header or is it the message length?  It does reflect
the number of digits, but the device is sending data ahead of the
message you want.  Perhaps it send other header details before the
message length...

>
> I've not more specifications about the sender.....
Well, this is the key, and nothing directly to do with jPos.

Does the owner of the device know what the network protocol format is?
Can you ask them?

What device is connecting - make / model?

Can you run a network trace of the connection and data arriving receive?
 Perhaps using wireshark?  If you can share the trace of the bytes that
form the message arriving, we can probably make some sense of it...

... but you should start by knowing how the device you want to support
likes to connect - speak to the supplier or owner or user as the first
step.  Ask them for detail or documentation.

--
Mark

--~--~---------~--~----~------------~-------~--~----~
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-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---