Re: Bitmap Decoding - Challenges

46 views
Skip to first unread message

Mutumba Wycliff

unread,
Nov 12, 2015, 8:02:11 AM11/12/15
to jpos-...@googlegroups.com
Hellos,

Please  advise me on this;
Am trying to decode some ISO message from some postilion switch using jpos-1.5.0, but its crashing with this error;

</nested-exception>
    org.jpos.iso.ISOException: org.jpos.iso.IFA_NUMERIC: Problem unpacking field 15 (java.lang.ArrayIndexOutOfBoundsException: 55)
at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:209)
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:229)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:322)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:531)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:123)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:100)
Nested:java.lang.ArrayIndexOutOfBoundsException: 55
at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:88)
at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:204)
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:229)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:322)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:531)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:123)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:100)
  </iso-exception>
  --- data ---
  0000  30 38 30 30 38 32 32 30  30 30 30 30 30 30 30 30  0800822000000000
0010  30 30 30 30 30 34 30 30  30 30 30 30 30 30 30 30  0000040000000000
0020  30 30 30 30 31 31 31 32  30 33 31 30 30 39 30 33  0000111203100903
0030  31 30 30 39 30 30 31                              1009001


Meanwhile, the data I see in the hex dump is different from what the Switch is sending;
The switch is sending ,

0800:

   [Fixed  n      10 010] 007 [1110033006]

   [Fixed  n       6 006] 011 [033006]

   [Fixed  n       3 003] 070 [001]

binary data

0000(0000)  30 38 30 30 82 20 00 00  00 00 00 00 04 00 00 00   0800. ..........

0016(0010)  00 00 00 00 31 31 31 30  30 33 33 30 30 36 30 33   ....111003300603

0032(0020)  33 30 30 36 30 30 31  


But in my hex dump am seeing something else;

  --- data ---

  0000  30 38 30 30 38 32 32 30  30 30 30 30 30 30 30 30  0800822000000000

0010  30 30 30 30 30 34 30 30  30 30 30 30 30 30 30 30  0000040000000000

0020  30 30 30 30 31 31 31 32  30 33 31 30 30 39 30 33  0000111203100903

0030  31 30 30 39 30 30 31                              1009001 


What could be the problem?


thanks


On Sun, May 10, 2015 at 2:37 AM, <jpos-...@googlegroups.com> wrote:
adhi nugroho <pheno...@gmail.com>: May 09 08:26AM +0700

Hello does anyone know what packager and channel use to connect way4?
 
--
adhi
...more
adhi nugroho <pheno...@gmail.com>: May 09 08:35AM +0700

i have some hexa dump sign on from vendor like this
 
30 38 30 30 82 20 00 00 00 00 00 00 04 00 00 00 00 00 00 00
> 09 22 10 25 05 10 25 06 03 01
 
 
spec tell us to use BCD with definition like ...more
chhil <chi...@gmail.com>: May 09 09:19AM +0530

This is to get you going. I dont know aything about way4, but have put some
test code/packager to parse the network message. You will need to go
through all fields using a spec (reverse engineering ...more
adhi nugroho <pheno...@gmail.com>: May 09 11:06AM +0700

thank you chill is working ...i'll tell the vendor to dump my message
 
 
--
adhi
...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to jpos-users+...@googlegroups.com.



--

Mutumba Wycliffe

Principal Consultant
J FLOYD CONSULTANCY (U) LTD

Plot 36, Bukoto Street

P.O.Box 72299 Kampala, Uganda
T: +256 414 237781  |  M: +256 712 351375 | Email: Wycl...@jfloydconsult.com | Skype: mwycliffe

Web: http://www.jfloydconsult.com

Slogan: There is always a way.

VISIT J FLOYD CONSULTANCY TODAY…DELIVERING VALUE TO YOUR IT INVESTMENTS >


The information in this e-mail is confidential and intended solely for the addressee. Access to this e-mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended, and may be unlawful. The opinions enclosed are those of the sender, and do not necessarily reflect those of JFLOYD CONSULTANCY.

Victor Salaman

unread,
Nov 12, 2015, 8:19:24 AM11/12/15
to jpos-...@googlegroups.com

Hi:

  • jPOS 1.5.0? That’s like a century old, and unsupported.

  • Check your packager, is it aligned with your host spec?

/V


--
--
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/CAOv9iq5d-nw6TYic7B_WGOXu32tuNcL7CvtspHdRPvx0pS1%3DfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

chhil

unread,
Nov 12, 2015, 8:57:58 AM11/12/15
to jpos-...@googlegroups.com
You should be using postpackager.java or postpack.xml with a NACChannel for Postilion.

-chhil

--
Reply all
Reply to author
Forward
0 new messages