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 143711 - ClassNotFoundException: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard
Summary: ClassNotFoundException: org.netbeans.modules.form.j2ee.wizard.MasterDetailWizard
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All Linux
: P1 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
: 143659 143712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-13 08:05 UTC by Jana Maleckova
Modified: 2009-03-26 15:26 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 57850


Attachments
stacktrace (7.22 KB, text/plain)
2008-08-13 08:05 UTC, Jana Maleckova
Details
stacktrace (8.15 KB, text/plain)
2008-08-24 14:51 UTC, sunbiz
Details
stacktrace (1.27 KB, text/plain)
2008-09-10 09:07 UTC, _ ttran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-08-13 08:05:39 UTC
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)
Comment 1 Jana Maleckova 2008-08-13 08:05:44 UTC
Created attachment 67210 [details]
stacktrace
Comment 2 Jana Maleckova 2008-08-13 08:54:27 UTC
*** Issue 143712 has been marked as a duplicate of this issue. ***
Comment 3 Jana Maleckova 2008-08-13 09:05:04 UTC
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
Comment 4 Jan Stola 2008-08-13 10:31:42 UTC
The issue seems to be OpenJDK specific.
Comment 5 Jan Stola 2008-08-13 15:57:34 UTC
This issue is caused by missing form/j2ee module in the NB Ubuntu package.
Comment 6 Jan Stola 2008-08-14 16:53:54 UTC
*** Issue 143659 has been marked as a duplicate of this issue. ***
Comment 7 Exceptions Reporter 2008-08-18 20:03:43 UTC
This issue has already 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=57850
Comment 8 Jan Stola 2008-08-19 09:53:22 UTC
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>
Comment 9 Jan Stola 2008-08-19 10:51:59 UTC
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
Comment 10 sunbiz 2008-08-24 14:51:42 UTC
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)
Comment 11 sunbiz 2008-08-24 14:51:46 UTC
Created attachment 68195 [details]
stacktrace
Comment 12 _ ttran 2008-09-10 09:07:43 UTC
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)
Comment 13 _ ttran 2008-09-10 09:07:59 UTC
Created attachment 69503 [details]
stacktrace
Comment 14 matthewh86 2009-02-10 03:16:52 UTC
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.
Comment 15 Marian Mirilovic 2009-02-20 18:07:16 UTC
update no67 keyword
Comment 16 Marian Mirilovic 2009-03-26 14:59:35 UTC
so all together it was fixed for NB 6.5 - if not please reopen.
Comment 17 Jan Stola 2009-03-26 15:21:08 UTC
> 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.
Comment 18 Marian Mirilovic 2009-03-26 15:26:25 UTC
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.