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 193339

Summary: NoClassDefFoundError: Could not initialize class org.openide.actions.ToolsAction
Product: platform Reporter: obalyuk <obalyuk>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: normal CC: davti, jtulach
Priority: P3 Keywords: THREAD
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 161012
Attachments: stacktrace

Description obalyuk 2010-12-13 19:03:37 UTC
Build: NetBeans IDE Dev (Build 201012060001)
VM: OpenJDK Client VM, 19.0-b09, OpenJDK Runtime Environment, 1.6.0_20-b20
OS: Linux

User Comments:
GUEST: compilation d'un projet

GUEST: ???? ??

obalyuk: error happens when I rightclick the project tree.

obalyuk: was expanding project tree when error occured.
Had multiple projects open (PHP Projects).




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.openide.actions.ToolsAction
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:658)
   at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:1018)
Comment 1 obalyuk 2010-12-13 19:03:40 UTC
Created attachment 104026 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-04-13 16:23:33 UTC
Static initializer of ToolsAction is
	at org.openide.actions.ToolsAction.<clinit>(ToolsAction.java:94)
interrupted by "GUI is not responsive" exception. Jesse, what is your take?
Comment 3 Jesse Glick 2011-04-13 16:58:43 UTC
(In reply to comment #2)
> Static initializer of ToolsAction is
> interrupted by "GUI is not responsive" exception.

Not as such; rather, the EQ was blocked in ToolsAction's static initializer, and that thread was stopped in an attempt to get it restarted. (Otherwise the IDE might have just been deadlocked completely, causing data loss.) The stack trace is simply an indication of what EQ was doing - it is not a real exception being thrown. The real problem was already fixed.

BTW the stack traces from 6.7 & 6.8 are totally unrelated; third-party module problems, I think.

*** This bug has been marked as a duplicate of bug 193119 ***