1 Reply Latest reply on Jul 2, 2009 10:18 PM by 843810

    java.lang.IllegalArgumentException: No connector named:


      When I try to execute

      gdb -connect sun.jvm.hotspot.jdi.SACoreAttachingConnector:javaExecutable=$JAVA_HOME/bin/java,core=core.10052006

      I am getting the below error.

      jdb -connect sun.jvm.hotspot.jdi.SACoreAttachingConnector:javaExecutable=$JAVA_HOME/bin/java,core=core.10052006
      Internal exception:
      java.lang.IllegalArgumentException: No connector named: sun.jvm.hotspot.jdi.SACoreAttachingConnector
      at com.sun.tools.example.debug.tty.VMConnection.<init>(VMConnection.java:156)
      at com.sun.tools.example.debug.tty.Env.init(Env.java:61)
      at com.sun.tools.example.debug.tty.TTY.main(TTY.java:849)

      What am I doing wrong?


        • 1. Re: java.lang.IllegalArgumentException: No connector named:
          Each JVM has its own list of connectors that it supports. It so turns out that your JVM doesn't support "sun.jvm.hotspot.jdi.SACoreAttachingConnector" and that's why is the error.

          Use this command to see list of connectors your JVM supports: jdb --listconnectors

          You might need to find out if the kay (such as "javaExecutable") is available for the connector you'll be using.

          See: http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/tooldescr.html sec 2.4