--
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/c1122209-ed2d-41a3-b028-99d9e44b5b2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
import java.io.IOException;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ISOUtil;
import org.jpos.iso.packager.GenericPackager;
import org.jpos.util.Logger;
import org.jpos.util.SimpleLogListener;
public class Test {
public static void main(String[] args) throws ISOException, IOException {
// removed the 02 19 , as thats the 2 byute length header.
String message = "303230304632334334364431323945303932303030303030303030303532303030303230313935303631303731353232333030303030303433343031303130303030303030303130303030303930343038303431343030303030313038303431343039303432313032363031313035313030313030313244303030303030303030363530363130373336353036313037313532323330303030303034334432313032363031303133353434343333313131313936303030303031363031313131313936323745424E303030303030303035323331454E472052562052554D554F4B4F524F202020202020205256202020202020202020202052564E47353636314536384544433146303445384335423230303946323630383836424532443133414446314330333539463237303134303946313032303046413530313632303230303134303030303030303030303030303030303030304630314141414141414141414141414141414141414141414141414141414139463337303442373134383733453946333630323031433739353035343238303234313030303941303331363132313639433031303039463032303630303030303030303030313535463241303230393439383230323538303039463141303230373932393033373038303337303830333730383033373038343134373036393033373038313035323531303336353133303135353131323031353133333434303032";
Logger l = new Logger();
l.addListener(new SimpleLogListener());
ISOMsg m = new ISOMsg();
GenericPackager p;
try {
p = new GenericPackager(".\\cfg\\postpack.xml");
m.setPackager(p);
p.setLogger(l, "");
m.unpack(ISOUtil.hex2byte(message));
m.dump(System.out, "");
}
catch (ISOException e) {
e.printStackTrace();
m.dump(System.out, "");
}
}
}
<isomsg direction="none">
org.jpos.iso.ISOException: org.jpos.iso.IFA_LLNUM: Problem unpacking field 32 (org.jpos.iso.ISOException: Field length 26 too long. Max: 11) unpacking field=32, consumed=104
<!-- org.jpos.iso.packager.GenericPackager[.\cfg\postpack.xml] -->
at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:284)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:460)
at Test.main(Test.java:31)
<field id="0" value="0200"/>
<field id="bitmap" value="{2, 6, 7, 11, 12, 15, 19, 20, 23, 24, 26, 31, 32, 35, 36, 38, 43, 44, 46, 47, 50, 54, 59, 60, 64}" type="bitmap"/>
<field id="2" value="E0920000000000520000201950610"/>
<field id="6" value="715223000000"/>
<field id="7" value="4340101000"/>
<field id="11" value="000001"/>
<field id="12" value="000009"/>
<field id="15" value="0408"/>
<field id="19" value="041"/>
<field id="20" value="400"/>
<field id="23" value="000"/>
<field id="24" value="108"/>
<field id="26" value="04"/>
<field id="31" value="140904210"/>
</isomsg>
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/9238c62d-af15-4209-9a2c-5e790b2e925a%40googlegroups.com.
import java.io.IOException;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ISOUtil;
import org.jpos.iso.packager.GenericPackager;
import org.jpos.util.Logger;
import org.jpos.util.SimpleLogListener;
public class Test {
public static void main(String[] args) throws ISOException, IOException
{
// String message =
// "303230307F32334334364431323945303932303030303030303030303532303030303230313935303631303731353232333030303030303433343031303130303030303030303130303030303930343038303431343030303030313038303431343039303432313032363031313035313030313030313244303030303030303030363530363130373336353036313037313532323330303030303034334432313032363031303133353434343333313131313936303030303031363031313131313936323745424E303030303030303035323331454E472052562052554D554F4B4F524F202020202020205256202020202020202020202052564E47353636314536384544433146303445384335423230303946323630383836424532443133414446314330333539463237303134303946313032303046413530313632303230303134303030303030303030303030303030303030304630314141414141414141414141414141414141414141414141414141414139463337303442373134383733453946333630323031433739353035343238303234313030303941303331363132313639433031303039463032303630303030303030303030313535463241303230393439383230323538303039463141303230373932393033373038303337303830333730383033373038343134373036393033373038313035323531303336353133303135353131323031353133333434303032";
Logger l = new Logger();
l.addListener(new
SimpleLogListener());
ISOMsg messageFromPOS = new ISOMsg();
messageFromPOS.set("0", "0200");
messageFromPOS.set("2", "5061071522300000043");
messageFromPOS.set("3", "401010");
messageFromPOS.set("4", "000000010000");
messageFromPOS.set("7", "0904080414");
messageFromPOS.set("11", "000001");
messageFromPOS.set("12", "080414");
messageFromPOS.set("13", "0904");
messageFromPOS.set("14", "2102");
messageFromPOS.set("18", "6011");
messageFromPOS.set("22", "051");
messageFromPOS.set("23", "001");
messageFromPOS.set("25", "00");
messageFromPOS.set("26", "12");
messageFromPOS.set("28", "D00000000");
messageFromPOS.set("32", "506107");
messageFromPOS.set("35", "5061071522300000043D2102601013544433");
messageFromPOS.set("37", "111196000001");
messageFromPOS.set("40", "601");
messageFromPOS.set("41", "11119627");
messageFromPOS.set("42", "EBN000000005231");
messageFromPOS.set("43", "ENG RV RUMUOKORO RV RVNG");
messageFromPOS.set("49", "566");
messageFromPOS.set("52", ISOUtil.hex2byte("1E68EDC1F04E8C5B"));
messageFromPOS.set("55",
"9F260886BE2D13ADF1C0359F2701409F10200FA501620200140000000000000000000F01AAAAAAAAAAAAAAAAAAAAAAAAAAAA9F3704B714873E9F360201C7950542802410009A031612169C01009F02060000000000155F2A020949820258009F1A020792");
messageFromPOS.set("98", "9037080370803708037084147");
messageFromPOS.set("100", "903708");
messageFromPOS.set("103", "5251036513");
messageFromPOS.set("123", "511201513344002");
GenericPackager p;
try {
p = new GenericPackager("C:\\SourceRepo\\OII\\Incomm\\build\\cfg\\postpack.xml");
messageFromPOS.setPackager(p); // set the postilion packager
p.setLogger(l, "");
byte b[] = messageFromPOS.pack();
System.out.println(ISOUtil.hexdump(b)); // this is the message that
// would get sent to
// Postilion.
}
catch (ISOException e) {
e.printStackTrace();
}
}
}
0000 30 32 30 30 F2 3C 46 D1 29 E0 92 00 00 00 00 00 0200.<F.).......
0010 52 00 00 20 31 39 35 30 36 31 30 37 31 35 32 32 R.. 195061071522
0020 33 30 30 30 30 30 30 34 33 34 30 31 30 31 30 30 3000000434010100
0030 30 30 30 30 30 30 31 30 30 30 30 30 39 30 34 30 0000001000009040
0040 38 30 34 31 34 30 30 30 30 30 31 30 38 30 34 31 8041400000108041
0050 34 30 39 30 34 32 31 30 32 36 30 31 31 30 35 31 4090421026011051
0060 30 30 31 30 30 31 32 44 30 30 30 30 30 30 30 30 0010012D00000000
0070 30 36 35 30 36 31 30 37 33 36 35 30 36 31 30 37 0650610736506107
0080 31 35 32 32 33 30 30 30 30 30 30 34 33 44 32 31 1522300000043D21
0090 30 32 36 30 31 30 31 33 35 34 34 34 33 33 31 31 0260101354443311
00a0 31 31 39 36 30 30 30 30 30 31 36 30 31 31 31 31 1196000001601111
00b0 31 39 36 32 37 45 42 4E 30 30 30 30 30 30 30 30 19627EBN00000000
00c0 35 32 33 31 45 4E 47 20 52 56 20 52 55 4D 55 4F 5231ENG RV RUMUO
00d0 4B 4F 52 4F 20 20 20 20 20 20 20 52 56 20 20 20 KORO RV
00e0 20 20 20 20 20 20 20 20 52 56 4E 47 35 36 36 1E RVNG566.
00f0 68 ED C1 F0 4E 8C 5B 32 30 30 39 46 32 36 30 38 h...N.[2009F2608
0100 38 36 42 45 32 44 31 33 41 44 46 31 43 30 33 35 86BE2D13ADF1C035
0110 39 46 32 37 30 31 34 30 39 46 31 30 32 30 30 46 9F2701409F10200F
0120 41 35 30 31 36 32 30 32 30 30 31 34 30 30 30 30 A501620200140000
0130 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 46 000000000000000F
0140 30 31 41 41 41 41 41 41 41 41 41 41 41 41 41 41 01AAAAAAAAAAAAAA
0150 41 41 41 41 41 41 41 41 41 41 41 41 41 41 39 46 AAAAAAAAAAAAAA9F
0160 33 37 30 34 42 37 31 34 38 37 33 45 39 46 33 36 3704B714873E9F36
0170 30 32 30 31 43 37 39 35 30 35 34 32 38 30 32 34 0201C79505428024
0180 31 30 30 30 39 41 30 33 31 36 31 32 31 36 39 43 10009A031612169C
0190 30 31 30 30 39 46 30 32 30 36 30 30 30 30 30 30 01009F0206000000
01a0 30 30 30 30 31 35 35 46 32 41 30 32 30 39 34 39 0000155F2A020949
01b0 38 32 30 32 35 38 30 30 39 46 31 41 30 32 30 37 820258009F1A0207
01c0 39 32 39 30 33 37 30 38 30 33 37 30 38 30 33 37 9290370803708037
01d0 30 38 30 33 37 30 38 34 31 34 37 30 36 39 30 33 0803708414706903
01e0 37 30 38 31 30 35 32 35 31 30 33 36 35 31 33 30 7081052510365130
01f0 31 35 35 31 31 32 30 31 35 31 33 33 34 34 30 30 1551120151334400
0200 32 2
0000 02 19 30 32 30 30 46 32 33 43 34 36 44 31 32 39 ..0200F23C46D129
0010 45 30 39 32 30 30 30 30 30 30 30 30 30 30 35 32 E092000000000052
0020 30 30 30 30 32 30 31 39 35 30 36 31 30 37 31 35 0000201950610715
0000 30 32 30 30 F2 3C 46 D1 29 E0 92 00 00 00 00 00 0200.<F.).......
0010 52 00 00 20 31 39 35 30 36 31 30 37 31 35 32 32 R.. 195061071522
<isofield id="1" length="16" name="BIT MAP" class="org.jpos.iso.IFB_BITMAP"/>
<isofield id="1" length="16" name="BIT MAP" class="org.jpos.iso.IFA_BITMAP"/>
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7e08b10f-4c34-4897-9887-322cfe357b87%40googlegroups.com.
String message = "303230304632334334364431323945303932303030303030303030303532303030303230313935303631303731353232333030303030303433343031303130303030303030303130303030303930323036313932303030303030313036313932303039303232313032363031313035313030313030313244303030303030303030363530363130373336353036313037313532323330303030303034334432313032363031303133353434343333313131313936303030303031363031313131313936323745424e303030303030303035323331454e472052562052554d554f4b4f524f202020202020205256202020202020202020202052564e47353636314536384544433146303445384335423230303946323630384130453535424532333338394144464239463237303134303946313032303046413530313632303230303134303030303030303030303030303030303030304630314141414141414141414141414141414141414141414141414141414139463337303444313436374534363946333630323031423439353035343238303234303030303941303331363132313439433031303039463032303630303030303030303030313535463241303230393439383230323538303039463141303230373932393033373038303337303830333730383033373038343134373036393033373038313035323531303336353133303135353131323031353133333434303032";
In postpack change
<isofield
id="1"
length="16"
name="BIT MAP"
class="org.jpos.iso.IFB_BITMAP"/>
<isofield
id="1"
length="16"
name="BIT MAP"
class="org.jpos.iso.IFA_BITMAP"/>
Bitmap is 4632334334364431323945303932303030303030303030303532303030303230
[B@1d81eb93
org.jpos.iso.ISOException: org.jpos.iso.IFA_LLLCHAR: Problem unpacking field 55 (org.jpos.iso.ISOException: Field length 2204 too long. Max: 999) unpacking field=55, consumed=263
<isomsg direction="none"> at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:284)
at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:460)
at UnpackISOMessagePostPack.parseISOMessage(UnpackISOMessagePostPack.java:42)
at UnpackISOMessagePostPack.main(UnpackISOMessagePostPack.java:13)
<!-- org.jpos.iso.packager.GenericPackager[.\cfg\postpack.xml] -->
<field id="0" value="0200"/>
<field id="bitmap" value="{1, 2, 3, 4, 7, 11, 12, 13, 14, 18, 22, 23, 25, 26, 28, 32, 35, 37, 40, 41, 42, 43, 49, 52, 55, 98, 100, 103, 123}" type="bitmap"/>
<field id="2" value="5061071522300000043"/>
<field id="3" value="401010"/>
<field id="4" value="000000010000"/>
<field id="7" value="0902061920"/>
<field id="11" value="000001"/>
<field id="12" value="061920"/>
<field id="13" value="0902"/>
<field id="14" value="2102"/>
<field id="18" value="6011"/>
<field id="22" value="051"/>
<field id="23" value="001"/>
<field id="25" value="00"/>
<field id="26" value="12"/>
<field id="28" value="D00000000"/>
<field id="32" value="506107"/>
<field id="35" value="5061071522300000043D2102601013544433"/>
<field id="37" value="111196000001"/>
<field id="40" value="601"/>
<field id="41" value="11119627"/>
<field id="42" value="EBN000000005231"/>
<field id="43" value="ENG RV RUMUOKORO RV RVNG"/>
<field id="49" value="566"/>
<field id="52" value="3145363845444331" type="binary"/>
</isomsg>
MTI = 0200
Field (2) = 5061071522300000043
Field (3) = 401010
Field (4) = 000000010000
Field (7) = 0902061920
Field (11) = 000001
Field (12) = 061920
Field (13) = 0902
Field (14) = 2102
Field (18) = 6011
Field (22) = 051
Field (23) = 001
Field (25) = 00
Field (26) = 12
Field (28) = D00000000
Field (32) = 506107
Field (35) = 5061071522300000043D2102601013544433
Field (37) = 111196000001
Field (40) = 601
Field (41) = 11119627
Field (42) = EBN000000005231
Field (43) = ENG RV RUMUOKORO RV RVNG
Field (49) = 566
Field (52) = 3145363845444331
eventually
not work with postilion as it needs a binary bitmap packager and not the ascii one that your current code works with. I hope you understand that. Please try and understand the difference between ascii and binary packager.--
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/b66fbaad-f10a-4f13-a93e-cdb70c48d63e%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f1d0157c-de0a-448b-856d-5626a724c19d%40googlegroups.com.
A bitmap message (postilion.realtime.postbridge.Iso8583PBLegacy) could not be unpacked, because of an error while unpacking field number 30 (Fixed x+n 9) at offset 92. When the error occurred, the bitmap looked like this: 0200: [LLVAR n ..19 006] 002 [107152] [Fixed n 10 010] 007 [2300000043] [None n 008] 008 [40201000] [None n 008] 009 [00000100] [Fixed n 6 006] 011 [000910] [Fixed n 6 006] 012 [021203] [Fixed n 4 004] 015 [0000] [Fixed n 3 003] 019 [010] [Fixed n 3 003] 020 [212] [Fixed n 3 003] 021 [030] [Fixed n 3 003] 022 [910] [Fixed n 2 002] 026 [21]
0000(0000) 30 32 30 30 c3 b2 3c 46 c3 95 29 c3 a0 e2 80 99 0200..<F..).....
0016(0010) 00 00 00 00 00 52 00 00 20 31 39 35 30 36 31 30 .....R.. 1950610
0032(0020) 37 31 35 32 32 33 30 30 30 30 30 30 34 33 34 30 7152230000004340
0048(0030) 32 30 31 30 30 30 30 30 30 30 30 31 30 30 30 30 2010000000010000
0064(0040) 30 39 31 30 30 32 31 32 30 33 30 30 30 30 30 31 0910021203000001
0080(0050) 30 32 31 32 30 33 30 39 31 30 32 31 30 32 36 30 0212030910210260
0096(0060) 31 31 30 35 31 30 30 31 30 30 31 32 44 30 30 30 110510010012D000
0112(0070) 30 30 30 30 30 43 30 30 30 30 30 30 30 30 30 36 00000C0000000006
0128(0080) 35 30 36 31 30 37 33 36 35 30 36 31 30 37 31 35 5061073650610715
0144(0090) 32 32 33 30 30 30 30 30 30 34 33 44 32 31 30 32 22300000043D2102
0160(00a0) 36 30 31 30 31 33 35 34 34 34 33 33 31 31 31 31 6010135444331111
0176(00b0) 39 36 30 30 30 30 30 31 36 30 31 31 31 31 31 39 9600000160111119
0192(00c0) 36 32 37 45 42 4e 30 30 30 30 30 30 30 30 35 32 627EBN0000000052
0208(00d0) 33 31 45 4e 47 20 52 56 20 52 55 4d 55 4f 4b 4f 31ENG RV RUMUOKO
0224(00e0) 52 4f 20 20 20 20 20 20 20 52 56 20 20 20 20 20 RO RV
0240(00f0) 20 20 20 20 20 20 52 56 4e 47 35 36 36 1e 68 c3 RVNG566.h.
0256(0100) ad c3 81 c3 b0 4e c5 92 5b 32 30 30 39 46 32 36 .....N..[2009F26
0272(0110) 30 38 36 43 45 44 30 45 43 43 34 43 33 38 44 32 086CED0ECC4C38D2
0288(0120) 44 34 39 46 32 37 30 31 34 30 39 46 31 30 32 30 D49F2701409F1020
0304(0130) 30 46 41 35 30 31 36 32 30 32 30 30 31 34 30 30 0FA5016202001400
0320(0140) 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
0336(0150) 30 46 30 31 41 41 41 41 41 41 41 41 41 41 41 41 0F01AAAAAAAAAAAA
0352(0160) 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0368(0170) 39 46 33 37 30 34 42 46 31 46 34 41 38 34 39 46 9F3704BF1F4A849F
0384(0180) 33 36 30 32 30 31 45 45 39 35 30 35 34 32 38 30 360201EE95054280
0400(0190) 32 34 31 30 30 30 39 41 30 33 31 36 31 32 32 32 2410009A03161222
0416(01a0) 39 43 30 31 30 30 39 46 30 32 30 36 30 30 30 30 9C01009F02060000
0432(01b0) 30 30 30 30 30 30 31 35 35 46 32 41 30 32 30 39 000000155F2A0209
0448(01c0) 34 39 38 32 30 32 35 38 30 30 39 46 31 41 30 32 49820258009F1A02
0464(01d0) 30 37 39 32 39 30 33 37 30 38 30 33 37 30 38 30 0792903708037080
0480(01e0) 33 37 30 38 30 33 37 30 38 34 31 34 37 30 36 39 3708037084147069
0496(01f0) 30 33 37 30 38 31 30 35 32 35 31 30 33 36 35 31 0370810525103651
0512(0200) 33 30 31 35 35 31 31 32 30 31 35 31 33 33 34 34 3015511201513344
0528(0210) 30 30 32 002
Postilion exception: [postilion.realtime.sdk.message.bitmap.XBitmapUnableToExtract]
Description: A bitmap message (postilion.realtime.postbridge.Iso8583PBLegacy) could not be unpacked, because of an error while unpacking field number 30 (Fixed x+n 9) at offset 92. When the error occurred, the bitmap looked like this:
0200:
[LLVAR n ..19 006] 002 [107152]
[Fixed n 10 010] 007 [2300000043]
[None n 008] 008 [40201000]
[None n 008] 009 [00000100]
[Fixed n 6 006] 011 [000910]
[Fixed n 6 006] 012 [021203]
[Fixed n 4 004] 015 [0000]
[Fixed n 3 003] 019 [010]
[Fixed n 3 003] 020 [212]
[Fixed n 3 003] 021 [030]
[Fixed n 3 003] 022 [910]
[Fixed n 2 002] 026 [21]
ID: [301]
Data: [none]
at postilion.realtime.sdk.message.bitmap.BitmapMessage.fromMsg(BitmapMessage.java:551)
at postilion.realtime.sdk.message.bitmap.Iso8583.fromMsg(Iso8583.java:221)
at postilion.realtime.sdk.message.bitmap.Iso8583Post.fromMsg(Iso8583Post.java:457)
at postilion.realtime.sdk.message.bitmap.BitmapMessage.fromMsg(BitmapMessage.java:416)
at postilion.realtime.postbridge.PostBridge.newMsg(PostBridge.java:180)
at postilion.realtime.sdk.node.ProfilingInterchangeDriver.newMsg(ProfilingInterchangeDriver.java:119)
at postilion.realtime.sdk.node.Interchange.processDataEventFromRemoteNode(Interchange.java:3620)
at postilion.realtime.sdk.node.Interchange.processEndpointData(Interchange.java:629)
at postilion.realtime.sdk.node.InterchangeProcessor.processEndpointData(InterchangeProcessor.java:816)
at postilion.realtime.sdk.node.InterchangeProcessor.processEvent(InterchangeProcessor.java:548)
at postilion.realtime.sdk.util.Processor.run(Processor.java:213)
at postilion.realtime.sdk.env.AppProcessor.run(AppProcessor.java:136)
In postpack.xml the definition is
<isofield
id="28"
length="9"
name="AMOUNT, TRANSACTION FEE"
class="org.jpos.iso.IFA_AMOUNT"/>
<isofield
id="29"
length="9"
name="AMOUNT, SETTLEMENT FEE"
class="org.jpos.iso.IFA_AMOUNT"/>
<isofield
id="30"
length="9"
name="AMOUNT, TRANSACTION PROCESSING FEE"
class="org.jpos.iso.IFA_AMOUNT"/>
[LLVAR n ..19 006] 002 [107152]
0016(0010) 00 00 00 00 00 52 00 00 20 31 39 35 30 36 31 30 .....R.. 1950610
0032(0020) 37 31 35 32 32 33 30 30 30 30 30 30 34 33 34 30 7152230000004340
Based on the postilion hexdump, it should be starting from 19 which is the length of pan and then 19 bytes following it. So your Bitmap format is wrong and Postilion is interpretting based on the incorrect value you are sending.
Your bitmap seems to be longer than 16 causing the bytes to shift, causing field 2 be read at 06 instead of 19 (from 1950610...) , making 06 the length of field 2 and everything falls apart from there.
I don't have time to debug this for you.
Please figure out the packagers, set it correctly.
Best of luck.
-chhil
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7b9129de-1ad8-48f2-97d2-63337936fdf7%40googlegroups.com.
<isofield
id="35"
length="37"
name="TRACK 2 DATA"
class="org.jpos.iso.IFA_LLNUM"/>
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/993d1436-7694-4b61-bc64-058f90c3571b%40googlegroups.com.
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ISOUtil;
import org.jpos.iso.packager.GenericPackager;
import org.jpos.util.Logger;
import org.jpos.util.SimpleLogListener;
public class Test {
public static void main(String[] args)
{
Logger l = new Logger();
l.addListener(new SimpleLogListener());
String hex_without_field_25 = "30323030f23c46552960100000000000000000023139353036313037313532323330303030303034333430323031303030303030303031303030303039313630333532343130303030303130333532343130393136323130323630313130313130303131324430303030303030304430303030303030303131313131313131313131313133363530363130373135323233303030303030343344323130323630313031333534343433333131313139363030303030313630314155544f50415930303030303030334b4e53472f5446442f41756775737420323031362053616c612f313832363336382f20204c414e471e68c3adc381c3b030303030343240000000000000003332303230303a3030303030313a303931363033353234313a303034333530363130";
ISOMsg m = new ISOMsg();
GenericPackager p;
try {
p = new GenericPackager(".\\cfg\\postpack.xml");
p.setLogger(l, "");
m.setPackager(p);
m.unpack(ISOUtil.hex2byte(hex_without_field_25));
m.set(25, "00");
byte[] with_field25 = m.pack();
System.out.println(ISOUtil.hexdump(with_field25));
m.unpack(with_field25);
}
catch (ISOException e) {
e.printStackTrace();
m.dump(System.out, "!");
}
}
}
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a026492e-c2a2-4c56-8916-ed20986228b3%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a026492e-c2a2-4c56-8916-ed20986228b3%40googlegroups.com.