• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to open debugger port

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I am using intellij idea editor. When i configure the jboss-4.0.1 and trying to debug the application , it is giving the following error in th pop up .

Unable to open debugger port : java.net.ConnectException "Connection refused: connect"

Can anyone help me out to solve this issue.

regards,
krish...
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look in the run script (run.bat or run.conf, depending on your operating system), and uncomment the JAVA_OPTS setting to enable debugging. Here is an example from run.conf:

# Sample JPDA settings for remote socket debuging
JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
 
MuraliKrishna Bhadragiri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter,
Thanks for reply. Actually I am new to JBoss . When i tried by modifying the JAVA_OPTS in the run.bat as you suggested in the following way :

previous:-
JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

new:-
JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"

Then I run the jboss server manually by clicking "run.bat" in the jboss bin.Then I started the debugger in the intellij idea editor.
But when i gave http://localhost:8080/ in the browser its displaying the jboss home page and on giving http://localhost:8787/ , I get this exception in the pop up generated in editor .

Error running jboss: Unable to open debugger port : java.io.IOException "handshake failed - unrecognized message from target VM"

and in the editor console this message is displayed:
Disconnected from the target VM, address: 'localhost:8787', transport: 'socket'

Can you please give me the steps that I have to follow to debug the application from the idea editor.

thanks and regards,
Krish...
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, I told you to uncomment the JAVA_OPTS that enable debugging. Because you did not say which operating system you were using, I had to guess, so I showed you the debugging settings in the run.conf file. Based on what you posted, it looks like you already uncommented JAVA_OPTS that enable debugging in run.bat. You should revert the settings back to what was there.

Second, I don't use Idea so I do not know what to do to get it to hook up with the the JVM to debug it. Obviously, opening your browser to the debugging port (8787) is not the correct thing to do.

Look in the Idea documentation on how to debug a remote Java application, that should give you the rest of the steps. Or maybe someone else who uses Idea can help.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.jetbrains.net/devnet/message/5208639
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic