[jpos-users] Problem unpacking field 32 with custom packager

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Problem unpacking field 32 with custom packager

Allie Harrison
Hello all.

I've created a custom packager that follow closely resembles the MasterCard specification. The request goes into the system just fine, but when I receive the response, it fails on unpacking DE-32. I have it defined as IFA_LLNUM with a length of 11. Here is the code that populates the request:

ISOMsg m = new ISOMsg();
m.setMTI("0200");
m.set(3, "010000");
m.set(4, "000000002500");
m.set(7, "0512153003");
m.set(11, "012348");
m.set(12, "133003");
m.set(13, "0512");
m.set(15, "0512");
m.set(18, "6011");
m.set(22, "000");
m.set(25, "00");
m.set(26, "00");
m.set(32, "99999040850");
m.set(33, "99999470823");
m.set(35, "510116XXXXXXXXX0000=1111546XXXXXX");
m.set(37, "713215302349");
m.set(41, "PLS00001");
m.set(42, "1616000011");
m.set(43, "28400 Locust Pkwy RM 2132Littler Rock MT");
m.set(49, "978");

I have also attached my definition for my custom packager.

Any help is appreciated!

--
--
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/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

allie.xml (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Problem unpacking field 32 with custom packager

Alwyn Schoeman
What is the exact error you are getting Allie?

On Tue, May 16, 2017 at 3:58 PM Allie Harrison <[hidden email]> wrote:
Hello all.

I've created a custom packager that follow closely resembles the MasterCard specification. The request goes into the system just fine, but when I receive the response, it fails on unpacking DE-32. I have it defined as IFA_LLNUM with a length of 11. Here is the code that populates the request:

ISOMsg m = new ISOMsg();
m.setMTI("0200");
m.set(3, "010000");
m.set(4, "000000002500");
m.set(7, "0512153003");
m.set(11, "012348");
m.set(12, "133003");
m.set(13, "0512");
m.set(15, "0512");
m.set(18, "6011");
m.set(22, "000");
m.set(25, "00");
m.set(26, "00");
m.set(32, "99999040850");
m.set(33, "99999470823");
m.set(35, "510116XXXXXXXXX0000=1111546XXXXXX");
m.set(37, "713215302349");
m.set(41, "PLS00001");
m.set(42, "1616000011");
m.set(43, "28400 Locust Pkwy RM 2132Littler Rock MT");
m.set(49, "978");

I have also attached my definition for my custom packager.

Any help is appreciated!

--
--
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/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%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/CAB1wGQqOtd%3DSDp%3DkkMgXXCZ0sLLQoA%3DAkVh_dSUD-Sto-WkP1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Problem unpacking field 32 with custom packager

Allie Harrison
org.jpos.iso.ISOException: org.jpos.iso.IFA_LLNUM: Problem unpacking field 32 (java.lang.RuntimeException: Required 11 but just got 0 bytes) unpacking field=32, consumed=64
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:334)
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.eeft.iso8583.Test.main(Test.java:63)

On Tuesday, May 16, 2017 at 3:00:46 PM UTC-5, Alwyn wrote:
What is the exact error you are getting Allie?

On Tue, May 16, 2017 at 3:58 PM Allie Harrison <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">allie.h...@...> wrote:
Hello all.

I've created a custom packager that follow closely resembles the MasterCard specification. The request goes into the system just fine, but when I receive the response, it fails on unpacking DE-32. I have it defined as IFA_LLNUM with a length of 11. Here is the code that populates the request:

ISOMsg m = new ISOMsg();
m.setMTI("0200");
m.set(3, "010000");
m.set(4, "000000002500");
m.set(7, "0512153003");
m.set(11, "012348");
m.set(12, "133003");
m.set(13, "0512");
m.set(15, "0512");
m.set(18, "6011");
m.set(22, "000");
m.set(25, "00");
m.set(26, "00");
m.set(32, "99999040850");
m.set(33, "99999470823");
m.set(35, "510116XXXXXXXXX0000=1111546XXXXXX");
m.set(37, "713215302349");
m.set(41, "PLS00001");
m.set(42, "1616000011");
m.set(43, "28400 Locust Pkwy RM 2132Littler Rock MT");
m.set(49, "978");

I have also attached my definition for my custom packager.

Any help is appreciated!

--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/113eaaaf-59ce-4098-9954-bcdb98c3f6f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Problem unpacking field 32 with custom packager

Allie Harrison
In reply to this post by Alwyn Schoeman
Here is the hex for the response (The first two bytes are the length:

06630323130333233383030303130413830383030303031303030303030303030303030323530303035313231353330303330313233343831333330303330353132313139393939393034303835303731333231353330323334393932504c533030303031393738

On Tuesday, May 16, 2017 at 3:00:46 PM UTC-5, Alwyn wrote:
What is the exact error you are getting Allie?

On Tue, May 16, 2017 at 3:58 PM Allie Harrison <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">allie.h...@...> wrote:
Hello all.

I've created a custom packager that follow closely resembles the MasterCard specification. The request goes into the system just fine, but when I receive the response, it fails on unpacking DE-32. I have it defined as IFA_LLNUM with a length of 11. Here is the code that populates the request:

ISOMsg m = new ISOMsg();
m.setMTI("0200");
m.set(3, "010000");
m.set(4, "000000002500");
m.set(7, "0512153003");
m.set(11, "012348");
m.set(12, "133003");
m.set(13, "0512");
m.set(15, "0512");
m.set(18, "6011");
m.set(22, "000");
m.set(25, "00");
m.set(26, "00");
m.set(32, "99999040850");
m.set(33, "99999470823");
m.set(35, "510116XXXXXXXXX0000=1111546XXXXXX");
m.set(37, "713215302349");
m.set(41, "PLS00001");
m.set(42, "1616000011");
m.set(43, "28400 Locust Pkwy RM 2132Littler Rock MT");
m.set(49, "978");

I have also attached my definition for my custom packager.

Any help is appreciated!

--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GL4LnZsjAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/374fc4ac-3c10-4a00-a2f3-cbfe786b617b%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/5dc4b772-2c24-4d97-9895-614347876027%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Problem unpacking field 32 with custom packager

Barzilai Spinak
On 5/16/17 6:24 PM, Allie Harrison wrote:
> Here is the hex for the response (The first two bytes are the length:
>
> 06630323130333233383030303130413830383030303031303030303030303030303030323530303035313231353330303330313233343831333330303330353132313139393939393034303835303731333231353330323334393932504c533030303031393738

Let's start at the beginning:

This seems to be an hexdump of an ascii dump, with the original bitmap encoded as ascii hex
You say the first two bytes are the length, but I can only see 3 characters (066), so maybe you missed one when copypasting.

Can you share your packager spec, at least up to field 32?
What class are you using to decode the bitmap?
Who is sending the request message?  Another jPOS instance? If channel and packager match, you should have no problems.
Have you tried to enable logging in the packager?


> On Tuesday, May 16, 2017 at 3:00:46 PM UTC-5, Alwyn wrote:
>
>     What is the exact error you are getting Allie?
>
>     On Tue, May 16, 2017 at 3:58 PM Allie Harrison <[hidden email] <javascript:>> wrote:
>
>         Hello all.
>
>         I've created a custom packager that follow closely resembles the MasterCard specification. The request goes into the system just fine, but
>         when I receive the response, it fails on unpacking DE-32. I have it defined as IFA_LLNUM with a length of 11. Here is the code that
>         populates the request:
>
>         ISOMsg m = new ISOMsg();
>         m.setMTI("0200");m.set(3, "010000");
>         m.set(4, "000000002500");
>         m.set(7, "0512153003");
>         m.set(11, "012348");
>         m.set(12, "133003");
>         m.set(13, "0512");
>         m.set(15, "0512");
>         m.set(18, "6011");
>         m.set(22, "000");
>         m.set(25, "00");
>         m.set(26, "00");
>         m.set(32, "99999040850");
>         m.set(33, "99999470823");
>         m.set(35, "510116XXXXXXXXX0000=1111546XXXXXX");
>         m.set(37, "713215302349");
>         m.set(41, "PLS00001");
>         m.set(42, "1616000011");
>         m.set(43, "28400 Locust Pkwy RM 2132Littler Rock MT");
>         m.set(49, "978");
>
>         I have also attached my definition for my custom packager.
>         Any help is appreciated!

--
Barzilai Spinak
Transactility, Inc.
www.transactility.com
"Commercial licensing and support for the jPOS.org project"

--
--
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/47c3060a-37c9-5286-8ed6-b86f8a00c219%40transactility.com.
For more options, visit https://groups.google.com/d/optout.
Loading...