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.
When I start NB 5.0, I get a dialog stating IllegalArgumentException thrown. This was due to a module I installed. Instead of throwing this exception dialog, the system should tell me there was a problem starting this module and that it will be disabled. java.lang.ClassNotFoundException: Cannot instantiate de.hunsicker.jalopy.plugin.netbeans.FormatAction for MultiFileObject@12ffe78[nbfs://nbhost/SystemFileSystem/Menu/Build/de-hunsicker-jalopy-plugin-netbeans-FormatAction.instance] at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:212) at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1210) at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:726) at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:515) at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:998) at org.openide.awt.MenuBar.allInstances(MenuBar.java:210) at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:593) at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:736) at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68) at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:622) at org.openide.util.Task.run(Task.java:207) [catch] at org.openide.awt.AWTTask.run(AWTTask.java:29) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189) at java.awt.EventQueue.dispatchEvent(EventQueue.java:478) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Caused by: java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:482) at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:198) ... 18 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:605) at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:974) at java.security.AccessController.doPrivileged(Native Method) at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:479) ... 19 more Caused by: java.lang.NoClassDefFoundError: org/openide/TopManager at de.hunsicker.jalopy.plugin.netbeans.FormatAction.registerPopups(FormatAction.java:295) at de.hunsicker.jalopy.plugin.netbeans.FormatAction.<init>(FormatAction.java:64) ... 27 more ==> java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:482) at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:198) at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1210) at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:726) at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:515) at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:998) at org.openide.awt.MenuBar.allInstances(MenuBar.java:210) at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:593) at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:736) at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68) at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:622) at org.openide.util.Task.run(Task.java:207) [catch] at org.openide.awt.AWTTask.run(AWTTask.java:29) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189) at java.awt.EventQueue.dispatchEvent(EventQueue.java:478) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:605) at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:974) at java.security.AccessController.doPrivileged(Native Method) at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:479) ... 19 more Caused by: java.lang.NoClassDefFoundError: org/openide/TopManager at de.hunsicker.jalopy.plugin.netbeans.FormatAction.registerPopups(FormatAction.java:295) at de.hunsicker.jalopy.plugin.netbeans.FormatAction.<init>(FormatAction.java:64) ... 27 more
Obsolete version of Jalopy module?
Sorry, missed 1st paragraph in description. (Reporter, please in the future use the "Create a new attachment" link; do not paste long blocks of text such as log files into the description field.) See issue #53196 and issue #31336 re. robustness of module system.
Which version of Jalopy is installed? It must be an older one (using TopManager). Using the newer versions from the contrib download area should fix the problem. If so, then the issue has nothing to do with Jalopy but generally with running older modules in newer versions of NetBeans.
Frank you can close as WORKSFORME if you are not aware of any currently published versions of jalopy with this problem. (Reporter did not specify where he got the module from.)
Newer version works for me and for the original poster.