[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1030
  • Last Modified:

TcpJavaGateway, can anybody give me information about the IBM CTG package?

Hi, I have been given an application to debug. I am not sure what this class (TcpJavaGateway) does but the error is related to it. I would like to know what purpose to the CTG package to us?

I know it is some kind of transaction gateway to connect to a a database but I am interested in why do we need it? Why not use a jdbc connection or something.

Also if you can tell me more about the error it would be great! Thanks.
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:java.io.EOFException
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.lang.Throwable.<init>(Throwable.java)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.io.DataInputStream.readFully(DataInputStream.java)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.io.DataInputStream.readInt(DataInputStream.java:471)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at com.ibm.ctg.client.GatewayRequest.readObject(GatewayRequest.java:986)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at com.ibm.ctg.client.TcpJavaGateway.run(TcpJavaGateway.java:851)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.lang.Thread.run(Thread.java:806)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:java.io.EOFException
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.lang.Throwable.<init>(Throwable.java)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.io.DataInputStream.readFully(DataInputStream.java)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.io.DataInputStream.readInt(DataInputStream.java:471)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at com.ibm.ctg.client.GatewayRequest.readObject(GatewayRequest.java:986)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at com.ibm.ctg.client.TcpJavaGateway.run(TcpJavaGateway.java:851)
[11/7/08 19:34:18:017 PST] 48f648f6 SystemErr     R 19:34:18:017 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.lang.Thread.run(Thread.java:806)

Open in new window

0
Madhu_A
Asked:
Madhu_A
  • 2
2 Solutions
 
momi_sabagCommented:
do you have the source code?
it seems that it reads past an end of file
0
 
Madhu_AAuthor Commented:
No I do not have the source code. The class comes bundled in a jar provided by IBM.
0
 
giltjrCommented:
Although it could have other purposes, CTG (CICS Transaction Gateway) an application that allows you to communicate with and execute transactions that run under IBM CICS.  See http://www-01.ibm.com/software/htp/cics/ctg/

Typically it is used for Java based applications to communicate with CICS running on IBM z/OS operating system.

Although EOF does stand for End-Of-File, in the Java world it also can mean end of stream.  It could be that a TCP stream/connected ended prematurely.
0
 
Madhu_AAuthor Commented:
I did not have to work on this problem but thanks for your answers. I will get back to it when I am asked to work on it again.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now