0 Replies Latest reply: Oct 3, 2013 8:18 AM by user3003486 RSS

    Remote Debug Listener crashes

    user3003486

      Hi,

       

      I try to remote debug via SQL-Developer and create a remote debug listener in my first sqldeveloper.

      Then I use a second sqldeveloper and run the following statements as script everything works fine. My first sqldeveloper stops at the breakpoint and I can debug

      set serveroutput on;
      execute DBMS_DEBUG_JDWP.CONNECT_TCP('myIp',4010);
      declare
      begin
        do_something(2); -- in this function is a breakpoint set
      end;
      /
      execute DBMS_DEBUG_JDWP.disconnect(' myIp ',4010);
      
      

       

      When I try to run the script e.g. in sqlplus I get following stacktrace in my first sqldeveloper console and the listener is closed

      java.lang.StringIndexOutOfBoundsException: String index out of range: -2
        at java.lang.String.substring(String.java:1911)
        at com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:204)
        at com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:140)
        at com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:85)
        at com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:44)
        at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:150)
        at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:33)
        at java.util.TreeMap.put(TreeMap.java:560)
        at java.util.TreeSet.add(TreeSet.java:255)
        at com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:785)
        at com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:901)
        at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:979)
        at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:995)
        at com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:284)
        at oracle.jdevimpl.debugger.jdi.DebugJDI.<init>(DebugJDI.java:420)
        at oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:133)
        at java.lang.Thread.run(Thread.java:724)
      
      
      
      

       

      Does anyone have an idea what I'm doing wrong, or what's maybe misconfigured?

       

      System Configuration

      Client:

           Windows 7

           SqlDeveloper Version 4.0.0.12 Build MAIN-12.27 - running with jdk1.7.0_25

      Database Server:

           Oracle 11.2.0.3.0