Getting Error to Connect with Finacle BancsConnect

1,250 views
Skip to first unread message

Rejuan Masud Masud

unread,
Dec 6, 2012, 1:15:40 PM12/6/12
to jpos-...@googlegroups.com
I am trying to develop a web Service to connect with Finacle BancsConnect using JPOS ASCHII Channel. I am trying to develop a web Service to connect with Finacle BancsConnect using JPOS ASCHII Channel. Bet
> getting error as "Message received is not complete Length after
> Disassembling [200], Length before Disassembling [200]" Any Expert is there
> to do kind help? on this regards. How to fix the error. There may be a
> trailing space or any.>


> Pid: 11379 06/12/2012 20:39:14.346 Received 204 Bytes
> 30 32 30 30 31 32 30 30 f0 30 81 01 00 84 80 00 02001200.0......
> 00 00 00 00 06 00 00 30 31 36 35 31 39 36 32 35 .......016519625
> 32 30 30 30 33 38 36 33 36 37 34 30 30 30 30 30 2000386367400000
> 30 30 30 30 30 30 30 35 30 30 30 30 30 35 34 35 0000000500000545
> 37 37 32 30 31 32 31 32 32 30 31 32 32 30 30 31 7720121220122001
> 31 31 32 33 34 35 36 37 38 39 30 31 43 42 4c 49 112345678901CBLI
> 42 20 20 20 30 35 30 30 30 42 44 54 43 30 30 30 B  05000BDTC000
> 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
> 30 30 30 30 31 44 30 30 30 30 30 30 30 30 30 30 00001D0000000000
> 30 30 30 30 30 30 42 44 54 30 35 30 31 36 31 36 000000BDT0501616
> 30 32 31 30 32 33 35 38 39 30 32 30 30 31 31 36 0210235890200116
> 31 30 31 32 32 35 31 31 30 36 32 30 37 30 30 31 1012251106207001
> 30 30 33 43 42 4c 30 30 33 41 54 4d            003CBL003ATM
>

> [/finacle/7018ON10J15/standin/v1.2/projects/swif/src/swfso001.cxx,1056]
> (fnDisassemble8583) Message Length greater than 20 but Field not Received
> [/finacle/7018ON10J15/standin/v1.2/projects/swif/src/swfso001.cxx,651]
> (fnSWIFProcMsg) fnDisassemble8583 Failed : Message received is not complete
> Length after Disassembling [200], Length before Disassembling [200]

>
>
>


Here is the code I am using to connect. Any Suggestion Please:


ISOMsg isoMsg = new ISOMsg();

    isoMsg.setPackager(packager);   
    isoMsg.setMTI("1200");
    isoMsg.set(2, "5196252000386367");   
    isoMsg.set(3, "400000");   
    isoMsg.set(4, "50000");   
    isoMsg.set(11, "054577");
    isoMsg.set(12, "201212");
    isoMsg.set(17, "2012");   
    isoMsg.set(24, "200");
    isoMsg.set(32, "12345678901");
    //isoMsg.set(37, "522194824");
    isoMsg.set(41, "CBLIB");
    //isoMsg.set(42, "IB");
    //isoMsg.set(43, "CITY>DHAKABD");   
    isoMsg.set(46, "00BDTC000000000000000000000001D0000000000000000BDT");   
    isoMsg.set(49, "050");   
    isoMsg.set(102, "1602102358902001");
    isoMsg.set(103, "1012251106207001");
    isoMsg.set(123, "CBL");
    isoMsg.set(124, "ATM");   
    //isoMsg.set(125, "1234556/56778890");
       
    byte[] data = isoMsg.pack();
   
               
       ASCIIChannel myChannel = new ASCIIChannel();
       myChannel.setHost("192.168.200.180");
       myChannel.setPort(20037);
       myChannel.setPackager(packager);
       myChannel.connect();
     
       myChannel.send(isoMsg);
      
       myChannel.getLogger();
             
       ISOMsg responseMsg = myChannel.receive();
      
       System.out.println(responseMsg);
       >
> It should be noted that I am using 1987binary-aschii packager to pack the ISOMsg. Any help will be highly appreciated. I need urgent help.




 

seon...@gmail.com

unread,
Dec 6, 2012, 1:20:36 PM12/6/12
to jpos-...@googlegroups.com
Hi
The field specifications for finacle are not fixed. Talk to the finacle experts/consultants involved in the project to share the cbc.cfg file, which is where field specifications are defined and then make sure the GenericPackager xml file you are using matches properly

Sent from my BlackBerry wireless device from MTN

From: Rejuan Masud Masud <phpex...@gmail.com>
Date: Thu, 6 Dec 2012 10:15:40 -0800 (PST)
Subject: [jpos-users] Getting Error to Connect with Finacle BancsConnect
--
--
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 "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
 
 

Rejuan Masud Masud

unread,
Dec 9, 2012, 2:24:00 AM12/9/12
to jpos-...@googlegroups.com, seon...@gmail.com
Thanks!!  I have the cfg. as i know it it is cdci.cfg, but u r saying in cbc.cfg, is there any clue other than cdcicfg?, should I modify packager iso87ascii-binary-bitmap.xml according to cdci.cfg? Please help me on this.

sumeet....@gmail.com

unread,
Dec 9, 2012, 2:30:36 AM12/9/12
to jpos-...@googlegroups.com, seon...@gmail.com
Hi,

From my experience CDCI uses 1993 version.

Sent from my BlackBerry® smartphone from !DEA

From: Rejuan Masud Masud <phpex...@gmail.com>
Date: Sat, 8 Dec 2012 23:24:00 -0800 (PST)
Subject: Re: [jpos-users] Getting Error to Connect with Finacle BancsConnect

Thanks!!  I have the cfg. as i know it it is cdci.cfg, but u r saying in cbc.cfg, is there any clue other than cdcicfg?, should I modify packager iso87ascii-binary-bitmap.xml according to cdci.cfg? Please help me on this.

Rejuan Masud Masud

unread,
Dec 9, 2012, 3:35:55 AM12/9/12
to jpos-...@googlegroups.com
Thank You all. I have fixed it. Any more issue I will face will let u know all.

Mark Salter

unread,
Dec 9, 2012, 4:45:11 AM12/9/12
to jpos-...@googlegroups.com
Base any modification or alignment of on the *documentation* and if
necessary with help of the target system owners?

They should be able to provide you with the specification of their
interface so that you can make any required changes?

They can also advise which configuration they are using too.

Until you have all that detail from them, there is little we can do to help.

--
Mark

seon...@gmail.com

unread,
Dec 9, 2012, 7:23:02 AM12/9/12
to jpos-...@googlegroups.com
Well possibly cdci.cfg, its basically an xml like file that defines each field.

You can modify so87ascii-binary-bitmap.xml according to cdci.cfg


Sent from my BlackBerry wireless device from MTN

Message has been deleted

amit shukla

unread,
Jan 15, 2013, 1:42:23 AM1/15/13
to jpos-...@googlegroups.com
Hi Rejuan Masud,

Please let me know how fixed the problem.
I am also getting error in connection with finacle ,using ASCII chaneel of Jpos.

Mark Salter

unread,
Jan 15, 2013, 2:39:13 AM1/15/13
to jpos-...@googlegroups.com
On 15/01/2013 06:42, amit shukla wrote:
> Please let me know how fixed the problem.
> I am also getting error in connection with finacle ,using ASCII chaneel
> of Jpos.

The final solution from this thread may well be different to the one you
need.

Almost certainly Rejuan got the detail of the field formats needed and
matched those with his Packager definition. He may also have
checked/changed his Channel to match the target system too.


I suggest you do the same:-

- ask the target systems administrators for the details of their message
layout.

Match this with a Packager from the selection available or fashion your
own by adjusting an existing one (make a new file)

- ask the target systems administrators for their specification on how
the messages flow over the network.

Match this with a Channel from the selection available or fashion your
own by adjusting an existing one (make a new file)



These two simple steps are necessary and will get you moving forward.

--
Mark

Alejandro Revilla

unread,
Jan 15, 2013, 5:29:50 AM1/15/13
to jpos-...@googlegroups.com


Hi RawChannel,

You're working too hard my friend, you see channels instead of people :)


amit shukla

unread,
Jan 16, 2013, 10:07:02 AM1/16/13
to jpos-...@googlegroups.com
Hi mark,
Thanks for reply.
I have the detail of all the fields.
But dont have the detail of network flow .(channel) and client not able to give me that detail.
When i tried with ASCII channel i m getting java .net Unknown host exception. I have confirmed finacle server ip and port is working perfectly.

Mark Salter

unread,
Jan 16, 2013, 10:41:36 AM1/16/13
to jpos-...@googlegroups.com
On 16/01/2013 15:07, amit shukla wrote:
> I have the detail of all the fields.
And they accurately match the Packager you are using?

> But dont have the detail of network flow .(channel) and client not able to give me that detail.
Why can't they supply it?

Do you have a working client connecting to the same target system you
could trace (using something like wireshark perhaps) ?

> When i tried with ASCII channel i m getting java .net Unknown host exception.

Please provide the full Exception text?

Are you using a hostname instead of a numeric address? Can your dns
server resolve the hostname to an ip address?


> I have confirmed finacle server ip and port is working perfectly.

How?


--
Mark

amit shukla

unread,
Jan 18, 2013, 4:02:51 AM1/18/13
to jpos-...@googlegroups.com
Hi Mark,

I am using ip address and port .
I am getting this  error "org.jpos.iso.ISOException:java.netUnkownHostException:jpos.org(java.net.UnkownHostException.jpos.org)"


I am getting this error even at the time  of  Pack method.

chhil

unread,
Jan 18, 2013, 4:08:00 AM1/18/13
to jpos-users

Could you paste a configuration snippet (change the numbers if needed)?

-chhil

--

amit shukla

unread,
Jan 18, 2013, 4:16:23 AM1/18/13
to jpos-...@googlegroups.com

            byte[] data = isoMsg.pack(); 
           
             string inputPacket = ISOUtil.hexdump(data);
             WriteLog(inputPacket, "Input Raw Packet:"); ///not able to write log failed before it

                ASCIIChannel myChannel = new ASCIIChannel();                   
                    myChannel.setHost("10.16.10.118");
                    myChannel.setPort(2005);
                    myChannel.setPackager(packager);
                    myChannel.connect();
                    myChannel.setTimeout(10000);
                    myChannel.send(isoMsg);
                    isoRecive = myChannel.receive();

chhil

unread,
Jan 18, 2013, 4:28:41 AM1/18/13
to jpos-users
Can you provide the full stacktrace please?
At pack time getting this exception does not sound right.

-chhil

amit shukla

unread,
Jan 18, 2013, 5:00:01 AM1/18/13
to jpos-...@googlegroups.com
This is the stacktrace 
org.jpos.iso.ISOException:java.netUnkownHostException:jpos.org(java.net.UnkownHostException.jpos.org)"


actually when i run this on local machine then it log the dump of input  isomessage
but when i deploy it on server ,it is not able to log the dump.
and showing only error message in error log.

chhil

unread,
Jan 18, 2013, 5:18:10 AM1/18/13
to jpos-users
That simply means that the IP address is not accessible from the server.
Can you ping the IP or telnet into IP:port from the server?

-chhil

amit shukla

unread,
Jan 18, 2013, 6:02:10 AM1/18/13
to jpos-...@googlegroups.com
i checked the ip address and port  it is working and  pinging.

why i am getting this error at the time of isoMsg.pack() even if i comment the channel.connect method

Sumeet Phadnis

unread,
Jan 18, 2013, 6:18:06 AM1/18/13
to jpos-...@googlegroups.com
Hi Amit,

Pls check your packager definition file. It may have reference to a DTD file something like...

<!DOCTYPE isopackager PUBLIC
        "-//jPOS/jPOS Generic Packager DTD 1.0//EN"

If so, change it to...

<!DOCTYPE isopackager SYSTEM "genericpackager.dtd">


... and make sure you have "genericpackager.dtd" file in the same folder as the packager config file.

Regards,
Sumeet

amit shukla

unread,
Jan 18, 2013, 6:25:50 AM1/18/13
to jpos-...@googlegroups.com
thanks Marks. 
i have changed it .now i am testing.
let u know after testing.

Alejandro Revilla

unread,
Jan 18, 2013, 8:52:34 AM1/18/13
to jpos-...@googlegroups.com
Hi Sumeet,

While your recommendation might certainly work, the PUBLIC DTD should resolve internally without network access using an entity resolver. What I think it might be happening is that the jPOS jar doesn't have that DTD resource in it.

--
@apr

Sumeet Phadnis

unread,
Jan 19, 2013, 4:02:35 AM1/19/13
to jpos-...@googlegroups.com
Oh ok. Thanks for the clarification. He might be using an older version of jpos.jar.

Regards,
Sumeet

amit shukla

unread,
Jan 21, 2013, 7:32:16 AM1/21/13
to jpos-...@googlegroups.com
Hi Sumeet,

Incorrect raw packet sent  by DON channel
Pid: 11890 21/01/2013 16:07:11.531 Received 158 Bytes
30 31 35 34 31 32 30 30 f0 30 81 01 00 00 80 00 01541200.0......
00 00 00 00 04 00 00 28 31 32 30 30 30 31 32 33 .......(12000123
34 35 36 31 32 33 39 31 30 30 30 30 30 30 30 30 4561239100000000
30 30 30 30 30 30 31 32 30 30 30 34 30 30 43 39 00000012000400C9
34 35 33 37 37 32 35 32 32 30 31 33 30 31 32 31 4537725220130121
30 34 30 37 31 32 32 30 31 33 30 31 32 31 32 30 0407122013012120
30 30 36 35 30 34 36 34 32 49 4e 52 33 31 49 43 006504642INR31IC
49 20 20 20 20 20 20 20 20 30 30 30 31 20 20 20 I        0001
20 30 30 30 31 32 33 34 35 36 31 32 33 30 30 33  000123456123003
44 4f 4e 30 30 38 30 31 50 31 30 30 30 31       DON00801P10001


Correct sample RAW packet of I-direct channel
Pid: 11744 21/01/2013 16:12:21.879 Received 152 Bytes
31 32 30 30 f0 30 81 01 00 00 80 00 00 00 00 00 1200.0..........
04 00 00 28 31 30 38 35 30 30 30 30 30 34 32 30 ...(108500000420
39 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 9100000000000000
31 33 39 39 35 30 32 31 30 31 31 33 32 37 38 38 1399502101132788
30 33 32 30 31 33 30 31 32 31 31 36 31 31 34 32 0320130121161142
32 30 31 33 30 31 32 31 32 30 30 30 36 35 30 34 2013012120006504
36 34 32 49 4e 52 33 31 49 43 49 20 20 20 20 20 642INR31ICI
20 20 20 30 30 31 37 20 20 20 20 30 30 31 37 30    0017    00170
31 30 30 30 31 30 38 30 30 33 45 42 41 30 30 38 1000108003EBA008
30 31 50 31 30 30 30 31                         01P10001



how can  i send the correct format packet to finacle.
it is adding length ,but finacle don't accept length .
Please suggest what channel i have to use to send correct format data.

On Friday, 18 January 2013 16:48:06 UTC+5:30, Sumeet Phadnis wrote:

amit shukla

unread,
Jan 21, 2013, 8:17:54 AM1/21/13
to jpos-...@googlegroups.com
Hi please let me know how can i remove extra 4 char from message.

30 31 35 34 31 32 30 30 f0 30 81 01 00 00 80............
 to  31 32 30 30 f0 30 81 01 00 00 80............

please suggest which channel i have to use.

Sumeet Phadnis

unread,
Jan 21, 2013, 11:16:12 AM1/21/13
to jpos-...@googlegroups.com
The first 4 bytes (ascii 0154) seem to be the DLI, which is the actual length of your packed message.

You need to check the specs for the host to decide which channel to use.

Regards,
Sumeet

Mark Salter

unread,
Jan 21, 2013, 2:07:09 PM1/21/13
to jpos-...@googlegroups.com
On 21/01/2013 12:32, amit shukla wrote:
> Hi Sumeet,
This is sent to a mailing list of over 100 people, perhaps address the
question directly if you really need or want to...


... but always start a new thread/topic/post for a new smart question...!
Get the specifications and pick the Channel that matches it?

> it is adding length ,but finacle don't accept length .
As above :-)

> Please suggest what channel i have to use to send correct format data.
Which one are you using currently, perhaps you could evolve that *not*
to send the length bytes?


--
Mark

amit shukla

unread,
Jan 21, 2013, 9:02:04 PM1/21/13
to jpos-...@googlegroups.com
I m using currently ascii ,i also tried post ,raw and hexchannel.but same out.
Should i use padchannel.
Please suggest.

Sumeet Phadnis

unread,
Jan 21, 2013, 10:04:15 PM1/21/13
to jpos-...@googlegroups.com
If you do not have the specs it is difficult to go ahead or suggest anything. The sample message dump you had shared does not have the DLI. How can anybody guess what is expected by your host?

Sumeet

Victor Salaman

unread,
Jan 21, 2013, 10:20:52 PM1/21/13
to jpos-...@googlegroups.com
Hi:

This conversation is truly making my eyes bleed. 30 messages and yet there's not a clue to be found anywhere in sight! Perhaps you guys should create a Google Hangout amongst yourselves ( http://www.google.com/+/learnmore/hangouts/ ) and try to figure out the spec that you don't have, together :) -- Once a solution has been found, please post it to the list so that someone in the future benefits from the information.

A piece of advise, become friends with the Finacle folks on the other end, or you're in for a very bumpy ride. Now, please be considerate with the other subscribers on the list who are not interested in participating in this game of "CLUE".

/V
January 21, 2013 11:04 PM
If you do not have the specs it is difficult to go ahead or suggest anything. The sample message dump you had shared does not have the DLI. How can anybody guess what is expected by your host?

Sumeet

On Tuesday, 22 January 2013 07:32:04 UTC+5:30, amit shukla wrote:
--
--
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 "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
 
 
January 21, 2013 10:02 PM
I m using currently ascii ,i also tried post ,raw and hexchannel.but same out.
Should i use padchannel.
Please suggest.

January 21, 2013 3:07 PM
January 21, 2013 8:32 AM
Hi Sumeet,
it is adding length ,but finacle don't accept length .
Please suggest what channel i have to use to send correct format data.

On Friday, 18 January 2013 16:48:06 UTC+5:30, Sumeet Phadnis wrote:
--
--
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 "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
 
 
January 18, 2013 7:18 AM
Hi Amit,

Pls check your packager definition file. It may have reference to a DTD file something like...

<!DOCTYPE isopackager PUBLIC
        "-//jPOS/jPOS Generic Packager DTD 1.0//EN"

If so, change it to...

<!DOCTYPE isopackager SYSTEM "genericpackager.dtd">


... and make sure you have "genericpackager.dtd" file in the same folder as the packager config file.

Regards,
Sumeet

On Friday, 18 January 2013 16:32:10 UTC+5:30, amit shukla wrote:

Dave Bergert

unread,
Jan 21, 2013, 10:32:23 PM1/21/13
to jpos-...@googlegroups.com
“I suggest the crime was committed in the Google Hangout  by Mr. /V via the console.”

David Bergert, CISSP, CISA, CPISM/A, CPP
Chief Technology Officer
On-Line Strategies, Inc.
"Always Available"
www.olsdallas.com
ber...@olsdallas.com
(972) 535-8833 (office)
(563) 424-0875 (cell)
www.paymentsystemsblog.com


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.

amit shukla

unread,
Jan 21, 2013, 11:56:13 PM1/21/13
to jpos-...@googlegroups.com
hi,
what is DLI?

chhil

unread,
Jan 23, 2013, 1:17:55 AM1/23/13
to jpos-users
DLI = Data length indicator (based on explanation provided)

Since you dont want to end the length try 2 things:
1. Use PADChannel.
OR
2. If ASCIIChannel is looking correct (other than length being prepended), then extend it and override sendMessageLength and getMessageLength to do nothing. Replace the channel class in the config to use your new class.

-chhil


hi,
what is DLI?
--

amit shukla

unread,
Jan 23, 2013, 11:37:33 PM1/23/13
to jpos-...@googlegroups.com
Hi,
I have solved the problem using PAD channel.

Thanks to  all of you.

Foly

unread,
Jan 26, 2013, 4:13:23 PM1/26/13
to jpos-...@googlegroups.com
Please compile the Java code below and use as your finacle channel with generic packager. I have used it with an implementation in the past.
You need to use the Finacle specs to create your XML document for packing and unpacking finacle Iso messages.

package org.jpos.iso.channel;

import java.io.IOException;
import java.net.ServerSocket;

import org.jpos.iso.BaseChannel;
import org.jpos.iso.ISOChannel;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ISOPackager;
import org.jpos.iso.ISOUtil;

/**
 * ISOChannel implementation - Postilion Channel
 * Send packet len (2 bytes network byte order MSB/LSB) followed by
 * raw data.
 *
 * @author sal...@teknos.com
 * @version Id: PostChannel.java,v 1.0 1999/05/14 19:00:00 may Exp
 * @see ISOMsg
 * @see ISOException
 * @see ISOChannel
 */
public class FinaclePostChannel extends BaseChannel {
    /**
     * Public constructor (used by Class.forName("...").newInstance())
     */
    public FinaclePostChannel () {
        super();
    }
    /**
     * Construct client ISOChannel
     * @param host  server TCP Address
     * @param port  server port number
     * @param p     an ISOPackager
     * @see ISOPackager
     */
    public FinaclePostChannel (String host, int port, ISOPackager p) {
        super(host, port, p);
    }
    /**
     * Construct server ISOChannel
     * @param p     an ISOPackager
     * @exception IOException
     * @see ISOPackager
     */
    public FinaclePostChannel (ISOPackager p) throws IOException {
        super(p);
    }
    /**
     * constructs a server ISOChannel associated with a Server Socket
     * @param p     an ISOPackager
     * @param serverSocket where to accept a connection
     * @exception IOException
     * @see ISOPackager
     */
    public FinaclePostChannel (ISOPackager p, ServerSocket serverSocket)
        throws IOException
    {
        super(p, serverSocket);
    }
    protected void sendMessageLength(int len) throws IOException {
        serverOut.write (len >> 8);
        serverOut.write (len);
    }
    protected int getMessageLength() throws IOException, ISOException {
        byte[] b = new byte[2];
        serverIn.readFully(b,0,2);
        return (int) (
            ((((int)b[0])&0xFF) << 8) |
            (((int)b[1])&0xFF));
    }
   /**
    *      * @param header Hex representation of header
    */
    public void setHeader (String header) {
        super.setHeader (
            ISOUtil.hex2byte (header.getBytes(), 0, header.length())
        );
    }
   
}





On Thursday, December 6, 2012 7:15:40 PM UTC+1, Rejuan Masud Masud wrote:
I am trying to develop a web Service to connect with Finacle BancsConnect using JPOS ASCHII Channel. I am trying to develop a web Service to connect with Finacle BancsConnect using JPOS ASCHII Channel. Bet
> getting error as "Message received is not complete Length after
> Disassembling [200], Length before Disassembling [200]" Any Expert is there
> to do kind help? on this regards. How to fix the error. There may be a
> trailing space or any.>


> Pid: 11379 06/12/2012 20:39:14.346 Received 204 Bytes
> 30 32 30 30 31 32 30 30 f0 30 81 01 00 84 80 00 02001200.0......
> 00 00 00 00 06 00 00 30 31 36 35 31 39 36 32 35 .......016519625
> 32 30 30 30 33 38 36 33 36 37 34 30 30 30 30 30 2000386367400000
> 30 30 30 30 30 30 30 35 30 30 30 30 30 35 34 35 0000000500000545
> 37 37 32 30 31 32 31 32 32 30 31 32 32 30 30 31 7720121220122001
> 31 31 32 33 34 35 36 37 38 39 30 31 43 42 4c 49 112345678901CBLI
> 42 20 20 20 30 35 30 30 30 42 44 54 43 30 30 30 B  05000BDTC000
> 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
> 30 30 30 30 31 44 30 30 30 30 30 30 30 30 30 30 00001D0000000000
> 30 30 30 30 30 30 42 44 54 30 35 30 31 36 31 36 000000BDT0501616
> 30 32 31 30 32 33 35 38 39 30 32 30 30 31 31 36 0210235890200116
> 31 30 31 32 32 35 31 31 30 36 32 30 37 30 30 31 1012251106207001
> 30 30 33 43 42 4c 30 30 33 41 54 4d            003CBL003ATM
>

> [/finacle/7018ON10J15/standin/v1.2/projects/swif/src/swfso001.cxx,1056]
> (fnDisassemble8583) Message Length greater than 20 but Field not Received
> [/finacle/7018ON10J15/standin/v1.2/projects/swif/src/swfso001.cxx,651]
> (fnSWIFProcMsg) fnDisassemble8583 Failed : Message received is not complete
> Length after Disassembling [200], Length before Disassembling [200]

>
>
>


Here is the code I am using to connect. Any Suggestion Please:


ISOMsg isoMsg = new ISOMsg();

    isoMsg.setPackager(packager);   
    isoMsg.setMTI("1200");
    isoMsg.set(2, "5196252000386367");   
    isoMsg.set(3, "400000");   
    isoMsg.set(4, "50000");   
    isoMsg.set(11, "054577");
    isoMsg.set(12, "201212");
    isoMsg.set(17, "2012");   
    isoMsg.set(24, "200");
    isoMsg.set(32, "12345678901");
    //isoMsg.set(37, "522194824");
    isoMsg.set(41, "CBLIB");
    //isoMsg.set(42, "IB");
    //isoMsg.set(43, "CITY>DHAKABD");   
    isoMsg.set(46, "00BDTC000000000000000000000001D0000000000000000BDT");   
    isoMsg.set(49, "050");   
    isoMsg.set(102, "1602102358902001");
    isoMsg.set(103, "1012251106207001");
    isoMsg.set(123, "CBL");
    isoMsg.set(124, "ATM");   
    //isoMsg.set(125, "1234556/56778890");
       
    byte[] data = isoMsg.pack();

   
               
       ASCIIChannel myChannel = new ASCIIChannel();
       myChannel.setHost("192.168.200.180");
       myChannel.setPort(20037);
       myChannel.setPackager(packager);
       myChannel.connect();
     
       myChannel.send(isoMsg);
      
       myChannel.getLogger();
             
       ISOMsg responseMsg = myChannel.receive();
      
       System.out.println(responseMsg);
       >
> It should be noted that I am using 1987binary-aschii packager to pack the ISOMsg. Any help will be highly appreciated. I need urgent help.




 

chhil

unread,
Jan 28, 2013, 2:53:38 AM1/28/13
to jpos-users
Foly,

I think Amit got it to work with PADChannel as he did not need the length prepended to the messages.

-chhil


OmexIT

unread,
May 7, 2013, 8:59:03 AM5/7/13
to jpos-...@googlegroups.com
How did you fix your error, because i have the same error.

On Sunday, 9 December 2012 11:35:55 UTC+3, Rejuan Masud Masud wrote:
Thank You all. I have fixed it. Any more issue I will face will let u know all.

Mark Salter

unread,
May 7, 2013, 2:23:17 PM5/7/13
to jpos-...@googlegroups.com
On 07/05/2013 13:59, OmexIT wrote:
> How did you fix your error, because i have the same error.
You found this thread that looks familiar to your problem, but you did
not read all of the replies and questions and answers?

Ask yourself "Why not?".

--
wth
Mark

OmexIT

unread,
May 8, 2013, 2:34:30 AM5/8/13
to jpos-...@googlegroups.com
I have read this post several times and Rejuan Masud  fixed his problem but cant find how! Most response to this solution is fixing the package xml, which i have already done.

The second problem by amit is not a big issue which i think is network connection issues. Note this issue had most response!

Mark Salter

unread,
May 8, 2013, 2:39:29 AM5/8/13
to jpos-...@googlegroups.com
On 08/05/2013 07:34, OmexIT wrote:
> I have read this post several times and Rejuan Masud fixed his problem
> but cant find how! Most response to this solution is fixing the package
> xml, which i have already done.
I think you have been given the answer (or a strong direction to it) two
or three times?

Once more again here just to save you any effort at all:-

If you are getting EOFExceptions then you need to check how the length
is presented to the network and what value it should contain.

If the remote end is closing the connection, then we suspect that your
message is likely incorrect in some way. Again you must check that the
packager you have formed precisely matches the interface specification.
You might also check with the target systems admin to ask them what
they don;t like about your message.

Whilst you are checking the message length (Channel) and field forms
(Packager), check if there is any message 'trailer' too.


--
Mark

Zablon Ochomo

unread,
May 8, 2013, 5:36:05 AM5/8/13
to jpos-...@googlegroups.com
I have worked with finacle bankconnect before. I used CSChannel but customized the MessageLength methods and used a generic package. This happened in 2007!

Ese Mentie

unread,
May 16, 2013, 3:45:33 PM5/16/13
to jpos-...@googlegroups.com
@Zablon Ochomo,
I want to use the CSC channel. What modifications was made to the send length methods, and can you share please?

Zablon Ochomo

unread,
May 17, 2013, 5:24:37 AM5/17/13
to jpos-...@googlegroups.com
I am not sure on group policy on code sharing.  
@apr confirm if i can paste the packager xml here!

Here is the CSChannel methods:
/**
     * @param len the packed Message len
     * @exception IOException
     */
    protected void sendMessageLength(int len) throws IOException {
        serverOut.write (len >> 8);
        serverOut.write (len);
        //serverOut.write (0);
        //serverOut.write (0);
    }
    /**
     * @return the Message len
     * @exception IOException, ISOException
     */
    protected int getMessageLength() throws IOException, ISOException {
        int l = 0;
        byte[] b = new byte[2];
        while (l == 0) {
            serverIn.readFully(b,0,2);
            l = ((((int)b[0])&0xFF) << 8) | (((int)b[1])&0xFF);
            if (l == 0) {
                serverOut.write(b);
                serverOut.flush();
            }
        }
        System.out.println("message length - " + l);
        return l;
    }


On Thu, May 16, 2013 at 10:45 PM, Ese Mentie <chicks...@gmail.com> wrote:
@Zablon Ochomo,
I want to use the CSC channel. What modifications was made to the send length methods, and can you share please?
--
--
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  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users

---
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.
For more options, visit https://groups.google.com/groups/opt_out.





--
Zablon Ochomo

Ese Mentie

unread,
May 17, 2013, 6:36:47 AM5/17/13
to jpos-...@googlegroups.com
Thank you.
I have extended the csc channel and the packager.xml will be most helpful.

Mark Salter

unread,
May 17, 2013, 6:48:10 AM5/17/13
to jpos-...@googlegroups.com
On 17/05/2013 10:24, Zablon Ochomo wrote:
> @apr confirm if i can paste the packager xml here!

Do you need to ask Zablon? Who owns the packager?

Better to push/share it on github and post a link here if you are able.

--
Mark

Ese Mentie

unread,
May 17, 2013, 10:42:44 AM5/17/13
to jpos-...@googlegroups.com
Please I need to set headers

RECV_FORMAT=H02(01,02,NS)

How do  I do this?

Alejandro Revilla

unread,
May 17, 2013, 11:33:27 AM5/17/13
to jpos-...@googlegroups.com
You can set your header to "4830322830312C30322C4E5329"

--
@apr



--

Alejo Loaiza

unread,
Nov 4, 2015, 1:07:02 PM11/4/15
to jPOS Users
Hello all, similar to other posters before, i already found cdci.cfg, but having some problems trying to map it to a custom packager, is it possible to share the custom packager xml from one of the guys that already succeeded on this topic (Zablon Ochomo, OmexIT (Antony Omeri), Amit Shukla, Rejuan Masud Masud)?

Any help will be appreciated, Thanks a lot.

-

Cordialmente.

Alejandro Loaiza Arango.

Emeka Onwuka

unread,
Nov 4, 2015, 3:24:43 PM11/4/15
to sunday okpokor
Hello

If you have found cdci.cfg, then your problems should be solved, what challenges are you having converting that to a custom 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 "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
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.
Reply all
Reply to author
Forward
0 new messages