JPOS Unpacking Field 127.22 From Switch - org.jpos.iso.IFA_LLLLLCHAR: Problem unpacking field 22 (org.jpos.iso.ISOException: Invalid character found. Expected digit.)

460 views
Skip to first unread message

pgu...@gmail.com

unread,
Jul 2, 2021, 10:11:59 AM7/2/21
to jPOS Users
Getting error on unpacking message 

<log realm="xml-server-8000/192.168.1.160:42500" at="2021-07-02T10:08:57.518" lifespan="34952ms">
  <receive>
    <iso-exception>
      org.jpos.iso.IFA_LLLLLCHAR: Problem unpacking field 22 (org.jpos.iso.ISOException: Invalid character found. Expected digit.) unpacking field=22, consumed=424 unpacking field=127, consumed=261
      org.jpos.iso.ISOException: org.jpos.iso.IFA_LLLLLCHAR: Problem unpacking field 22 (org.jpos.iso.ISOException: Invalid character found. Expected digit.) unpacking field=22, consumed=424 unpacking field=127, consumed=261
        at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:335)
        at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:468)
        at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:976)
        at org.jpos.iso.BaseChannel.receive(BaseChannel.java:746)
        at org.jpos.iso.ISOServer$Session.run(ISOServer.java:344)
        at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:76)
    </iso-exception>
    --- data ---
    0000  30 32 30 30 B2 3A 44 95  88 E0 81 20 00 00 00 00  0200.:D.... ....
0010  16 00 00 22 35 34 32 30  32 30 30 30 30 30 30 30  ..."542020000000
0020  30 30 33 39 30 30 30 37  30 32 31 30 30 38 35 37  0039000702100857
0030  30 30 30 30 37 36 31 30  30 38 35 37 30 37 30 32  0000761008570702
0040  30 37 30 32 36 30 31 31  30 30 31 32 37 43 30 30  0702601100127C00
0050  30 30 30 30 30 30 43 30  30 30 30 30 30 30 30 30  000000C000000000
0060  36 35 30 32 31 39 35 30  36 35 30 32 31 39 35 32  6502195065021952
0070  31 32 35 37 30 30 34 35  30 30 30 5A 53 53 32 36  12570045000ZSS26
0080  33 37 37 32 36 33 37 37  2D 53 42 5A 4D 4F 42 49  37726377-SBZMOBI
0090  4C 45 53 42 5A 20 4D 4F  42 49 4C 45 20 45 43 4F  LESBZ MOBILE ECO
00a0  4E 45 54 20 20 20 20 20  20 48 41 52 41 52 45 20  NET      HARARE 
00b0  20 20 20 20 20 20 41 46  5A 57 39 33 32 30 30 34        AFZW932004
00c0  31 35 31 30 30 31 30 30  36 32 38 37 30 35 36 39  1510010062870569
00d0  35 30 36 37 37 37 37 37  37 31 30 32 30 30 31 37  5067777771020017
00e0  35 39 37 30 31 31 32 30  34 30 30 30 30 32 39 31  5970112040000291
00f0  32 38 37 30 31 35 31 30  30 34 35 30 31 30 30 31  2870151004501001
0100  33 30 30 32 31 30 30 31  30 38 39 60 80 35 00 80  30021001089`.5..
0110  00 00 00 31 30 30 36 32  38 37 30 35 36 39 35 53  ...100628705695S
0120  62 7A 49 73 73 53 72 63  20 20 20 53 62 7A 52 74  bzIssSrc   SbzRt
0130  67 4F 75 74 53 6E 6B 30  30 30 30 37 36 30 30 30  gOutSnk000076000
0140  30 37 36 20 20 20 20 20  20 20 20 20 20 20 20 33  076            3
0150  30 30 74 65 73 74 20 20  20 20 20 20 20 20 20 20  00test          
0160  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0170  7E 20 74 65 73 74 33 39  74 65 73 74 20 20 20 20  ~ test39test    
0180  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0190  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
01f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0200  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0210  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0220  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0230  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0240  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0250  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0260  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                  
0270  7E 20 30 34 30 30 30 30  32 39 31 32 38 37 35 30  ~ 04000029128750
0280  34 38 37 35 20 20 20 20  20 20 20 20 20 20 20 20  4875            
0290  20 20 20 20 20 20 20 20  20 20 20 20 20 32 30 32               202
02a0  31 30 37 30 32 30 30 36  35 36 32 31 38 42 65 6E  1070200656218Ben
02b0  65 66 69 63 69 61 72 79  41 63 63 6F 75 6E 74 32  eficiaryAccount2
02c0  31 32 30 34 30 30 30 30  32 39 31 32 38 37 32 31  1204000029128721
02d0  38 50 6F 73 74 69 6C 69  6F 6E 3A 4D 65 74 61 44  8Postilion:MetaD
02e0  61 74 61 33 32 34 37 32  31 38 42 65 6E 65 66 69  ata3247218Benefi
02f0  63 69 61 72 79 41 63 63  6F 75 6E 74 31 31 31 32  ciaryAccount1112
0300  32 30 42 65 6E 65 66 69  63 69 61 72 79 52 65 66  20BeneficiaryRef
0310  65 72 65 6E 63 65 31 31  31 32 31 39 42 65 6E 65  erence111219Bene
0320  66 69 63 69 61 72 79 42  61 6E 6B 43 6F 64 65 31  ficiaryBankCode1
0330  31 31 31 39 52 65 66 65  72 65 6E 63 65 31 31 31  1119Reference111
0340  32 31 35 42 65 6E 65 66  69 63 69 61 72 79 4E 61  215BeneficiaryNa
0350  6D 65 31 31 31 32 32 36  50 6F 73 74 69 6C 69 6F  me111226Postilio
0360  6E 3A 41 63 74 69 76 65  41 63 74 69 76 65 44 61  n:ActiveActiveDa
0370  74 61 31 31 31 32 31 34  53 65 6E 64 65 72 46 75  ta111214SenderFu
0380  6C 6C 4E 61 6D 65 31 31  31 32 31 34 56 61 73 41  llName111214VasA
0390  70 70 6C 69 63 61 74 69  6F 6E 31 31 31 32 32 34  pplication111224
03a0  42 65 6E 65 66 69 63 69  61 72 79 49 6E 73 74 69  BeneficiaryInsti
03b0  74 75 74 69 6F 6E 49 64  31 31 31 32 32 30 42 65  tutionId111220Be
03c0  6E 65 66 69 63 69 61 72  79 53 77 69 66 74 43 6F  neficiarySwiftCo
03d0  64 65 31 31 31 31 34 4D  53 44 4E 31 31 31 32 32  de11114MSDN11122
03e0  30 42 65 6E 65 66 69 63  69 61 72 79 52 65 66 65  0BeneficiaryRefe
03f0  72 65 6E 63 65 32 31 30  74 65 73 74 33 39 74 65  rence210test39te
0400  73 74 32 31 39 42 65 6E  65 66 69 63 69 61 72 79  st219Beneficiary
0410  42 61 6E 6B 43 6F 64 65  31 36 35 30 34 38 37 35  BankCode16504875
0420  31 39 52 65 66 65 72 65  6E 63 65 32 31 30 74 65  19Reference210te
0430  73 74 33 39 74 65 73 74  32 31 35 42 65 6E 65 66  st39test215Benef
0440  69 63 69 61 72 79 4E 61  6D 65 31 34 74 65 73 74  iciaryName14test
0450  32 32 36 50 6F 73 74 69  6C 69 6F 6E 3A 41 63 74  226Postilion:Act
0460  69 76 65 41 63 74 69 76  65 44 61 74 61 32 34 32  iveActiveData242
0470  32 32 33 50 6F 73 74 43  61 72 64 3A 50 6F 73 74  223PostCard:Post
0480  65 64 44 61 74 65 54 69  6D 65 32 31 33 31 36 32  edDateTime213162
0490  35 32 31 33 36 34 30 33  38 32 32 32 34 42 65 6E  5213640382224Ben
04a0  65 66 69 63 69 61 72 79  49 6E 73 74 69 74 75 74  eficiaryInstitut
04b0  69 6F 6E 49 64 31 36 35  30 34 38 37 35 32 31 34  ionId16504875214
04c0  56 61 73 41 70 70 6C 69  63 61 74 69 6F 6E 32 31  VasApplication21
04d0  36 69 6E 74 65 72 6E 65  74 2D 62 61 6E 6B 69 6E  6internet-bankin
04e0  67 32 31 34 53 65 6E 64  65 72 46 75 6C 6C 4E 61  g214SenderFullNa
04f0  6D 65 32 31 35 54 61 6B  75 64 7A 77 61 20 4D 75  me215Takudzwa Mu
0500  74 61 77 75 32 32 30 42  65 6E 65 66 69 63 69 61  tawu220Beneficia
0510  72 79 53 77 69 66 74 43  6F 64 65 31 38 41 47 52  rySwiftCode18AGR
0520  5A 5A 57 48 41 31 34 4D  53 44 4E 32 31 32 32 36  ZZWHA14MSDN21226
0530  33 37 37 31 32 32 32 31  39 39 31 32 30 34 30 30  3771222199120400
0540  30 30 32 39 31 32 38 37  39 38 38 30              002912879880

  </receive>
</log>
<log realm="xml-server-8000.server.session/192.168.1.160:42500" at="2021-07-02T10:08:57.519">
  <session-error>
    <iso-exception>
      org.jpos.iso.IFA_LLLLLCHAR: Problem unpacking field 22 (org.jpos.iso.ISOException: Invalid character found. Expected digit.) unpacking field=22, consumed=424 unpacking field=127, consumed=261
      org.jpos.iso.ISOException: org.jpos.iso.IFA_LLLLLCHAR: Problem unpacking field 22 (org.jpos.iso.ISOException: Invalid character found. Expected digit.) unpacking field=22, consumed=424 unpacking field=127, consumed=261
        at org.jpos.iso.ISOBasePackager.unpack(ISOBasePackager.java:335)
        at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:468)
        at org.jpos.iso.BaseChannel.unpack(BaseChannel.java:976)
        at org.jpos.iso.BaseChannel.receive(BaseChannel.java:746)
        at org.jpos.iso.ISOServer$Session.run(ISOServer.java:344)
        at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:76)
    </iso-exception>
  </session-error>
</log>

Message from switch example

0200: [Fixed n 6 006] 003 [542020] [None n 012] 004 [000000003900] [Fixed n 10 010] 007 [0702100857] [Fixed n 6 006] 011 [000076] [Fixed n 6 006] 012 [100857] [Fixed n 4 004] 013 [0702] [Fixed n 4 004] 015 [0702] [Fixed n 4 004] 018 [6011] [Fixed n 3 003] 022 [001] [Fixed n 2 002] 025 [27] [Fixed x+n 9 009] 028 [C00000000] [Fixed x+n 9 009] 030 [C00000000] [LLVAR n ..11 006] 032 [502195] [LLVAR n ..11 006] 033 [502195] [Fixed anp 12 012] 037 [212570045000] [Fixed ans 8 008] 041 [ZSS26377] [Fixed ans 15 015] 042 [26377-SBZMOBILE] [Fixed ans 40 040] 043 [SBZ MOBILE ECONET HARARE AFZW] [Fixed a/n 3 003] 049 [932] [LLLVAR n 4 004] 056 [1510] [LLLVAR ans ..500 010] 059 [0628705695] [LLVAR n ..11 006] 100 [777777] [LLVAR ans ..28 010] 102 [2001759701] [LLVAR ans ..28 012] 103 [040000291287] [LLLVAR an 15 015] 123 [100450100130021] [LLVAR ans ..32 010] 127.002 [0628705695] [Fixed ans* 48 048] 127.003 [SbzIssSrc SbzRtgOutSnk000076000076 ] [LLLVAR ans ..999 300] 127.009 [test ~ test39test ~ 040000291287] [Fixed ans 31 031] 127.019 [504875 ] [Fixed n 8 008] 127.020 [20210702] [LLLLLVAans 99999 656] 127.022.BeneficiaryAccount [040000291287] [LLLLLVAans 99999 656] 127.022.Postilion:MetaData [218BeneficiaryAccount111220BeneficiaryReference111219BeneficiaryBankCode11119Reference111215BeneficiaryName111226Postilion:ActiveActiveData111214SenderFullName111214VasApplication111224BeneficiaryInstitutionId111220BeneficiarySwiftCode11114MSDN111] [LLLLLVAans 99999 656] 127.022.BeneficiaryReference [test39test] [LLLLLVAans 99999 656] 127.022.BeneficiaryBankCode [504875] [LLLLLVAans 99999 656] 127.022.Reference [test39test] [LLLLLVAans 99999 656] 127.022.BeneficiaryName [test] [LLLLLVAans 99999 656] 127.022.Postilion:ActiveActiveData [223PostCard:PostedDateTime2131625213640382] [LLLLLVAans 99999 656] 127.022.SenderFullName [Takudzwa Mutawu] [LLLLLVAans 99999 656] 127.022.VasApplication [internet-banking] [LLLLLVAans 99999 656] 127.022.BeneficiaryInstitutionId [504875] [LLLLLVAans 99999 656] 127.022.BeneficiarySwiftCode [AGRZZWHA] [LLLLLVAans 99999 656] 127.022.MSDN [263771222199] [LLVAR ans ..28 012] 127.024 [040000291287] [Fixed n 4 004] 127.033 [9880] 


My configuration

<server class="org.jpos.q2.iso.QServer" logger="Q2" name="xml-server-8000" realm="xml-server-8000">
<attr name="port" type="java.lang.Integer">18000</attr>
<channel class="org.jpos.iso.channel.PostChannel"
packager="org.jpos.iso.packager.PostPackager"
type="server"
logger="Q2"
realm="xml-server-8000">
<property name="timeout" value="180000"/>
<!-- <property name="packager-config" value="jar:packager/post-bridge.xml" />-->
</channel>
<request-listener class="zw.steward.bridge.incoming.IncomingISOListener" logger="Q2" realm="incoming-request-listener">
<property name="queue" value="TXNMGR" />
<property name="ctx.DESTINATION" value="jPOS-AUTORESPONDER" />
</request-listener>
</server>

other messages work fine , can you kindly assist what i might be missing 






Alejandro Revilla

unread,
Jul 2, 2021, 2:10:46 PM7/2/21
to jPOS Users
You may want to use IFA_LLLLLBINARY instead.

murtuza chhil

unread,
Jul 4, 2021, 9:35:13 PM7/4/21
to jPOS Users
Just an FYI... there is a packager to support Postilion switches.

https://github.com/jpos/jPOS/blob/master/jpos/src/dist/cfg/packager/postpack.xml

Prince Gujie

unread,
Jul 7, 2021, 4:17:10 PM7/7/21
to jpos-...@googlegroups.com
Thanks guys , my error was that the https://github.com/jpos/jPOS/blob/master/jpos/src/dist/cfg/packager/postpack.xml or Post Packager  class  does not conform to the Post Bridge Spec for Postilion esp on fields 127.2 so corrected them and that was the fix 

--
--
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/6462acc8-f7d6-46da-96bd-e271f6c53a2bn%40googlegroups.com.

Victor Salaman

unread,
Jul 7, 2021, 5:06:43 PM7/7/21
to 'Ruchira Biyani' via jPOS Users
Hi:

This being a community project, it's up to the community to keep these packagers up-to-date. I wrote the  Postilion channel/packager in 1999, for Postilion 3.5 ISOBridge. I can imagine much has changed since then :) If it's not too much trouble, please create a new version, and submit your work along with test-cases if possible, so future developers can have it easier. Pay it forward!

Cheers,

/V

Reply all
Reply to author
Forward
0 new messages