field 55 visa. facing problems in subelement

147 views
Skip to first unread message

amoolya doddamane

unread,
Feb 10, 2017, 5:54:29 AM2/10/17
to jPOS Users
Hi All,

i am facing problems in splitting up DE 55 for Visa. my packager xml for DE 55 looks like this. 

<isofieldpackager id="55" length="255" emitBitmap="false" name="RESERVED ISO" class="org.jpos.iso.IFB_LLHBINARY" packager="org.jpos.iso.packager.GenericSubFieldPackager">
        <isofield id="1" name="DataSet Data" length="3" class="org.jpos.iso.IFB_BINARY" />
        <isofield id="2" name="TLV" length="252" class="org.jpos.iso.IFB_LLHBINARY" />
</isofieldpackager>  

1st sub filed contains dataset id and dataset length and 2nd holds data(TLV)

1st subfield unpacks properly but im getting exception as below during 2nd subfield unpack

Exception in thread "main" org.jpos.iso.ISOException: org.jpos.iso.IFB_LLHBINARY: Problem unpacking field 2 (java.lang.ArrayIndexOutOfBoundsException) unpacking field=55, consumed=140
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:268)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:454)
at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:968)
at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
at cards.test.VAPchannel_responsemsg.main(VAPchannel_responsemsg.java:174)

i debugged the code i found the length is calculated wrong in binrayprefixer which is jpos lib file. 

is there anything i a missing. please help. Thanks in advance. 

amoolya

unread,
Feb 15, 2017, 3:49:25 AM2/15/17
to jPOS Users
fixed it. 

Mark Salter

unread,
Feb 15, 2017, 4:35:50 PM2/15/17
to jpos-...@googlegroups.com
On 15/02/17 08:49, amoolya wrote:
> fixed it.
how?

--
Mark

Rajpoot

unread,
Jul 29, 2019, 4:19:11 AM7/29/19
to jPOS Users
How .??

Shubham Verma

unread,
Jul 29, 2019, 5:39:51 PM7/29/19
to jPOS Users
how??

eyajuda 13HEB8

unread,
Jul 29, 2019, 8:28:50 PM7/29/19
to jPOS Users
How?
Reply all
Reply to author
Forward
0 new messages