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 64920 - [50cat] IllegalArgumentException thrown on startup
Summary: [50cat] IllegalArgumentException thrown on startup
Status: RESOLVED WORKSFORME
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: _ moser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 18:49 UTC by dmocek
Modified: 2005-09-23 18:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dmocek 2005-09-22 18:49:40 UTC
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
Comment 1 Jesse Glick 2005-09-22 21:01:18 UTC
Obsolete version of Jalopy module?
Comment 2 Jesse Glick 2005-09-22 21:03:45 UTC
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.
Comment 3 _ moser 2005-09-23 10:46:16 UTC
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.
Comment 4 Jesse Glick 2005-09-23 17:27:54 UTC
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.)
Comment 5 _ moser 2005-09-23 18:20:01 UTC
Newer version works for me and for the original poster.