简体   繁体   English

开箱 jPOS ISO8583

[英]Unpacking jPOS ISO8583

I am having this error when I am generating transaction with Magnetic stripe card.使用磁条卡生成交易时出现此错误。 Could you suggest what is the problem here?你能建议这里有什么问题吗?

<receive>
<iso-exception>
  org.jpos.iso.IFB_LLLCHAR: Problem unpacking field 54 (java.lang.ArrayIndexOutOfBoundsException: 86) unpacking field=54, consumed=86
  org.jpos.iso.ISOException: org.jpos.iso.IFB_LLLCHAR: Problem unpacking field 54 (java.lang.ArrayIndexOutOfBoundsException: 86) unpacking field=54, consumed=86
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:340)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:468)
at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:965)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:735)
at org.jpos.iso.ISOServer$Session.run(ISOServer.java:344)
at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:76)
</iso-exception>
--- header ---
0000  00 00 00 00 00                                    .....

--- data ---
0000  02 00 70 38 04 80 20 80  3F 04 16 94 96 10 03 32  ..p8.. .?......2
0010  13 38 00 00 00 00 00 00  01 88 00 00 00 00 30 11 ..8............0.
0020  11 27 11 28 00 21 00 37  94 96 10 03 32 13 38 00  .'.(.!.7....2.8.
0030  D2 00 89 EC 49 D2 C2 B5  6B 2A 00 39 35 30 30 30  ....I...k*.95000
0040  30 32 30 34 39 36 F0 D2  EB A5 2B 2F AE 2E 00 06  020496....+/....
0050  30 30 30 30 35 30                                 000050

We have not been fully aware of BITMAP structure at first field.我们还没有完全了解第一个字段的 BITMAP 结构。 There are 64 bits with and if there are not 64 ie 62 bits with starting 1, that means 1st and 2nd fields are not presented.有 64 位,如果没有 64 位,即 62 位以 1 开头,则表示不显示第 1 和第 2 个字段。 Bitmap never starts with 0 so as long as it starts with 1 we need to add incomplete sequence prior to that with zeros.位图从不以 0 开头,因此只要它以 1 开头,我们就需要在其之前添加不完整的序列,并以零开头。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM