ISOException: Invalid message length

46 views
Skip to first unread message

The Story Teller Nepal

unread,
Jul 10, 2022, 10:21:17 AM7/10/22
to jPOS Users
Dear Team,

I am facing following issue of message length, I don't where and how to make the change please help

<!-- org.jpos.iso.packager.GenericPackager[cfg/packager_bfis.xml] -->            
      <field id="0" value="0200"/>                                                      
      <field id="2" value="XXXXNPKA"/>                                                    
      <field id="3" value="401010"/>                                                    
      <field id="4" value="1000000"/>                                                    
      <field id="7" value="0621020820"/>                                                                                                                              
      <field id="11" value="749783"/>                                                                                                                                
      <field id="12" value="020820"/>                                                                                                                                
      <field id="13" value="0621"/>                                                                                                                                  
      <field id="14" value="0000"/>                                                                                                                                  
      <field id="15" value="0621"/>                                                                                                                                  
      <field id="18" value="6011"/>                                                                                                                                  
      <field id="22" value="901"/>                                                                                                                                    
      <field id="25" value="00"/>                                                                                                                                    
      <field id="32" value="15548131"/>                                                                                                                              
      <field id="35" value="0000000000000000000000000000000000000"/>                                                                                                  
      <field id="37" value="220621749783"/>                                                                                                                          
      <field id="41" value="15548131"/>                                                  
      <field id="42" value="000000000000001"/>                                                  
      <field id="43" value="ABC           BFIS                    NP"/>
      <field id="49" value="524"/>                                    
      <field id="102" value="B0019916033100"/>                                          
      <field id="103" value="B006006003771T"/>                        
      <field id="123" value="FPAY:IBFT:49795237:1209:XXXXNPKA:ZZZZNPKA:SUNIL "/>
      <field id="124" value="ABC5-20632345"/>                                  
    </isomsg>                                                                  
  </send>

  <log realm="channel/10.20.102.103:5006" at="2022-06-21T14:08:21.670577" lifespan="1420ms">
  <receive>                                                                              
    <iso-exception>                                                                      
      Invalid message length ^M                                                          
02                                                                                                
      org.jpos.iso.ISOException: Invalid message length ^M                                
02                                                                              
        at org.jpos.iso.channel.ASCIIChannel.getMessageLength(ASCIIChannel.java:118)                
        at org.jpos.iso.BaseChannel.receive([BaseChannel.java:704|https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fBaseChannel.java%3a704&c=E,1,vx7GEXlD6UbDX2PE7lGkY1K9a1YUfdEDuU93Zm42llQS5BnkbjV8hhasaLI3NBwp-Mcxg_nzcM13YzpeaY0di6c4Gv_5JoVlu2ONWRaaYkWAcl9d22pC09Fi7vHx&typo=1&ancr_add=1])                        
        at org.jpos.q2.iso.ChannelAdaptor${color}[Receiver.run|https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fReceiver.run&c=E,1,ugcX6xCZJ24rblhzdNzog6e1Gx8ALQOWfJ1TvlNR2aUJgl0IMN47koH6pdH877e32u4v13eOycxrxe5bDY8Gsag2cHzB9yKsfYjcDo88eYX3fN3Y&typo=1&ancr_add=1]([ChannelAdaptor.java:318|https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fChannelAdaptor.java%3a318&c=E,1,DGmkDTadSIGYRHDJhxQs5TCWFkzttigntDOeN_Xmr5_NgXtcUR1v2HqehJB6_ogRtsON5469-k70S6zbUMZ2fbcLitSc6zkV8Xj1EyB9wg,,&typo=1&ancr_add=1])    
        at java.base/[java.lang.Thread.run|https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fjava.lang.Thread.run&c=E,1,PHLrf7pDl2qVTLie-eqZYrAUpIGq9CQAQxziTDG8cVHlpFqq8FMWrO0Y8vcDNNk4z989aHuzTrVsbYMUjYIrqTJDjpvDAIHZR-Q06UyS7AI07k_z&typo=1&ancr_add=1]([Thread.java:834|https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fThread.java%3a834&c=E,1,_LJxbi9aG3geMH2W4MAb7zysSjUeZgJSatusDOVL0OYjzCObDLtynRa59JrZc3hf5hxaCMV4cnvRSUKhRVfAD9l5GEbt3f9xW1tCBpKt&typo=1&ancr_add=1])                                
    </iso-exception>                                                                      
  </receive>                                                                                 </log>

murtuza chhil

unread,
Jul 24, 2022, 10:52:25 PM7/24/22
to jPOS Users
The channel you use determines how the length is extracted.

You are using AsciiChannel and the length of the message is determined by 

You need to pick the right channel. The possibility here is you sent a message and the receiver could not understand what you sent as it could not unpack your message based on how your channel indicated the length and the receiver is sending you a message saying there was problem with your message.

-chhil


Reply all
Reply to author
Forward
0 new messages