Netbeans crashes when creating a JPanel form

Bug #486866 reported by Tiiba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: netbeans

Package: netbeans 6.7.1
System: Ubuntu 9.10 production release, x86-32
Java: java-6-sun

I installed NetBeans and opened a project. Then I right-clicked on its main source package and tried to add a JPanel form. I saw the wizard, gave the form a name, and clicked OK. The wizard should create a file with the code of an empty JPanel. Instead, it greyed all the buttons and just sat there looking pretty. I used the Force Quit applet to kill it, downloaded NetBeans from the official site (a .sh file), and installed it. Did the same thing, and it worked like it's supposed to.

Tags: netbeans
Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :
Download full text (4.3 KiB)

I can't reproduce your problem exactly. IDE creates a file with code of an empty JPanel. But an exception [1] is thrown.
As far as I understand the reason of the exception is an absence of "form.j2ee" module in the stripped ide configuration: lines 66-80 in "./swingapp/src/org/netbeans/modules/swingapp/resources/layer.xml" file [2].
Marek, what is your opinion? is such situation critical? Can we fix it somehow?

[1]:
INFO [org.netbeans.modules.swingapp.templates.ConfigureProjectVisualPanel$1]: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard starting from SystemClassLoader[221 modules] with possible defining loaders null and declared parents [ModuleCL@1c18a4c[org.netbeans.modules.ant.freeform], ModuleCL@18a9fc8[org.netbeans.modules.projectimport.eclipse.j2se], ModuleCL@12c5431[org.netbeans.modules.editor.indent], ModuleCL@15b0e2c[org.netbeans.modules.xml.xdm], ModuleCL@5b675e[org.netbeans.modules.xml], ModuleCL@167d7fb[org.netbeans.modules.options.api], ModuleCL@1779885[org.netbeans.modules.defaults], ModuleCL@cb42cf[org.netbeans.modules.utilities.project], ModuleCL@1f82ab4[org.netbeans.modules.xml.tax], ModuleCL@457d21[org.netbeans.modules.java.project], ...206 more]
java.lang.ClassNotFoundException: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard
 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)
Caused: java.lang.ClassNotFoundException: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard starting from SystemClassLoader[221 modules] with possible defining loaders null and declared parents [ModuleCL@1c18a4c[org.netbeans.modules.ant.freeform], ModuleCL@18a9fc8[org.netbeans.modules.projectimport.eclipse.j2se], ModuleCL@12c5431[org.netbeans.modules.editor.indent], ModuleCL@15b0e2c[org.netbeans.modules.xml.xdm], ModuleCL@5b675e[org.netbeans.modules.xml], ModuleCL@167d7fb[org.netbeans.modules.options.api], ModuleCL@1779885[org.netbeans.modules.defaults], ModuleCL@cb42cf[org.netbeans.modules.utilities.project], ModuleCL@1f82ab4[org.netbeans.modules.xml.tax], ModuleCL@457d21[org.netbeans.modules.java.project], ...206 more]
 at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
[catch] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at org.netbeans.modules.swingapp.templates.ConfigureProjectVisualPanel$1.createNodes(Unknown Source)
 at org.openide.nodes.FilterNode$Children$LazySupport$FilterNodeEntry.nodes(Unknown Source)
 at org.openide.nodes.EntrySupport$Lazy$EntryInfo.getNode(Unknown Source)
 at org.openide.nodes.EntrySupport$Lazy$EntryInfo.getNode(Unknown Source)
 at org.openide.nodes.EntrySupport$Lazy.getNodes(Unknown Source)
 at org.openide.nodes.Children.getNodes(Unknown Source)
 at org.openide.nodes.FilterNode$Children$LazySupport.callGetNodes(Unknown Source)
 at org.openide.nodes.FilterNode$Children.getNodes(Unknown Source)
 at org.netbeans.modules.swingapp.templates.ConfigureProjectVisualPan...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.