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 5488 - Serialize of JMenu throws an exception
Summary: Serialize of JMenu throws an exception
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-01-21 01:44 UTC by Jan Palka
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Palka 2000-01-21 01:44:01 UTC
1) create JMenuBar then JMenu and then JMenuItem in the JMenu
2) set Code generation of the JMenuBar to Serialize
3) Save the form

see comment

java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicMenuBarUI.uninstallListeners(BasicMenuBar
UI.java:145)
        at javax.swing.plaf.basic.BasicMenuBarUI.uninstallUI(BasicMenuBarUI.java
:132)
        at javax.swing.JComponent.compWriteObjectNotify(JComponent.java:4530)
        at javax.swing.JComponent$EnableSerializationFocusListener.writeObject(J
Component.java:4520)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1878)
        at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)


        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
        at java.awt.AWTEventMulticaster.save(AWTEventMulticaster.java:763)
        at java.awt.Component.writeObject(Component.java:4507)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1878)
        at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)

        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
        at com.netbeans.developer.modules.loaders.form.JavaCodeGenerator$JCGForm
Listener.serializeComponentsRecursively(JavaCodeGenerator.java:1221)
        at com.netbeans.developer.modules.loaders.form.JavaCodeGenerator$JCGForm
Listener.formToBeSaved(JavaCodeGenerator.java:1197)
        at com.netbeans.developer.modules.loaders.form.FormManager2.fireFormToBe
Saved(FormManager2.java:480)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.saveFor
m(FormEditorSupport.java:447)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.saveDoc
ument(FormEditorSupport.java:433)
....
Comment 1 _ ttran 2000-06-27 15:00:59 UTC
This is Swing issue => cannot be fixed in IDE
Comment 2 Marek Grummich 2000-07-25 09:43:59 UTC
Priority is changed to P4 (normal).