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 199880 - com.sun.jdi.InvocationException: Exception occurred in target VM
Summary: com.sun.jdi.InvocationException: Exception occurred in target VM
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 14:11 UTC by Tomas Stupka
Modified: 2011-10-24 14:09 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179692


Attachments
stacktrace (1.23 KB, text/plain)
2011-07-04 14:11 UTC, Tomas Stupka
Details
stacktrace (1.23 KB, text/plain)
2011-08-23 08:30 UTC, Ondrej Vrabec
Details
stacktrace (1.23 KB, text/plain)
2011-10-04 16:58 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2011-07-04 14:11:44 UTC
Build: NetBeans IDE Dev (Build 20110701-060a08f07c25)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3326
OS: Mac OS X

Stacktrace: 
com.sun.jdi.InvocationException: Exception occurred in target VM
   at com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:392)
   at org.netbeans.modules.debugger.jpda.visual.RemoteServices.uploadBasicClasses(RemoteServices.java:128)
   at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.initDebuggerRemoteService(VisualDebuggerListener.java:107)
   at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.access$000(VisualDebuggerListener.java:77)
   at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener$1.breakpointReached(VisualDebuggerListener.java:95)
   at org.netbeans.api.debugger.jpda.JPDABreakpoint.fireJPDABreakpointChange(JPDABreakpoint.java:280)
Comment 1 Tomas Stupka 2011-07-04 14:11:49 UTC
Created attachment 109226 [details]
stacktrace
Comment 2 Martin Entlicher 2011-07-12 14:17:49 UTC
The InvocationException should be logged as well so that e can see the original problem.
Comment 3 Martin Entlicher 2011-07-13 11:30:03 UTC
I was not able to reproduce this. It could be fixed by other changes. I've added logging of the remote exception in changeset:   196942:0cc31abdfac
http://hg.netbeans.org/main/rev/0cc31abdfac0
If the problem reappears, the mesages.log file should contain the original exception.
Comment 4 Quality Engineering 2011-07-14 14:27:42 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0cc31abdfac0
User: mentlicher@netbeans.org
Log: #199880 Log the InvocationExceptionTranslated so that we can see the original problem.
Comment 5 Jesse Glick 2011-08-17 15:59:17 UTC
I am continuing to see problems, e.g. report 524290. I am not sure if the exception reporter is opening a fresh bug or not.
Comment 6 Martin Entlicher 2011-08-18 07:02:51 UTC
The exceptions reporter is not reopening nor resubmitting anything.
See issue #200249, which I've upgraded to P2 now.
Thanks for the note.
Comment 7 Ondrej Vrabec 2011-08-23 08:30:38 UTC
Created attachment 110152 [details]
stacktrace

Attaching debugger to a running NetBeans session
Comment 8 Martin Entlicher 2011-09-20 17:20:19 UTC
The target exception is:
java.lang.LinkageError: loader (instance of  sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition for name: "org/netbeans/modules/debugger/jpda/visual/remote/RemoteAWTService$AWTAccessLoop"
Comment 9 Michel Graciano 2011-10-04 16:58:13 UTC
Created attachment 111475 [details]
stacktrace
Comment 10 Martin Entlicher 2011-10-21 13:33:53 UTC
Fixed by changeset:   205170:755f204d1643
http://hg.netbeans.org/main/rev/755f204d1643
Comment 11 Quality Engineering 2011-10-24 14:09:51 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/755f204d1643
User: mentlicher@netbeans.org
Log: #199880 Check if the remote service classes are already uploaded to the target application.