Why can't I remote debug Glassfish v3 from Intellij 12.1.6?

I'm using Glassfish v3.0-b74b and Intellij 12.1.6.  I've set up a remote debugging configuration like this:


I've taken the debug statement in `Startup/Connection -> Debug` and copied this string: `-Xdebug -Xrunjdwp:transport=dt_socket,address=55504,suspend=n,server=y` Into my domain.xml like so:

      <java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,address=55504,suspend=n,server=y" debug-enabled="true" system-classpath="" classpath-suffix="">
        <jvm-options>-Xdebug -Xrunjdwp:transport=dt_socket,address=55504,suspend=n,server=y</jvm-options>

But when I try to debug from Intellij, Intellij gives me this error:

    4:12:45 PM Error running CONNECT421 Debugger
           Unable to connect to the ip:7048, reason:
           javax.net.ssl.SSLException: java.lang.RuntimeException: java.io.IOException: The handle is invalid

Keep in mind, if I visit


in my browser, it takes me to the glassfish v3 admin screen so it's not a bad port number.  My guess is this has to do with the default install of glassfish having an expired SSL cert, but I can't be sure as I get no other information than this.  The server log of glassfish doesn't acknowledge that I'm trying to reach it.  Does anyone know what's causing this or how I can get more info to debug the problem?

Also, keep in mind that if I change the remote connection settings to use port 55504, it still says the exact same error (mentioning port 7048 and everything).

1 comment
Comment actions Permalink


As specified in the closing note to http://youtrack.jetbrains.com/issue/IDEA-70519, SSL connection is supported in IDEA to GF 3.1+, secure connection to 3.0 requires completely different approach in the administration code and had not been implemented.
I made a search at the days of IDEA-70519, but still have no idea how to setup remote  GF 3.0 to accept non secure connections -- both 3.1 and 3.0 support non-secure connections from localhost only. If someone knows, please share here or in that youtrack.
So overall, I can only suggest to try with 3.1


Please sign in to leave a comment.