While packaging my data, I am getting the outofIndex error.

80 weergaven
Naar het eerste ongelezen bericht

derin...@gmail.com

ongelezen,
14 sep 2016, 14:15:5514-09-2016
aan jPOS Users
After testing for my Network Management, using JPOS, I tried out carrying out a financial transaction which gives the log below

Length = 021A
Byte length(b): 538 :: Incoming data HEX(d): 30323030F23E46D5A8E1930020000000000000203136353339393233323032313237323837343534313030303030303030303030303130303033303231313330303030303030373531313330303030333032313630323033303236303132393031303030303031324430303030303536364330303030303030303038363237373439373030363131313131313333353339393233323032313237323837343D313630323232313031363139373430313030303030303030303037353237303032333631323332393030303032342020202020504C4F5420313136312C4D656D2044726976652C4342444142554A41202020202020202041424E473030327E3035363633423036463534463733443446344130323334571002576F8C1A181B001FA6C423E30A68359FA710F29BD99B139ACEE28DC111CAF928F3009FAA0AFFFF9876543210E000F55A103531373733312A2A2A2A2A2A333037348407A00000000410109F3901055F3401009F2701809F02060000000001009F03060000000000009F34034203009F3501229F1E0831363030333838319F090200019F4104000001889F2608E3430A68B4B4BA6C9F10120110A00001220000000000000000000000FF820258009F36021A509F37040AAF8033950542800400009A031609149C01319F330360E8C89F150200009F0702FF005F25031509015F24031908319F1F00303034313531303033303135323131323031353133333434303032
<log realm="pos-server/192.168.3.205:40387" at="Wed Sep 14 16:45:42 WAT 2016.873" lifespan="13ms">
 
<receive>
   
<iso-exception>
      org
.jpos.iso.IFA_LLLBINARY: Problem unpacking field 55 (java.lang.ArrayIndexOutOfBoundsException) unpacking field=55, consumed=266
      org
.jpos.iso.ISOException: org.jpos.iso.IFA_LLLBINARY: Problem unpacking field 55 (java.lang.ArrayIndexOutOfBoundsException) unpacking field=55, consumed=266
        at org
.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:273)
        at org
.jpos.iso.ISOMsg.unpack(ISOMsg.java:416)
        at org
.jpos.iso.BaseChannel.unpack(BaseChannel.java:903)
        at org
.jpos.iso.BaseChannel.receive(BaseChannel.java:671)
        at org
.jpos.iso.ISOServer$Session.run(ISOServer.java:130)
        at org
.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:71)
   
</iso-exception>
    --- data ---
    0000  30 32 30 30 F2 3E 46 D5  A8 E1 93 00 20 00 00 00  0200.>F..... ...
0010  00 00 00 20 31 36 35 33  39 39 32 33 32 30 32 31  ... 165399232021
0020  32 37 32 38 37 34 35 34  31 30 30 30 30 30 30 30  2728745410000000
0030  30 30 30 30 30 31 30 30  30 33 30 32 31 31 33 30  0000010003021130
0040  30 30 30 30 30 30 37 35  31 31 33 30 30 30 30 33  0000007511300003
0050  30 32 31 36 30 32 30 33  30 32 36 30 31 32 39 30  0216020302601290
0060  31 30 30 30 30 30 31 32  44 30 30 30 30 30 35 36  10000012D0000056
0070  36 43 30 30 30 30 30 30  30 30 30 38 36 32 37 37  6C00000000086277
0080  34 39 37 30 30 36 31 31  31 31 31 31 33 33 35 33  4970061111113353
0090  39 39 32 33 32 30 32 31  32 37 32 38 37 34 3D 31  99232021272874=1
00a0  36 30 32 32 32 31 30 31  36 31 39 37 34 30 31 30  6022210161974010
00b0  30 30 30 30 30 30 30 30  30 37 35 32 37 30 30 32  0000000007527002
00c0  33 36 31 32 33 32 39 30  30 30 30 32 34 20 20 20  3612329000024
00d0  20 20 50 4C 4F 54 20 31  31 36 31 2C 4D 65 6D 20    PLOT 1161,Mem
00e0  44 72 69 76 65 2C 43 42  44 41 42 55 4A 41 20 20  Drive,CBDABUJA
00f0  20 20 20 20 20 20 41 42  4E 47 30 30 32 7E 30 35        ABNG002~05
0100  36 36 33 42 30 36 46 35  34 46 37 33 44 34 46 34  663B06F54F73D4F4
0110  41 30 32 33 34 57 10 02  57 6F 8C 1A 18 1B 00 1F  A0234W..Wo......
0120  A6 C4 23 E3 0A 68 35 9F  A7 10 F2 9B D9 9B 13 9A  ..#..h5.........
0130  CE E2 8D C1 11 CA F9 28  F3 00 9F AA 0A FF FF 98  .......(........
0140  76 54 32 10 E0 00 F5 5A  10 35 31 37 37 33 31 2A  vT2....Z.517731*
0150  2A 2A 2A 2A 2A 33 30 37  34 84 07 A0 00 00 00 04  *****3074.......
0160  10 10 9F 39 01 05 5F 34  01 00 9F 27 01 80 9F 02  ...9.._4...'....
0170  06 00 00 00 00 01 00 9F  03 06 00 00 00 00 00 00  ................
0180  9F 34 03 42 03 00 9F 35  01 22 9F 1E 08 31 36 30  .4.B...5."...160
0190  30 33 38 38 31 9F 09 02  00 01 9F 41 04 00 00 01  03881......A....
01a0  88 9F 26 08 E3 43 0A 68  B4 B4 BA 6C 9F 10 12 01  ..&..C.h...l....
01b0  10 A0 00 01 22 00 00 00  00 00 00 00 00 00 00 00  ...."...........
01c0  FF 82 02 58 00 9F 36 02  1A 50 9F 37 04 0A AF 80  ...X..6..P.7....
01d0  33 95 05 42 80 04 00 00  9A 03 16 09 14 9C 01 31  3..B...........1
01e0  9F 33 03 60 E8 C8 9F 15  02 00 00 9F 07 02 FF 00  .3.`............
01f0  5F 25 03 15 09 01 5F 24  03 19 08 31 9F 1F 00 30  _%...._$...1...0
0200  30 34 31 35 31 30 30 33  30 31 35 32 31 31 32 30  0415100301521120
0210  31 35 31 33 33 34 34 30  30 32                    1513344002


  </
receive>
</log>
<log realm="server.session/
192.168.3.205" at="Wed Sep 14 16:45:42 WAT 2016.895">
  <session-error>
    <iso-exception>
      org.jpos.iso.IFA_LLLBINARY: Problem unpacking field 55 (java.lang.ArrayIndexOutOfBoundsException) unpacking field=55, consumed=266
      org.jpos.iso.ISOException: org.jpos.iso.IFA_LLLBINARY: Problem unpacking field 55 (java.lang.ArrayIndexOutOfBoundsException) unpacking field=55, consumed=266
        at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:273)
        at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:416)
        at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:903)
        at org.jpos.iso.BaseChannel.receive(BaseChannel.java:671)
        at org.jpos.iso.ISOServer$Session.run(ISOServer.java:130)
        at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:71)
    </iso-exception>
  </session-error>
</log>
<log realm="
server.session/192.168.3.205" at="Wed Sep 14 16:45:42 WAT 2016.913">
  <session-end/>
</log>


while on the log of the IDE i am making use of, i can see the log below


09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err: java.io.EOFException
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at libcore.io.Streams.readFully(Streams.java:83)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at java.io.DataInputStream.readFully(DataInputStream.java:99)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.iso.channel.PostChannel.getMessageLength(PostChannel.java:81)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.iso.BaseChannel.receive(BaseChannel.java:548)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.dao.ISOMessage.sendTransaction(ISOMessage.java:215)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.dao.ISOBillPayment.doTransaction(ISOBillPayment.java:36)
09-14 18:19:33.062 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.fragment.Tab_Transaction.doBillPayment(Tab_Transaction.java:767)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.fragment.Tab_Transaction.sendTransactionOnlineProcessResult(Tab_Transaction.java:453)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at com.os.sdk.fragment.Tab_Transaction.onTransactionRequestOnlineProcess(Tab_Transaction.java:697)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at os.sdk.lib.CommonLib.onDataReceived(Unknown Source)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at os.sdk.lib.BTLib.onDataReceived(Unknown Source)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at os.sdk.lib.bluetooth.k.handleMessage(Unknown Source)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at android.os.Looper.loop(Looper.java:136)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5111)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at java.lang.reflect.Method.invoke(Method.java:515)
09-14 18:19:33.072 9824-9824/com.os.sdk W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)
09-14 18:19:33.082 9824-9824/com.os.sdk W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
09-14 18:19:33.082 9824-9824/com.os.sdk W/System.err:     at dalvik.system.NativeStart.main(Native Method)

I already tried tracing this, but haven't been able to get it done. I am using the ISO87BBitmapPackager in packaging my message, although, the field55 in this packager is be defined as IFA_LLLCHAR, but i had to change it to IFA_LLLBINARY...but, still giving same error as when it was IFA_LLLCHAR.

Would deeply appreciate any pointer been given, so as to get the right thing to be done.
Thanks for reading

Mark Salter

ongelezen,
14 sep 2016, 17:19:5214-09-2016
aan jpos-...@googlegroups.com
On 14/09/16 19:15, derin...@gmail.com wrote:
> I am using the ISO87BBitmapPackager in packaging my message,
What Packager exactly matches the specification of the interface you are
connecting to?

Have you compared the field definitions in your Packager leading up to 55?

> although,
> the field55 in this packager is be defined as IFA_LLLCHAR, but i had to
> change it to IFA_LLLBINARY...but, still giving same error as when it was
> IFA_LLLCHAR.
Don't experiment/guess at the field level, 55 is unlikely the issue, a
field before that is likely defined wrong.

Searching this mailing list will have found lots of guidance - please
take this chance to search and find and follow.

>
> Would deeply appreciate any pointer been given, so as to get the right
> thing to be done.
Search this mailing list, follow the guidance given for similar issues.

Read the specification and adjust the Packager to match it as you go
through each field.

Check this card number is test and take care not to publish sensitive
data to a mailing list (pan, track, expiry etc).

--
Mark

Israel Meshileya

ongelezen,
15 sep 2016, 10:43:3715-09-2016
aan jPOS Users
Just as Mark has stated above, compare the packager you are using with the packager your JPOS server uses. I think your server uses 
<!-- org.jpos.iso.packager.GenericPackager[config/hbngpostilion.xml] -->
So, what i will try to advice is to compare and contrast the hbngpostilion.xml with the packager you are using at the client side...to packaging your data

Then, you should be good to go...

NOTE the following fields
                                      52 ==> IFA_BINARY
                                     
53==> IFA_NUMERIC
                                     
55 ==> IFA_LLLCHAR

          
          which are in the ISO87BBitmapPackager 

Comparing the following fields with the hbngpostilion.xml, you will note the differences, which are 
52==> IFB_BINARY
53 ==> IFB_BINARY
55 ==> IFA_LLLBINARY


You should be good to go, if you can make the necessary correction. i.e. making the necessary adjustment

NOTE: I once experienced it, while implementing JPOS on Android, and it's working perfectly for me.

Regards.
Israel

On Wednesday, 14 September 2016 19:15:55 UTC+1, derin...@gmail.com wrote:
After testing for my Network Management, using JPOS, I tried out carrying out a financial transaction which gives the log below

chhil

ongelezen,
15 sep 2016, 11:08:3815-09-2016
aan jpos-...@googlegroups.com

Make the changes as Israel has mentioned to the packager.
52 ==> IFA_BINARY
                                      
53==> IFA_NUMERIC
                                      
55 ==> IFA_LLLCHAR


// The hex string taken from your     --- data --- section and concatenated.
        String hex = "30323030F23E46D5A8E1930020000000000000203136353339393233323032313237323837343534313030303030303030303030303130303033303231313330303030303030373531313330303030333032313630323033303236303132393031303030303031324430303030303536364330303030303030303038363237373439373030363131313131313333353339393233323032313237323837343D313630323232313031363139373430313030303030303030303037353237303032333631323332393030303032342020202020504C4F5420313136312C4D656D2044726976652C4342444142554A41202020202020202041424E473030327E3035363633423036463534463733443446344130323334571002576F8C1A181B001FA6C423E30A68359FA710F29BD99B139ACEE28DC111CAF928F3009FAA0AFFFF9876543210E000F55A103531373733312A2A2A2A2A2A333037348407A00000000410109F3901055F3401009F2701809F02060000000001009F03060000000000009F34034203009F3501229F1E0831363030333838319F090200019F4104000001889F2608E3430A68B4B4BA6C9F10120110A00001220000000000000000000000FF820258009F36021A509F37040AAF8033950542800400009A031609149C01319F330360E8C89F150200009F0702FF005F25031509015F24031908319F1F00303034313531303033303135323131323031353133333434303032";

        GenericPackager pkg1 = new GenericPackager("postpack.xml");
        msg.setPackager(pkg1);

        try {
            msg.unpack(ISOUtil.hex2byte(hex));// 
            msg.dump(System.out, "");
        }
        catch (ISOException ex) {
            ex.printStackTrace();
            msg.dump(System.out, "");
        }

Output
<isomsg direction="none">
  <!-- org.jpos.iso.packager.GenericPackager[C:\Temp\jposmaster\jPOS-master\jpos\src\dist\cfg\packager\postpack.xml] -->
  <field id="0" value="0200"/>
  <field id="2" value="5399232021272874"/>
  <field id="3" value="541000"/>
  <field id="4" value="000000000100"/>
  <field id="7" value="0302113000"/>
  <field id="11" value="000075"/>
  <field id="12" value="113000"/>
  <field id="13" value="0302"/>
  <field id="14" value="1602"/>
  <field id="15" value="0302"/>
  <field id="18" value="6012"/>
  <field id="22" value="901"/>
  <field id="23" value="000"/>
  <field id="25" value="00"/>
  <field id="26" value="12"/>
  <field id="28" value="D00000566"/>
  <field id="30" value="C00000000"/>
  <field id="32" value="62774970"/>
  <field id="33" value="111111"/>
  <field id="35" value="5399232021272874=1602221016197401"/>
  <field id="37" value="000000000075"/>
  <field id="41" value="27002361"/>
  <field id="42" value="2329000024     "/>
  <field id="43" value="PLOT 1161,Mem Drive,CBDABUJA        ABNG"/>
  <field id="48" value="~0"/>
  <field id="49" value="566"/>
  <field id="52" value="3B06F54F73D4F4A0" type="binary"/>
  <field id="55" value="W&#16;&#2;Wo?&#26;&#24;&#27;&#0;&#31;¦Ä#ã&#10;h5?§&#16;ò?Ù?&#19;?Îâ?Á&#17;Êù(ó&#0;?ª&#10;ÿÿ?vT2&#16;à&#0;õZ&#16;517731******3074?&#7; &#0;&#0;&#0;&#4;&#16;&#16;?9&#1;&#5;_4&#1;&#0;?'&#1;??&#2;&#6;&#0;&#0;&#0;&#0;&#1;&#0;?&#3;&#6;&#0;&#0;&#0;&#0;&#0;&#0;?4&#3;B&#3;&#0;?5&#1;&quot;?&#30;&#8;16003881?&#9;&#2;&#0;&#1;?A&#4;&#0;&#0;&#1;??&amp;&#8;ãC&#10;h´´ºl?&#16;&#18;&#1;&#16; &#0;&#1;&quot;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;ÿ?&#2;X&#0;?6&#2;&#26;P?7&#4;&#10;¯?3?&#5;B?&#4;&#0;&#0;?&#3;&#22;&#9;&#20;?&#1;1?3&#3;`èÈ?&#21;&#2;&#0;&#0;?&#7;&#2;ÿ&#0;_%&#3;&#21;&#9;&#1;_$&#3;&#25;&#8;1?&#31;&#0;"/>
  <field id="56" value="1510"/>
  <field id="67" value="03"/>
  <field id="123" value="211201513344002"/>
</isomsg>

55 looks odd and you will need to tweak the packager for it, but I think the sender has taken masked postilion binary data and injected it, based on the asterices that I can see in the raw data hex dump. Get that field verified.
I assume this was a test card else make sure to deactivate the card.

-chhil

--
--
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+unsubscribe@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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f81fec7f-f036-4984-9fdf-8e9535c76840%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

derin...@gmail.com

ongelezen,
15 sep 2016, 12:11:5415-09-2016
aan jPOS Users
Thanks so much guys, i really appreciate.

I actually changed those fields data type, as Israel suggested and it worked fine.

@chill, i actually used m.set(55, Utils.hexToBytes(fld55)); before packaging it.

Thanks so much, ALL. I am really excited.


On Wednesday, September 14, 2016 at 7:15:55 PM UTC+1, derin...@gmail.com wrote:

Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten