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 14253 - Could not open Form with Form-Editor (unexpected: class not found)
Summary: Could not open Form with Form-Editor (unexpected: class not found)
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-08 09:17 UTC by bauchladen
Modified: 2001-11-21 12:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My Sourcecode... (21.54 KB, application/octet-stream)
2001-10-31 16:44 UTC, bauchladen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bauchladen 2001-08-08 09:17:54 UTC
I don´t know if this is really a bug in netbeans or only a hammerheaded user 
fault.

Short description:
When i opened my *.java File with the Form-Editor first time, no error occurs.
Form Editor opened and shows all stuff well.
 
When i try to reopen my *.java File next morning (without making any changes in 
the code) the following exception causes, and only the Text-Editor opens.

Remark: The package is remarked in ALL IDE Classpaths-Properties, as well as in 
the Windows - Systemvariables Classpath.
All my similar classes work properly so far.

Ive this Problem since my first use of netbeans (Version 3.1).
A few days all works fine. And then the error occures unexpectedly, without 
making any changes in the code before.

Several similar Beans work fine to date.

Has anybody an Idea whit this (sch...) happens?


-------------------------------------------------------------------------------
>Log Session: Mittwoch, 8. August 2001 9.51 Uhr GMT+02:00
>System Info: 
  Product Version       = NetBeans IDE, Development Version (Build 200108070100)
  IDE Versioning        = IDE/1 spec=1.28 impl=200108070100
  Operating System      = Windows NT version 4.0 running on x86
  Java; VM; Vendor      = 1.3.0; Java HotSpot(TM) Client VM 1.3.0-C; Sun 
Microsystems Inc.
  Java Home             = C:\Programme\java\jdk1.3\jre
  System Locale         = de_DE
  Home Dir; Current Dir = C:\WINNT\Profiles\cnichte; C:\netbeans\bin
  IDE Install; User Dir = C:\netbeans; c:\LIMBuS
  CLASSPATH             = C:\netbeans\lib\patches\openide-
compat.jar;C:\netbeans\lib\core.jar;C:\netbeans\lib\openide-
explorer.jar;C:\netbeans\lib\openide-fs.jar;C:\netbeans\lib\openide-
nodes.jar;C:\netbeans\lib\openide-
util.jar;C:\netbeans\lib\openide.jar;C:\netbeans\lib\ext\jaxp.jar;C:\netbeans\li
b\ext\jh.jar;C:\netbeans\lib\ext\parser.jar;C:\netbeans\lib\ext\regexp.jar;C:\ne
tbeans\lib\ext\rmi-
ext.jar;C:\netbeans\lib\ext\sax2.jar;C:\netbeans\lib\ext\servlet.jar;C:\netbeans
\lib\ext\xerces.jar;C:\Programme\java\jdk1.3\lib\dt.jar;C:\Programme\java\jdk1.3
\lib\tools.jar
-------------------------------------------------------------------------------
Existing modules:
	Ant [org.apache.tools.ant.module/2 2.3 200108070100]
	Applet [org.netbeans.modules.applet/1 1.7 200108070100]
	Auto Update [org.netbeans.modules.autoupdate/1 1.7 200108070100]
	Bean Patterns [org.netbeans.modules.beans/1 1.7 200108070100]
	CVS Built-in Client [org.netbeans.modules.cvsclient/1 1.4 200108070100]
	CVS Command-Line Client Support [org.netbeans.modules.vcs.cmdline/1 1.8 
200108070100]
	Editor [org.netbeans.modules.editor/1 1.8 200108070100]
	External HTML Browser [org.netbeans.modules.extbrowser/1 0.3 
200108070100]
	Form Editor [org.netbeans.modules.form/2 1.7 200108070100]
	General Online Help [org.netbeans.modules.usersguide/1 1.8 200108070100]
	HTML [org.netbeans.modules.html/1 1.8 200108070100]
	HTTP Server [org.netbeans.modules.httpserver/1 1.7 200108070100]
	IDE Core [org.netbeans.core/1 1.1]
	Image [org.netbeans.modules.image/1 1.7 200108070100]
	Internationalization [org.netbeans.modules.i18n/1 1.8 200108070100]
	Internationalization Form Cross Dependency 
[org.netbeans.modules.i18n.form/2 1.8 200108070100]
	J2EE Server Registry [org.netbeans.modules.j2eeserver/1 1.1.3 dev-000]
	JAR Packager [org.netbeans.modules.jarpackager/2 1.8 200108070100]
	JNDI [org.netbeans.modules.jndi/1 1.4 200108070100]
	JPDA Debugger [org.netbeans.modules.debugger.jpda/1 1.9 200108070100]
	JSP Syntax Coloring [org.netbeans.modules.web.core.syntax/1 1.5 
200108070100]
	JSP/Servlet [org.netbeans.modules.web.core/1 1.5 200108070100]
	Java Source Files [org.netbeans.modules.java/1 1.7 200108070100]
	Javadoc [org.netbeans.modules.javadoc/1 1.7 200108070100]
	New Module Wizard [org.netbeans.modules.apisupport.lite/1 0.2 
200108070100]
	Object Browser [org.netbeans.modules.objectbrowser/1 1.7 200108070100]
	Projects [org.netbeans.modules.projects/1 1.7 200108070100]
	RMI [org.netbeans.modules.rmi/1 1.4 200108070100]
	Resource Bundle Syntax Coloring 
[org.netbeans.modules.properties.syntax/1 1.7 200108070100]
	Resource Bundles [org.netbeans.modules.properties/1 1.7 200108070100]
	Scripting Support [org.netbeans.modules.scripting/1 1.4 200108070100]
	Sourceless Java Classes [org.netbeans.modules.clazz/1 1.7 200108070100]
	Text [org.netbeans.modules.text/1 1.7 200108070100]
	Tomcat 3.2 Server [org.netbeans.modules.web.tomcat/1 1.2.2 200108070100]
	Tools Debugger [org.netbeans.modules.debugger.debug/1 1.9 200108070100]
	User Utilities [org.netbeans.modules.utilities/1 1.7 200108070100]
	VCS Generic Command-Line Support [org.netbeans.modules.vcs.advanced/1 
1.5 200108070100]
java.lang.NoClassDefFoundError: lotus/domino/JAppletBase
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:111)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at org.openide.execution.NbClassLoader.findClass(NbClassLoader.java:151)
	at org.netbeans.core.ClassLoaderSupport.findClass
(ClassLoaderSupport.java:108)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at org.netbeans.modules.form.FormModel.initialize(FormModel.java:106)
	at org.netbeans.modules.form.FormModel.initialize(FormModel.java:95)
	at org.netbeans.modules.form.GandalfPersistenceManager.loadForm
(GandalfPersistenceManager.java:259)
	at org.netbeans.modules.form.FormEditorSupport.loadForm
(FormEditorSupport.java:128)
	at org.netbeans.modules.form.FormEditorSupport$1.run
(FormEditorSupport.java:97)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
	at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
*********** Exception occurred ************
Wed Aug 08 09:52:44 GMT+02:00 2001: java.lang.NoClassDefFoundError: 
lotus/domino/JAppletBase
java.lang.NoClassDefFoundError: lotus/domino/JAppletBase
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:111)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at org.openide.execution.NbClassLoader.findClass(NbClassLoader.java:151)
	at org.netbeans.core.ClassLoaderSupport.findClass
(ClassLoaderSupport.java:108)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.getMethods0(Native Method)
	at java.lang.Class.getDeclaredMethods(Class.java:1039)
	at java.beans.Introspector$1.run(Introspector.java:852)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.beans.Introspector.getPublicDeclaredMethods
(Introspector.java:850)
	at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
	at java.beans.Introspector.getBeanInfo(Introspector.java:294)
	at java.beans.Introspector.getBeanInfo(Introspector.java:81)
	at org.openide.util.Utilities.getBeanInfo(Utilities.java:234)
	at org.netbeans.modules.form.BeanSupport.createBeanInfo
(BeanSupport.java:77)
	at org.netbeans.modules.form.RADComponent.getBeanInfo
(RADComponent.java:297)
	at org.netbeans.modules.form.RADComponent.hasHiddenState
(RADComponent.java:318)
	at org.netbeans.modules.form.JavaCodeGenerator.generateComponentCreate
(JavaCodeGenerator.java:690)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:619)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:624)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:624)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:624)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:624)
	at org.netbeans.modules.form.JavaCodeGenerator.regenerateInitializer
(JavaCodeGenerator.java:480)
	at org.netbeans.modules.form.JavaCodeGenerator.access$400
(JavaCodeGenerator.java:47)
	at 
org.netbeans.modules.form.JavaCodeGenerator$JCGFormListener.formLoaded
(JavaCodeGenerator.java:1606)
	at org.netbeans.modules.form.FormModel.fireFormLoaded
(FormModel.java:368)
	at org.netbeans.modules.form.FormEditorSupport.loadForm
(FormEditorSupport.java:148)
	at org.netbeans.modules.form.FormEditorSupport$1.run
(FormEditorSupport.java:97)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
[catch] at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Tomas Pavek 2001-08-09 09:45:15 UTC
This looks a bit strange... The first exceptions means failure of 
loading the form superclass (the class on which the form is based). 
But I don't understand how the second exception arise, and also how 
this could happen with NB 3.1 too.

What is the superclass declared for your form? Is it 
javax.swing.JApplet? How is it related to "lotus/domino/JAppletBase"?
Could you attach the form to this report (or send it to me privately)?
Comment 2 Tomas Pavek 2001-08-09 10:39:25 UTC
Additional comments from carsten nichte:

Hi,

Yes, it IS strange. You find a copy of the form file as attachment.
Her is a part of the related java File:

package limbus.kernel.signprocess;

// The Lotus Domino Corba-Classes. Its not necessary to do this 
// import here. But it doesnt harm.
import lotus.domino.*;

import java.awt.*;
// and so on...

public class JSigningGUI extends JLimbusApplet implements 
ActionListener, MailSearchListener, MessageListener{
// ...

My JLimbusApplet extents lotus.domino.JAppletBase  (to use the Notes 
Corba Classes)  which extends .....JApplet.
In my Applications JLimbusApplet  provides the session, basic 
Database-Access and other funny stuff.

I know: lotus.domino.AppletBase extends Applet.
But im really not shure if lotus.domino.JAppletBase uses the 
javax.swing.JApplet... but does it matter?

The stuff  compiles fine (so all classes are found!). I dont 
understand whats going on with this form.
Comment 3 Tomas Pavek 2001-08-09 10:55:09 UTC
Now I see more.

Loading of the form's superclass (JLimbusApplet) fails because of 
failure of lotus.domino.JAppletBase class. This class is probably not 
accessible for the classloader used by Form Editor. I wonder how it 
could work once, but not later - did you unmount some filesystem, or 
change project, or some other config?

JLimbusApplet class is found - you would obtain 
ClassNotFoundException if not; but NoClassDefFoundError means that 
some part of the loaded class failed (the next superclass here). But 
after all, it seems that the JLimbusApplet class *is* present in the 
system - or there could not be the second exception, which is failure 
of finding BeanInfo for this class... This is maybe also why the 
compilation is OK - try to recompile JLimbusApplet to see if 
JAppletBase is accessible for compiler.
Comment 4 bauchladen 2001-08-09 13:18:42 UTC
Thanks for the swift answer, as well is my reply:

> did you unmount some filesystem, or change project, or some other
config?

Ive completly installed one of the last netbeans-builds new.
Last i added my Project-Folder (*.java  and *.form) to the filesystem.
Mount it, and opened the Form.

> Try to recompile JLimbusApplet to see if JAppletBase is accessible for
compiler.

So i will do: JLimbusApplet compiles without any warnings and errors
and runs very well.

It remains a big mystery for me.

best regards
Comment 5 Tomas Pavek 2001-10-22 15:29:03 UTC
I'm sorry closing this issue, but haven't found what could be the 
problem, or how to reproduce it. If you have some other idea or more 
information, feel free to reopen. (You could try also some newer dev 
build...)
Comment 6 bauchladen 2001-10-31 16:33:12 UTC
Ok, ive reproduced this behavior.
This time i´ve tried to add my java to the component-palette, and it
faild with a similar? error...

JMailSearchGUI.java

Comment 7 bauchladen 2001-10-31 16:34:16 UTC
This is the error dump:

Wed Oct 31 17:23:16 GMT+01:00 2001: java.lang.NoClassDefFoundError:
lotus/domino/JAppletBase
java.lang.NoClassDefFoundError: lotus/domino/JAppletBase
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at
org.openide.execution.NbClassLoader.findClass(NbClassLoader.java:151)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at java.lang.Class.getMethods0(Native Method)
        at java.lang.Class.getDeclaredMethods(Class.java:1039)
        at java.beans.Introspector$1.run(Introspector.java:852)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
        at
java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
        at java.beans.Introspector.getBeanInfo(Introspector.java:294)
        at java.beans.Introspector.getBeanInfo(Introspector.java:81)
        at org.openide.util.Utilities.getBeanInfo(Utilities.java:237)
        at
org.openide.loaders.InstanceNode.getShortDescription(InstanceNode.java:525)
        at
org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:348)
        at
org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:348)
        at
org.openide.explorer.view.VisualizerNode.<init>(VisualizerNode.java:129)
        at
org.openide.explorer.view.VisualizerNode.getVisualizer(VisualizerNode.java:71)
        at
org.openide.explorer.view.VisualizerChildren.added(VisualizerChildren.java:65)
        at
org.openide.explorer.view.VisualizerEvent$Added.run(VisualizerEvent.java:83)
[catch] at
org.openide.explorer.view.VisualizerNode$QP.run(VisualizerNode.java:467)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 8 bauchladen 2001-10-31 16:41:46 UTC
Created attachment 0
Comment 9 bauchladen 2001-10-31 16:44:28 UTC
Created attachment 3219 [details]
My Sourcecode...
Comment 10 Tomas Pavek 2001-11-01 11:58:47 UTC
Thanks for the test case ... but the first attachment (the notes 
package) seems to fail. Could you try it again (or send it to me 
directly)? Thanks.
Comment 11 bauchladen 2001-11-05 08:07:27 UTC
Created attachment 0
Comment 12 bauchladen 2001-11-05 08:35:56 UTC
Thanks so far,
i´ve tried to bring in Netbeans as a Platform for our Java-dev Team,
because i am convinced from the qualities of this product. But there
is no good reasen for me to be successfull with that,when netbeans
doesnt like to work with notes classes.

If some sources missing (I´ve packed them 1 minute before Weekend),
mail me... 

Thanks in advance.
Comment 13 Tomas Pavek 2001-11-06 14:29:21 UTC
So I've tried it (3.3 dev build 20011102) - and was successful. I 
mounted the NCSO.JAR first, then unpacked the test.jar and mounted 
the dir, and finally added the JMailSearchGUI to palette - without 
any problems. I'm also able to use JMailSearchGUI from palette and 
add it to another form. I got the exception only if I didn't mount 
the NCSO.JAR ...
Comment 14 bauchladen 2001-11-07 08:33:03 UTC
hmmm... isn´t it enough to put the ncso.jar to the classpath?
I´ve have to mount it additionally with the Explorer/Filesystem?... I
hope this is not written down in any Java Beginners-Handbook nor the
Netbeans Documentation...how painfull for me. 

I try this... ups it works... 

So it´s really what i supposed first: A hammerheaded user 
fault.

Thanks for help (i never blast about netbeans, anymore - i swear ;o)
Comment 15 Tomas Pavek 2001-11-07 09:53:34 UTC
Mounting something as filesystem is the easiest way how to add it to 
IDE classpath. How did you put the ncso.jar to classpath? Did you add 
it to system CLASSPATH variable? I'm not sure whether NetBeans cares 
about it at all... At least the first log on this page shows that the 
JAR was not on the classpath (added externaly). Instead of mounting 
the JAR as filesystem, you could also use -cp:p or -cp:a parameter of 
runide.exe (invoke runide /? for help). 
Comment 16 bauchladen 2001-11-07 11:12:25 UTC
Thanks for the additional infos,

I put it to te NT-System Variable CLASSPATH (for developing without
netbeans) and this works fine. I dont know why the first log on this
page shows that the JAR is not on the classpath. It definitly is, but
my System (NT) Classpath looks different: 

"C:\IBMVJava\eab\runtime30;C:\IBMVJava\eab\runtime20;C:\Lotus\Notes\Data\domino\java\NCSO.jar;C:\Lotus\Notes\Data\domino\java\LotusXSL.jar;
c:\Programme\java\jdk1.3\lib;".

Netbeans offers numberless? Classpath-Properties (sometimes that
confuses me a little bit). To compile my Files i had to put the
ncso.jar to the Compilers 'Class Path' Property (found in
Tools/Options/Building/Compiler Types etc...) otherwise i got Compiler
errors.

I havn´t found asystem CLASSPATH variable in the Options-Dialog.
Comment 17 Tomas Pavek 2001-11-07 11:56:56 UTC
The compilation classpath problem should be also solved by mounting 
the NCSO.JAR as filesystem. I'd say it's the easiest solution for you.
I usually do it this way - mount what's necessary and don't care 
about the classpath at all...

I think that the runide launcher really ignores the system CLASSPATH 
variable. You can ask also on nbusers mailing list (or search the 
archive) to be sure...
Comment 18 Marian Mirilovic 2001-11-21 12:53:39 UTC
closed