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 19839 - NPE when closing NB after working with form
Summary: NPE when closing NB after working with form
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 20135 20879 20932 21055 21406 21531 21573 21702 22001 22071 22333 22429 22525 22624 22648 23557 23638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-28 13:43 UTC by Petr Suchomel
Modified: 2003-06-30 18:31 UTC (History)
1 user (show)

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 Petr Suchomel 2002-01-28 13:43:12 UTC
Linux RH7.2 , JDK1.4 last RC, NB 3.3.1 RC2, if I invoke form editor, if I want
to close IDE, I get this NPE
It is impossible to close IDE anymore, I have to use ctrl-c.

*********** Exception occurred ************
Sun Jan 27 15:44:59 CET 2002: java.lang.NullPointerException: <no message>
java.lang.NullPointerException
   at org.netbeans.modules.form.FormDesigner.writeExternal(FormDesigner.java:114)
   at org.openide.windows.TopComponent$Replacer.writeObject(TopComponent.java:737)
   at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:780)
   at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
   at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
   at
org.openide.loaders.XMLSettingsSupport.storeSerialData(XMLSettingsSupport.java:145)
   at
org.openide.loaders.XMLSettingsSupport.storeToXML10(XMLSettingsSupport.java:82)
   at
org.openide.loaders.InstanceDataObject$SettingsInstance.saveInstance2Buffer(InstanceDataObject.java:1505)
   at
org.openide.loaders.InstanceDataObject$SettingsInstance.access$200(InstanceDataObject.java:1132)
   at
org.openide.loaders.InstanceDataObject.storeSettings(InstanceDataObject.java:329)
   at org.openide.loaders.InstanceDataObject.access$1700(InstanceDataObject.java:66)
   at
org.openide.loaders.InstanceDataObject$Creator.run(InstanceDataObject.java:1734)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:388)
   at
org.openide.loaders.InstanceDataObject$Creator.createInstanceDataObject(InstanceDataObject.java:1749)
   at org.openide.loaders.InstanceDataObject.create(InstanceDataObject.java:318)
   at
org.netbeans.core.windows.PersistenceManager.forceSaveOfTopComponents(PersistenceManager.java:493)
   at
org.netbeans.core.windows.PersistenceManager.writeXML(PersistenceManager.java:249)
   at org.netbeans.modules.projects.PSupport.projectSave(PSupport.java:223)
   at
org.netbeans.core.NbProjectOperation.storeLastProject(NbProjectOperation.java:52)
   at org.netbeans.core.NbTopManager.exit(NbTopManager.java:698)
   at org.netbeans.core.actions.SystemExit.performAction(SystemExit.java:54)
   at org.netbeans.core.windows.MainWindow$3.windowClosing(MainWindow.java:155)
   at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:288)
   at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:287)
   at java.awt.Window.processWindowEvent(Window.java:1083)
   at javax.swing.JFrame.processWindowEvent(JFrame.java:266)
   at org.netbeans.core.windows.MainWindow.processWindowEvent(MainWindow.java:366)
   at java.awt.Window.processEvent(Window.java:1042)
   at java.awt.Component.dispatchEventImpl(Component.java:3526)
   at java.awt.Container.dispatchEventImpl(Container.java:1437)
   at java.awt.Window.dispatchEventImpl(Window.java:1566)
   at java.awt.Component.dispatchEvent(Component.java:3367)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
   at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Comment 1 Tomas Pavek 2002-01-28 14:13:54 UTC
We cannot reproduce it... Looks very strange...
Comment 2 Tomas Pavek 2002-01-28 18:30:18 UTC
After all it looks like this can really happen (however very rarely), 
see issue 19855 (window system).
We could make a simple workaround by adding

  if (formEditorSupport == null)
    return;

at the top of writeExternal method in FormDesigner top component.

The question is: should this be done for 3.3.1?
Comment 3 Tomas Pavek 2002-01-29 13:58:19 UTC
I propose to waiver this issue for 3.3.1. Reasons:
- not reproducible,
- not clear how it could happened, nobody else reported it,
- the proposed fix is just a workaround, another problems could 
remain or appear,
- it's really too late now...
Comment 4 Tomas Pavek 2002-01-29 14:01:09 UTC
Waiting for waiver approval...
Comment 5 iformanek 2002-01-29 15:56:44 UTC
I agree with the waiver, however this should be on the list for 3.3.2
if it turns out that we would be doing it...
Comment 6 Jan Chalupa 2002-01-29 16:08:14 UTC
Waiver approved by QA.
Comment 7 eadams 2002-01-29 17:13:40 UTC
Waiver approved
Comment 8 Tomas Pavek 2002-01-31 11:07:01 UTC
The workaround implemented in dev trunk.

/cvs/form/src/org/netbeans/modules/form/FormDesigner.java
revision 1.53
Comment 9 Tomas Pavek 2002-02-05 11:13:23 UTC
*** Issue 20135 has been marked as a duplicate of this issue. ***
Comment 10 Marian Mirilovic 2002-02-18 16:02:04 UTC
Petr, please verify this issue, I never saw it.
Comment 11 Marian Mirilovic 2002-02-22 08:05:26 UTC
As has Ian wrote, this should be fixed in 3.3.2, so I add 
Comment 12 Tomas Pavek 2002-03-06 11:18:26 UTC
*** Issue 20879 has been marked as a duplicate of this issue. ***
Comment 13 Tomas Pavek 2002-03-06 11:19:23 UTC
*** Issue 20932 has been marked as a duplicate of this issue. ***
Comment 14 Marian Mirilovic 2002-03-11 09:35:24 UTC
*** Issue 21406 has been marked as a duplicate of this issue. ***
Comment 15 Marian Mirilovic 2002-03-13 08:13:58 UTC
*** Issue 21055 has been marked as a duplicate of this issue. ***
Comment 16 Marian Mirilovic 2002-03-13 08:15:33 UTC
*** Issue 21531 has been marked as a duplicate of this issue. ***
Comment 17 Jan Zajicek 2002-03-14 11:43:14 UTC
*** Issue 21573 has been marked as a duplicate of this issue. ***
Comment 18 Marian Mirilovic 2002-03-19 08:33:49 UTC
*** Issue 21702 has been marked as a duplicate of this issue. ***
Comment 19 Tomas Pavek 2002-03-25 15:32:06 UTC
Patch integrated to orion_fcs branch.
Comment 20 Marian Mirilovic 2002-04-02 07:34:18 UTC
*** Issue 22001 has been marked as a duplicate of this issue. ***
Comment 21 Richard Malaschitz 2002-04-02 12:25:54 UTC
{Build 020401)
Verified
Comment 22 Marian Mirilovic 2002-04-04 07:39:32 UTC
*** Issue 22071 has been marked as a duplicate of this issue. ***
Comment 23 Marian Mirilovic 2002-04-12 10:53:57 UTC
*** Issue 22333 has been marked as a duplicate of this issue. ***
Comment 24 Marian Mirilovic 2002-04-15 08:51:39 UTC
*** Issue 22429 has been marked as a duplicate of this issue. ***
Comment 25 Marian Mirilovic 2002-04-17 09:23:24 UTC
*** Issue 22525 has been marked as a duplicate of this issue. ***
Comment 26 Marian Mirilovic 2002-04-19 12:37:05 UTC
*** Issue 22624 has been marked as a duplicate of this issue. ***
Comment 27 Tomas Pavek 2002-04-22 11:24:12 UTC
*** Issue 22648 has been marked as a duplicate of this issue. ***
Comment 28 _ ttran 2002-05-15 22:22:09 UTC
*** Issue 23557 has been marked as a duplicate of this issue. ***
Comment 29 Tomas Pavek 2002-05-17 08:12:42 UTC
*** Issue 23638 has been marked as a duplicate of this issue. ***
Comment 30 Quality Engineering 2003-06-30 18:31:53 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.