Problem remote debugging webapp on localhost

I am having a problem debugging any kind of webapp from my IDEA 5.0 on my local machine.

When I start the debugger in IDEA it connects fine to Resin and a connection is established (according to ActivePorts). But as soon as I add a breakpoint anywhere in the code, the debugger disconnects immediately. The IDEA log then give a

"com.sun.jdi.VMDisconnectedException: connection is closed"

exception and Resin says

"ERROR: transport error 202: recv error: Software caused connection abort ["transport.c",L41]
Listening for transport dt_socket at address: 11222"


I have a very simple webapp running on Resin 3.0.14 and I have set it up in debug mode by copying the remote debug settings from my IDEA:

httpd -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=11222

Both Resin and IDEA are using JDK 1.5.0_01. I do not have any plugins installed in my IDEA and there is no reference or control of Resin from within IDEA, it is running completely on the side of IDEA.

I have no problems remote debugging webapps running on other machines and people can remote debug to my machine. The problem only arises when I try to debug on my own machine.

The problem is there even if I shut down my wireless network card and my firewall. I have tried debugging using "localhost", "127.0.0.1" and my ip-address but without any change.

To me, it seems like there is some software or Windows (XP) setting that interfereces with the Resin/IDEA combination - I just can't think of what it could be.

I have been in contact with JetBrains support but they have unfortunately not been able to solve the problem so I was wondering if someone on the board has seen this behaviour before?

Regards,
Johan

1 comment
Comment actions Permalink

What if we omit the address parameter and let Resin's JVM choose the port. It will be then printed to Resin's console. Configure
IDEA to use this port - does it help?
Another guess - try the latest jdk 5 build.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.