[jpos-users] org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jpos-users] org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0

derinlois1
I was able to carry out my Key request which was successful, but on trying to carry out transaction on same system, i am having this the exception below.
Will sincerely appreciate your assistance pls.

My key exchange is below

<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:35.154" lifespan="6ms">
 
<send>
   
<isomsg direction="outgoing">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0800"/>
     
<field id="3" value="9A0000"/>
     
<field id="7" value="0214104927"/>
     
<field id="11" value="775146"/>
     
<field id="12" value="104927"/>
     
<field id="13" value="0214"/>
     
<field id="41" value="2057XR41"/>
   
</isomsg>
 
</send>
</log>
<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:35.289" lifespan="126ms">
 
<receive>
   
<isomsg direction="incoming">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0810"/>
     
<field id="7" value="0214104927"/>
     
<field id="11" value="775146"/>
     
<field id="12" value="104927"/>
     
<field id="13" value="0214"/>
     
<field id="39" value="00"/>
     
<field id="41" value="2057XR41"/>
     
<field id="53" value="F2DB6F406F6E5690F839D7599A1D2EFB10DF390000000000000000000000000000000000000000000000000000000000" type="binary"/>
   
</isomsg>
 
</receive>
</log>



while my transaction is below


<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:36.426" lifespan="2ms">
 
<send>
   
<isomsg direction="outgoing">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0200"/>
     
<field id="2" value="506107_________1061"/>
     
<field id="3" value="001000"/>
     
<field id="4" value="0000050000"/>
     
<field id="7" value="0214104935"/>
     
<field id="11" value="776291"/>
     
<field id="12" value="104935"/>
     
<field id="13" value="0214"/>
     
<field id="14" value="____"/>
     
<field id="18" value="9399"/>
     
<field id="22" value="051"/>
     
<field id="23" value="001"/>
     
<field id="25" value="00"/>
     
<field id="26" value="04"/>
     
<field id="28" value="D00000000"/>
     
<field id="32" value="506107"/>
     
<field id="35" value="519899______8014=____________________"/>
     
<field id="37" value="2057XR776291"/>
     
<field id="40" value="226"/>
     
<field id="41" value="20390060"/>
     
<field id="42" value="203900000000033"/>
     
<field id="43" value="Flat 236, Justine Street"/>
     
<field id="49" value="566"/>
     
<field id="52" value="AA55AA55" type="binary"/>
     
<field id="55" value="[WIPED]"/>
     
<field id="123" value="211201513344002"/>
     
<field id="128" value="47fc6fcef2f697bf8115cfc52d4281a22cd920d4496b895a7c040bbc0696761d"/>
   
</isomsg>
 
</send>
</log>
Response waiting


<log realm="server-channel/196.6.103.73:5042" at="2017-02-14T10:49:36.531" lifespan="99ms">
 
<receive>
   
<iso-exception>
      org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0
     
<nested-exception>
      java.lang.RuntimeException: Required 4 but just got 1 bytes
 at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56) at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:182)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.device.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.device.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
     
</nested-exception>
      org.jpos.iso.ISOException: org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0 (java.lang.RuntimeException: Required 4 but just got 1 bytes)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:187)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.nibbs.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.nibbs.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
Nested:java.lang.RuntimeException: Required 4 but just got 1 bytes
 at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:182)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.device.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.device.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
   
</iso-exception>
14-02-2017 10:49:36,535 INFO  (com.device.ISOMessages.ISOMessage:92) - doTransaction: ISOException:  org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0
BUILD SUCCESSFUL (total time: 12 seconds)



--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/2ddafdf0-ee45-47cd-87c3-d76cd5fa5fee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0

jPOS - Users mailing list
On 14/02/17 10:18, [hidden email] wrote:
> Will sincerely appreciate your assistance pls.
Search this mailing list for the steps to help you determine what might
be wrong.

Adding a Logger to you Channel and Packager could help - as previous
guidance you will find will indicate.


--
Mark

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/c30568e6-f602-5366-15bb-a232b6aa5608%40talktalk.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0

chhil
In reply to this post by derinlois1
As Mark suggested, add loggers to get more details. Also you may want to dump the raw data received by the channel.
Maybe the host does not like the message and is responding with data that does not follow the packager.
Do check to make sure its not something with the data/fields you are sending e.g. field 2 and field 35 don't have the same pan.

-chhil

On Tue, Feb 14, 2017 at 4:18 AM, <[hidden email]> wrote:
I was able to carry out my Key request which was successful, but on trying to carry out transaction on same system, i am having this the exception below.
Will sincerely appreciate your assistance pls.

My key exchange is below

<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:35.154" lifespan="6ms">
 
<send>
   
<isomsg direction="outgoing">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0800"/>
     
<field id="3" value="9A0000"/>
     
<field id="7" value="0214104927"/>
     
<field id="11" value="775146"/>
     
<field id="12" value="104927"/>
     
<field id="13" value="0214"/>
     
<field id="41" value="2057XR41"/>
   
</isomsg>
 
</send>
</log>
<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:35.289" lifespan="126ms">
 
<receive>
   
<isomsg direction="incoming">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0810"/>
     
<field id="7" value="0214104927"/>
     
<field id="11" value="775146"/>
     
<field id="12" value="104927"/>
     
<field id="13" value="0214"/>
     
<field id="39" value="00"/>
     
<field id="41" value="2057XR41"/>
     
<field id="53" value="F2DB6F406F6E5690F839D7599A1D2EFB10DF390000000000000000000000000000000000000000000000000000000000" type="binary"/>
   
</isomsg>
 
</receive>
</log>



while my transaction is below


<log realm="server-channel/196.632.103.73:5042" at="2017-02-14T10:49:36.426" lifespan="2ms">
 
<send>
   
<isomsg direction="outgoing">
     
<!-- org.jpos.iso.packager.GenericPackager[config/genpackager.xml] -->
     
<field id="0" value="0200"/>
     
<field id="2" value="506107_________1061"/>
     
<field id="3" value="001000"/>
     
<field id="4" value="0000050000"/>
     
<field id="7" value="0214104935"/>
     
<field id="11" value="776291"/>
     
<field id="12" value="104935"/>
     
<field id="13" value="0214"/>
     
<field id="14" value="____"/>
     
<field id="18" value="9399"/>
     
<field id="22" value="051"/>
     
<field id="23" value="001"/>
     
<field id="25" value="00"/>
     
<field id="26" value="04"/>
     
<field id="28" value="D00000000"/>
     
<field id="32" value="506107"/>
     
<field id="35" value="519899______8014=____________________"/>
     
<field id="37" value="2057XR776291"/>
     
<field id="40" value="226"/>
     
<field id="41" value="20390060"/>
     
<field id="42" value="203900000000033"/>
     
<field id="43" value="Flat 236, Justine Street"/>
     
<field id="49" value="566"/>
     
<field id="52" value="AA55AA55" type="binary"/>
     
<field id="55" value="[WIPED]"/>
     
<field id="123" value="211201513344002"/>
     
<field id="128" value="47fc6fcef2f697bf8115cfc52d4281a22cd920d4496b895a7c040bbc0696761d"/>
   
</isomsg>
 
</send>
</log>
Response waiting


<log realm="server-channel/196.6.103.73:5042" at="2017-02-14T10:49:36.531" lifespan="99ms">
 
<receive>
   
<iso-exception>
      org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0
     
<nested-exception>
      java.lang.RuntimeException: Required 4 but just got 1 bytes
 at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56) at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:182)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.device.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.device.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
     
</nested-exception>
      org.jpos.iso.ISOException: org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0 (java.lang.RuntimeException: Required 4 but just got 1 bytes)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:187)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.nibbs.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.nibbs.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
Nested:java.lang.RuntimeException: Required 4 but just got 1 bytes
 at org.jpos.iso.AsciiInterpreter.uninterpret(AsciiInterpreter.java:56)
 at org.jpos.iso.ISOStringFieldPackager.unpack(ISOStringFieldPackager.java:182)
 at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:267)
 at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:467)
 at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
 at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
 at com.device.ISOMessages.ISOMessage.sendTransaction(ISOMessage.java:285)
 at com.device.ISOMessages.ISOPurchase.doTransaction(ISOPurchase.java:46)
 at devicePOS.devicePOS.doBillPayment(devicePOS.java:62)
 at devicePOS.devicePOS.TestTransaction(devicePOS.java:67)
 at devicePOS.devicePOS.main(devicePOS.java:29)
   
</iso-exception>
14-02-2017 10:49:36,535 INFO  (com.device.ISOMessages.ISOMessage:92) - doTransaction: ISOException:  org.jpos.iso.IFA_NUMERIC: Problem unpacking field 0
BUILD SUCCESSFUL (total time: 12 seconds)



--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/2ddafdf0-ee45-47cd-87c3-d76cd5fa5fee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefD72V38XNvit%3DEgF5sDtWHmksvEc9MR%2BxS0_YnzhiDQ4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.