Skip to Content

Cannot debug my java j2ee application

I created a first java application as described in the tutorial. Application works fine as expected, but when I started to test debugging this application (as described in the tutorial as well: I always get the error immediately after starting the debug session:

"Error while establishing debug connection with

Failed to connect to remote VM. Connection refused.

Connection refused: connect"

Colleagues from network & firewall team told me that the port 51021 (5xx21 with xx=10, our instance number) that the port is open for communication to SAP server.

The server is running in debug mode and tells me in the SAP console that the server is running in debug mode (see screenshot below)

Do we have to change anything on the SAP server to establish this debug connection ? I'm currently a little bit lost on that issue ...

pastedImage_2.png (13.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 09, 2015 at 06:29 AM

    Please let me know which tool you are using to develop the JAVA application?

    If you used NWDS, Please refer this document . it may be useful NWDS 7.3 - Debug Configuration | SCN and Debug in CE 7.2 trial | SCN

    Kindly let me know if you need any more information

    Add a comment
    10|10000 characters needed characters exceeded

    • Please do check whether the Server Instance Debug Mode is "ON"

      You can check it from NWDS >J2EE Engine View>Server Instance>server0

      If its not then you need to change it and any Basis Team can help you

      this error looks like firewall related. please check if there is any firewall which blocking your connection

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.