cancel
Showing results for 
Search instead for 
Did you mean: 

How to use TCPGateway

Former Member
0 Kudos

Hi,All,

Could anybody tell me how to use TCPGateway? I have downloaded it and run it on my desktop. I configured it according to doc in index.html. But when I click "Add", nothing happened and I got error says "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException". Thanks in advance!

yang

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please refere to this blog...

/people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi

I have used the tcp gateway without any problem.....The Listen port is the port on the tcpgateway machine...Target host and port are the destination system's actual url/port...

Thanks.

Former Member
0 Kudos

Hi,Deepu,

Thanks for the response. I am using Soap sender adapter. the tcpgateway is runing on my own machine. I am trying to send a soap message from my own machine to XI through soap sender adapter. I don't know what listenning port should be? Also, if my XI machine is 148.97.19.17, and port is 51500, then are the target URL and port # those? Thanks.

yang

Former Member
0 Kudos

Hi Yang -

On TCPGateway, listening port should be any free port on your local machine (e.g. use <i>netstat</i> command within cmd window to view).

Then for Target Hostname put in the XI machine (i.e. 148.97.19.17) and for Target Port, 51500.

From the client that you send from, for the port, you should specify the listening port you put in for TCPGateway. Just replace the port in your local client. The rest of the URL should remain the same.

Regards,

Jin

Former Member
0 Kudos

Hi, Jin,

Yes. I did that before I created this thread. And I did again right now. I used netstat and see 50000 on my machine. So I used it as Listen Port #. Then click "Add", still don't do anything.

Yang

Former Member
0 Kudos

Hi Yang -

Use a port you do <b>not</b> see from netstat for the listening port. Then send a message from your client after adjusting the port from your client to the listening port you picked.

Regards,

Jin

Former Member
0 Kudos

Sorry, Jin. I meant 50000 is not on the netstat. And I click "Add" again, still nothing happen. And I sent a message from my clent program which exists on my machine. And still don't see anything. Thank you!

yang

Former Member
0 Kudos

After you enter the listening port and the XI hostname/ip address and the XI port...

when you clikc on add..are you getting any exceptions in your command line ?

Thanks.

Former Member
0 Kudos

Ok, so after you add the port, a tab is added on TCPGateway labeled "Port 50000". And in the middle window within this tab, you see "Waiting for Connection...", correct.

Given this, from your client, for Host and Port, you're specifying your hostname/IP of your local machine and port 50000 (failed to mention that hostname should be adjusted as well to your local machine in your client).

This is the way the tool works. Given the above, if you still don't see anything after sending from your client, you have a problem with your client. Try a different client to isolate that your current client is the problem.

Regards,

Jin

Former Member
0 Kudos

Yes. I got an error says "

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at com.sap.aii.axis.utils.TCPGateway$5.valueChanged(TCPGateway.java:1161

)

at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source

)

at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source

)

at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source

)

at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)

at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)

at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(Unk

nown Source)

at javax.swing.DefaultListSelectionModel.removeSelectionInterval(Unknown

Source)

at javax.swing.JTable.checkLeadAnchor(Unknown Source)

at javax.swing.JTable.tableRowsInserted(Unknown Source)

at javax.swing.JTable.tableChanged(Unknown Source)

at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)

at javax.swing.table.AbstractTableModel.fireTableRowsInserted(Unknown So

urce)

at javax.swing.table.DefaultTableModel.insertRow(Unknown Source)

at javax.swing.table.DefaultTableModel.addRow(Unknown Source)

at javax.swing.table.DefaultTableModel.addRow(Unknown Source)

at com.sap.aii.axis.utils.TCPGateway$Listener.<init>(TCPGateway.java:120

5)

at com.sap.aii.axis.utils.TCPGateway$3.actionPerformed(TCPGateway.java:3

59)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

ce)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Thanks for looking at it!

yang

Former Member
0 Kudos

When I click "Add", nothing happened. And I got the above error on command line.

Thanks.

yang

Former Member
0 Kudos

I have no clue why this might be happening..i was trying to see if i can get the same error as you are without success..

Let me give you the details of my system..

i have j2sdk1.4.2_12 on my machine, downloaded the tcpgw app from oss note 856597...

Thanks.

Former Member
0 Kudos

I am using eclipse-SDK-3.2. I don't know which java version it use. I think maybe that is the problem. I will download JDK1.5 from sun site and let you know it works.

Thank you!

Yang

Former Member
0 Kudos

I had JDK1.5.0 installed and it still does not work. Hannnn.....