This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251544

Summary: LinkageError: loader constraint violation: loader (instance of org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading for a different type with name "com/sun/jdi/VirtualMachine
Product: debugger Reporter: dkorotych <dkorotych>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: wadechandler
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204444
Attachments: stacktrace

Description dkorotych 2015-04-01 03:58:25 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Linux

User Comments:
GUEST: Attach debugger error.

GUEST: Restart netbeans after importing gradle projects

GUEST: Tried to "Attach a debugger" in the Debug menu.  The popup window showed the JDPA dropdown and nothing else.

GUEST: I'm trying to attach the debugger to my running app.

wadechandler: Restarted, and seemed to have no effect. I still get this error. Not exactly sure yet the cause.

GUEST: I restarted netbeans after activating the C++ module.

GUEST: Trying to debug with gradle support

GUEST: Trying debug project with gradle support

dkorotych: Init a remote debug session

GUEST: attach debug error.

wadechandler: Have some projects open. Clicked attach debugger. Something I have done quite a few times. I did update some things fairly recently, but not sure I saw any debugger related things. I will try to restart etc.

GUEST: Can't use debugger now.

GUEST: when I am trying to connect to a java process using the JPDA debugger the panel to select how and where ti connect doesn't show up.




Stacktrace: 
java.lang.LinkageError: loader constraint violation: loader (instance of org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading for a different type with name "com/sun/jdi/VirtualMachineManager"
   at org.netbeans.modules.debugger.jpda.ui.ConnectPanel.initConnectors(ConnectPanel.java:154)
   at org.netbeans.modules.debugger.jpda.ui.ConnectPanel.access$100(ConnectPanel.java:115)
   at org.netbeans.modules.debugger.jpda.ui.ConnectPanel$1.run(ConnectPanel.java:140)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 dkorotych 2015-04-01 03:58:28 UTC
Created attachment 152956 [details]
stacktrace
Comment 2 Martin Entlicher 2015-04-03 18:12:31 UTC
Most likely this is fixed by http://hg.netbeans.org/core-main/rev/9c036e3f3a70