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 [modul...@1c18a4c[org.netbeans.modules.ant.freeform],
modul...@18a9fc8[org.netbeans.modules.projectimport.eclipse.j2se],
modul...@12c5431[org.netbeans.modules.editor.indent],
modul...@15b0e2c[org.netbeans.modules.xml.xdm],
modul...@5b675e[org.netbeans.modules.xml],
modul...@167d7fb[org.netbeans.modules.options.api],
modul...@1779885[org.netbeans.modules.defaults],
modul...@cb42cf[org.netbeans.modules.utilities.project],
modul...@1f82ab4[org.netbeans.modules.xml.tax],
modul...@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 [modul...@1c18a4c[org.netbeans.modules.ant.freeform],
modul...@18a9fc8[org.netbeans.modules.projectimport.eclipse.j2se],
modul...@12c5431[org.netbeans.modules.editor.indent],
modul...@15b0e2c[org.netbeans.modules.xml.xdm],
modul...@5b675e[org.netbeans.modules.xml],
modul...@167d7fb[org.netbeans.modules.options.api],
modul...@1779885[org.netbeans.modules.defaults],
modul...@cb42cf[org.netbeans.modules.utilities.project],
modul...@1f82ab4[org.netbeans.modules.xml.tax],
modul...@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.ConfigureProjectVisualPanel.setConfig(Unknown
Source)
at
org.netbeans.modules.swingapp.templates.ConfigureProjectPanel.readSettings(Unknown
Source)
at org.openide.WizardDescriptor.updateStateOpen(Unknown Source)
at org.openide.WizardDescriptor.updateState(Unknown Source)
[2]
<folder name="org-netbeans-modules-swingapp">
<!-- app shells registration-->
<folder name="appshells">
<file name="BasicShellApp.zip" url="BasicShellApp.zip">
<attr name="SystemFileSystem.localizingBundle"
stringvalue="org.netbeans.modules.swingapp.resources.Bundle"/>
<attr name="instantiatingWizardURL"
urlvalue="nbresloc:/org/netbeans/modules/swingapp/resources/BasicShellApp.html"/>
</file>
<file name="CRUDShellApp.zip" url="CRUDShellApp.zip">
<attr name="SystemFileSystem.localizingBundle"
stringvalue="org.netbeans.modules.swingapp.resources.Bundle"/>
<attr name="requiredClass"
stringvalue="org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard"/>
<attr name="instantiatingIterator"
methodvalue="org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard.createForExisting"/>
<attr name="instantiatingWizardURL"
urlvalue="nbresloc:/org/netbeans/modules/swingapp/resources/CRUDShellApp.html"/>
</file>
</folder>
</folder>
--
Netbeans crashes when creating a JPanel form
https://bugs.launchpad.net/bugs/486866
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs