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.
Build: NetBeans IDE 6.1 (Build 080808) VM: OpenJDK Client VM, 1.6.0_0-b11, OpenJDK Runtime Environment, 1.6.0_0-b11 OS: Linux, 2.6.26-5-generic, i386 User Comments: I follow the wizard for creating JDA project with db connection. Exception is thrown when option - Database Application is select in the second step of wizard. Stacktrace: java.lang.ClassNotFoundException: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Created attachment 67210 [details] stacktrace
*** Issue 143712 has been marked as a duplicate of this issue. ***
Firstly, according to consequences of this use case, I mean that corrupted JDA project is created, I set priority as P2. Secondly, exception reporter chose core as component but I think that this issue belong to form => reassign to form
The issue seems to be OpenJDK specific.
This issue is caused by missing form/j2ee module in the NB Ubuntu package.
*** Issue 143659 has been marked as a duplicate of this issue. ***
This issue has already 100 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=57850
swingapp module registers Database application shell that requires form.j2ee module. Unfortunately, this module is not present in NetBeans Ubuntu package. Strictly speaking this is an issue in GUI builder - it should handle this situation better. On the other, it is not possible to get into this state using standard NetBeans build. We can fix this exception in the development builds of NetBeans 6.5, but it is up to anyone who is responsible for NetBeans 6.1 Ubuntu package to fix this distribution. The simplest fix seems to be removal of registration of Database application shell e.g. removal of the following part of layer.xml in swingapp module: <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>
I have implemented the mentioned fix, but (as I wrote above) it is for NB 6.5 only e.g. this issue still remains valid for NB 6.1 Ubuntu package => leaving the issue opened. Modified files: http://hg.netbeans.org/main?cmd=changeset;node=5b7eaf140622
Build: NetBeans IDE Dev (Build 200808240201) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Linux, 2.6.25.11-0.1-pae, i386 User Comments: Created New Database Application from the Sakila database connection Stacktrace: org.openide.ErrorManager$AnnException: msg at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:865) at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:650) at org.openide.ErrorManager.annotate(ErrorManager.java:452) at org.netbeans.modules.form.GandalfPersistenceManager.restoreComponent(GandalfPersistenceManager.java:735) at org.netbeans.modules.form.GandalfPersistenceManager.loadNonVisuals(GandalfPersistenceManager.java:673) at org.netbeans.modules.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:512)
Created attachment 68195 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809091401) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Linux, 2.6.24-19-generic, i386 User Comments: this exc. happened during single-stepping in javascript debugger Stacktrace: java.lang.NullPointerException at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.applyChildren(TreeModelNode.java:828) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:782) at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:1179) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Created attachment 69503 [details] stacktrace
i got around this and other errors by installing NetBeans version 6.5 from the NetBeans download page on Xubuntu and avoiding the Synaptic Distribution of NetBeans.
update no67 keyword
so all together it was fixed for NB 6.5 - if not please reopen.
> so all together it was fixed for NB 6.5 - if not please reopen. It never occured in "normal" NetBeans release. It occured in special NetBeans 6.1 release bundled with Ubuntu. We have fixed the corresponding code such that NetBeans 6.5 (modified in the same way as previous NB 6.1 build) can be bundled with Ubuntu without problems.
I see Honza, thanks for explanation. Alexei is working on new bits for Ubuntu these days, so it's fine that it was already fixed.