IBM Support

How to debug Java applications using Rational Application Developer from Citrix Presentation server with virtual ip enabled

Question & Answer


Question

How do you debug Java applications using IBM Rational Application Developer for WebSphere Software from a Citrix Presentation server with virtual ip enabled?

Cause

Using Citrix Presentation server with virtual ip enabled means that javaw.exe and eclipse.exe as a virtual ip process, so each instance of Rational Application Developer will have a different ip and each user get an virtual ip to debug their own application.

If user needs to debug an application , an error occurs


Error  [10061] in connect() call!
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.
JVMCI161: FATAL ERROR in native method: No transports initialized
JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to <workspcase>\javacore.20090609.141041.7792.txt
JVMDG215: Dump Handler has Processed Error Signal 22.



The code [10061] means that there is nobody is listening at this port.

Answer

Perform the debug in the environment (using Virtual IP enabled) as a remote debugging.

Note: This solution has been tested with the version 4.5 of Citrix Presentation Server.

1. Open the Rational Application Developer Debug perspective




2. Open the menu Run > Run > Java Application

You should see your application

3. Create a new configuration (Right click Java Application > New)




4. Change the name as shown below:




5. Go to the “Arguments tab” and add the VM arguments:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,suspend=y,server=y


6. Specify a port

For example, address=8000

This means the external process will connect using this port




7. Start the debugger which will listen on port specified (in this example port 8001)





8. Open the menu Run > Debug to open the Launcher dialog specific to debugging .




9. Select Remote Java Application as the configuration type and click New.





10 Specify a name, the port and the HOST

The Host is the IP address and should be specify each time debugging an application (if the IP is different for each connection) .




11. Click Apply and Debug


Now your application is started in debug mode and it is possible to use the debugger .

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Debugging Applications","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21392516