--
--
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
---
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e22eb86b-5384-428f-bf18-a28915b4c70b%40googlegroups.com.
TLVList list = new TLVList();
list.unpack(ISOUtil.hex2byte(fieldValue));
List<TLVMsg> tags = list.getTags();
for (TLVMsg tlv : tags) {
lgr.debug("Value of FieldID-{}, Tag [{}], Value [{}] is parsed as: ", () -> fieldId, () -> tlv.getTag(), () -> ISOUtil.byte2hex(tlv.getValue()));
}
java.lang.NegativeArraySizeException: -1342136538
at org.jpos.tlv.TLVList.getTLVMsg(TLVList.java:369) ~[jpos-2.1.3.jar:2.1.3]
at org.jpos.tlv.TLVList.unpack(TLVList.java:193) ~[jpos-2.1.3.jar:2.1.3]
at org.jpos.tlv.TLVList.unpack(TLVList.java:163) ~[jpos-2.1.3.jar:2.1.3]
There is a tlvlist object that jpos provides, use it.-chhil
On Tue, Oct 1, 2019, 3:35 PM Adnan Sohail <adnaan...@gmail.com> wrote:
Hi,--I am getting problem while parsing Visa BER TLV field like Field 55, 104 and 123 to tag level. However I have been able to parse the complete field value, but unable to extract list of tags within each dataset.Can anyone help me achieve that?Regards,Adnan Sohail
--
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
---
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-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7cbbc0c2-fb99-4bbf-9bb4-ff4ca4f73495%40googlegroups.com.
String fieldValue = "9F3303E02080950500000000009F3704A5CC06CF9F100706010A03A0B0009F26080562599501ED00039F3602010C82025C009F3704A5CC06CF9F3704A5CC06CF9F3704A5CC06CF9F02060000000010005F2A0208409F0306000000000000";
list.unpack(ISOUtil.hex2byte(fieldValue));
list.dump(System.out, "");
<tlvlist>
<tag id='9f33' value='E02080' />
<tag id='95' value='0000000000' />
<tag id='9f37' value='A5CC06CF' />
<tag id='9f10' value='06010A03A0B000' />
<tag id='9f26' value='0562599501ED0003' />
<tag id='9f36' value='010C' />
<tag id='82' value='5C00' />
<tag id='9f37' value='A5CC06CF' />
<tag id='9f37' value='A5CC06CF' />
<tag id='9f37' value='A5CC06CF' />
<tag id='9f02' value='000000001000' />
<tag id='5f2a' value='0840' />
<tag id='9f03' value='000000000000' />
</tlvlist>
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7cbbc0c2-fb99-4bbf-9bb4-ff4ca4f73495%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7cbbc0c2-fb99-4bbf-9bb4-ff4ca4f73495%40googlegroups.com.
In another thread that you had created, a user has provided a packager that handles data set id. Though I am not sure how that will work for multiple data set ids.
-chhil
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5769f554-31ac-4722-8441-c19745c0afaf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5769f554-31ac-4722-8441-c19745c0afaf%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/08fd0f50-0dea-4d09-be32-9dfdf372ff3c%40googlegroups.com.