exception For input string

46 views
Skip to first unread message

wshehab

unread,
Apr 28, 2009, 2:58:52 AM4/28/09
to jpos-...@googlegroups.com

dear all,

i connected my jpos application to the connex switch and i did signon
message in both way and was successful but when i try to send a financial
transaction from connex switch to jpos interface i got this error:


<log realm="Server_A_Channel/195.195.10.2:1061" at="Tue Apr 28 09:48:01
GMT+02:00 2009.758">
<send>
<isomsg direction="outgoing">
<field id="0" value="0800"/>
<field id="7" value="0428094801"/>
<field id="11" value="123456"/>
<field id="70" value="301"/>
</isomsg>
</send>
</log>
<log realm="localhost.channel.packager" at="Tue Apr 28 09:48:02 GMT+02:00
2009.133">
<unpack>

303831303832323030303030303230303030303030343030303030303030303030303030303432383037353035343132333435363030333031
<bitmap>{1, 7, 11, 39, 70}</bitmap>
<unpack fld="7" packager="org.jpos.iso.IFA_NUMERIC">
<value>0428075054</value>
</unpack>
<unpack fld="11" packager="org.jpos.iso.IFA_NUMERIC">
<value>123456</value>
</unpack>
<unpack fld="39" packager="org.jpos.iso.IF_CHAR">
<value>00</value>
</unpack>
<unpack fld="70" packager="org.jpos.iso.IFA_NUMERIC">
<value>301</value>
</unpack>
</unpack>
</log>
<log realm="Server_A_Channel/195.195.10.2:1061" at="Tue Apr 28 09:48:02
GMT+02:00 2009.133">
<receive>
<isomsg direction="incoming">
<field id="0" value="0810"/>
<field id="7" value="0428075054"/>
<field id="11" value="123456"/>
<field id="39" value="00"/>
<field id="70" value="301"/>
</isomsg>
</receive>
</log>
jPOS XML Output
<isomsg direction="incoming">
<field id="0" value="0810"/>
<field id="7" value="0428075054"/>
<field id="11" value="123456"/>
<field id="39" value="00"/>
<field id="70" value="301"/>
</isomsg>
Message (HEX String)
<log realm="localhost.channel.packager" at="Tue Apr 28 09:48:02 GMT+02:00
2009.133">
<pack>

303831303832323030303030303230303030303030343030303030303030303030303030303432383037353035343132333435363030333031
</pack>
</log>
303831303832323030303030303230303030303030343030303030303030303030303030303432383037353035343132333435363030333031
Message (HEX Dump
<log realm="localhost.channel.packager" at="Tue Apr 28 09:48:02 GMT+02:00
2009.133">
<pack>

303831303832323030303030303230303030303030343030303030303030303030303030303432383037353035343132333435363030333031
</pack>
</log>
0000 30 38 31 30 38 32 32 30 30 30 30 30 30 32 30 30 0810822000000200
0010 30 30 30 30 30 34 30 30 30 30 30 30 30 30 30 30 0000040000000000
0020 30 30 30 30 30 34 32 38 30 37 35 30 35 34 31 32 0000042807505412
0030 33 34 35 36 30 30 33 30 31 345600301

number of bits set to true: 4
bits: {7, 11, 39, 70}
<log realm="Server_A_Channel/195.195.10.2:1061" at="Tue Apr 28 09:48:31
GMT+02:00 2009.931">
<receive>
<isomsg>
</isomsg>
<exception name="For input string: "00=B"">
java.lang.NumberFormatException: For input string: "00=B"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at
org.jpos.iso.channel.HEXChannel.getMessageLength(HEXChannel.java:103)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:588)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:144)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:72)
</exception>
</receive>
</log>
<log realm="Server_A.session/195.195.10.2" at="Tue Apr 28 09:48:31 GMT+02:00
2009.931">
<session-error>
<iso-exception>
unexpected exception
<nested-exception>
java.lang.NumberFormatException: For input string: "00=B"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at
org.jpos.iso.channel.HEXChannel.getMessageLength(HEXChannel.java:103)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:588)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:144)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:72)
</nested-exception>
org.jpos.iso.ISOException: unexpected exception
(java.lang.NumberFormatException: For input string: "00=B")
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:655)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:144)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:72)
Nested:java.lang.NumberFormatException: For input string: "00=B"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at
org.jpos.iso.channel.HEXChannel.getMessageLength(HEXChannel.java:103)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:588)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:144)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:72)
</iso-exception>
</session-error>
</log>
<log realm="Server_A.session/195.195.10.2" at="Tue Apr 28 09:48:32 GMT+02:00
2009.41">
<session-end/>
</log>
<log realm="Server_A.session/195.195.10.2" at="Tue Apr 28 09:49:32 GMT+02:00
2009.91">
<session-start/>
</log>

thanks in advance for your help.
--
View this message in context: http://www.nabble.com/exception-For-input-string-tp23271247p23271247.html
Sent from the jPOS - Users mailing list archive at Nabble.com.

wshehab

unread,
Apr 28, 2009, 7:07:09 AM4/28/09
to jpos-...@googlegroups.com

any help please.......

--
View this message in context: http://www.nabble.com/exception-For-input-string-tp23271247p23274852.html

Alejandro Revilla

unread,
Apr 28, 2009, 7:18:16 AM4/28/09
to jpos-...@googlegroups.com

"00=B" looks like a weird message legnth, I think you have a
channel mismatch there. Watch out for a possible message trailer.
Reply all
Reply to author
Forward
0 new messages