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 176711 - Selecting Java Card Platform --> New Card gives exception
Summary: Selecting Java Card Platform --> New Card gives exception
Status: RESOLVED INVALID
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 11:08 UTC by lichunzhan
Modified: 2009-11-26 20:28 UTC (History)
1 user (show)

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 lichunzhan 2009-11-12 11:08:14 UTC
Right click "Java Card Platform" and select "New Card" in the menu:
Got pop up window says:

Unexpected Exception

A java.lang.NoClassDefFoundError exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\user\.netbeans\6.8beta\var\log folder.
Comment 1 _ tboudreau 2009-11-12 18:35:23 UTC
Please reproduce, copy the stack trace and paste into this bug and reopen.  I have no way to know what the problem is without any diagnostic info.
Comment 2 lichunzhan 2009-11-17 11:11:23 UTC
Here is the stack trace:
java.lang.ClassNotFoundException: org.netbeans.validation.api.ui.ValidationGroup
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259)
Caused: java.lang.ClassNotFoundException: org.netbeans.validation.api.ui.ValidationGroup starting from ModuleCL@11a0d35[org.netbeans.modules.javacard.ri.platform] with possible defining loaders [ModuleCL@cfe049[org.netbeans.modules.swing.validation]] and declared parents [ModuleCL@13a34af[org.netbeans.modules.extexecution], ModuleCL@16d8196[org.netbeans.modules.spi.actions], org.netbeans.MainImpl$BootClassLoader@aeffdf, ModuleCL@18105e8[org.netbeans.modules.properties.based.dataobjects], ModuleCL@1b7c76[org.openide.explorer], ModuleCL@cfe049[org.netbeans.modules.swing.validation], ModuleCL@996cca[org.jdesktop.layout], ModuleCL@1283052[org.openide.windows], ModuleCL@19c7c21[org.netbeans.api.progress], ModuleCL@5a2eaa[org.netbeans.modules.java.platform], ...11 more]
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Caused: java.lang.NoClassDefFoundError: org/netbeans/validation/api/ui/ValidationGroup
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
	at java.lang.Class.getDeclaredMethod(Class.java:1935)
	at java.awt.Component.isCoalesceEventsOverriden(Component.java:5819)
	at java.awt.Component.access$300(Component.java:168)
	at java.awt.Component$3.run(Component.java:5773)
	at java.awt.Component$3.run(Component.java:5771)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Component.checkCoalescing(Component.java:5770)
	at java.awt.Component.<init>(Component.java:5739)
	at java.awt.Container.<init>(Container.java:239)
	at javax.swing.JComponent.<init>(JComponent.java:581)
	at javax.swing.JPanel.<init>(JPanel.java:65)
	at javax.swing.JPanel.<init>(JPanel.java:92)
	at javax.swing.JPanel.<init>(JPanel.java:100)
	at org.netbeans.modules.javacard.ri.platform.installer.NewDevicePanel.<init>(NewDevicePanel.java:66)
	at org.netbeans.modules.javacard.ri.platform.loader.AddHandler.showNewDeviceDialog(AddHandler.java:74)
	at org.netbeans.modules.javacard.spi.AddCardHandler$SingleHandlerAction.actionPerformed(AddCardHandler.java:227)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
	at java.awt.Component.processMouseEvent(Component.java:6134)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5899)
	at java.awt.Container.processEvent(Container.java:2030)
	at java.awt.Component.dispatchEventImpl(Component.java:4501)
	at java.awt.Container.dispatchEventImpl(Container.java:2088)
	at java.awt.Component.dispatchEvent(Component.java:4331)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4303)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3967)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3897)
	at java.awt.Container.dispatchEventImpl(Container.java:2074)
	at java.awt.Window.dispatchEventImpl(Window.java:2458)
	at java.awt.Component.dispatchEvent(Component.java:4331)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:117)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 3 _ tboudreau 2009-11-26 20:28:59 UTC
You are somehow missing the swing.validation module, or its JAR file.  Not sure how you got NetBeans into this state, but the problem is broken local configuration.  

Suggest reinstalling all of the modules on a clean userdir - something got badly broken.  If you had a *very* old userdir that had contained the 6.7 javacard modules, you might have had a stale copy of swing.validation from the update center, in the "extra" cluster, and it was being found instead of the more current one in the "ide" cluster.