[jpos-users] field 55 visa. facing problems in subelement

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

[jpos-users] field 55 visa. facing problems in subelement

amoolya doddamane
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. 

--
--
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/ef91ae2a-c6d0-4843-bc7f-0eb217bbaa3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Re: field 55 visa. facing problems in subelement

amoolya doddamane
fixed it. 

On Friday, 10 February 2017 16:24:29 UTC+5:30, amoolya wrote:
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. 

--
--
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/6e60ff9a-433f-4126-a5ca-5b1c820378d3%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] Re: field 55 visa. facing problems in subelement

jPOS - Users mailing list
On 15/02/17 08:49, amoolya wrote:
> fixed it.
how?

--
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/33e5aeff-4c3a-a24f-1428-0dc6e9a95580%40talktalk.net.
For more options, visit https://groups.google.com/d/optout.
Loading...