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 19842 - NPE on startup and impossible to shutdown if development directory deleted
Summary: NPE on startup and impossible to shutdown if development directory deleted
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
: 20389 20454 20580 20679 21247 22314 22405 22406 22661 23013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-28 14:22 UTC by kurti
Modified: 2003-07-01 14:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
BZIP2 compressed ide.log containing the NPE (6.49 KB, application/octet-stream)
2002-01-28 14:23 UTC, kurti
Details
Bugfix - patch19842.jar (17.06 KB, application/octet-stream)
2002-02-06 14:12 UTC, Martin Roskanin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kurti 2002-01-28 14:22:42 UTC
I deleted the (CVS) mounted directory (with NB being closed) and got a
messagedialog on startup. Then I cannot shutdown NB and get an errordialog with
a NPE instead. I will attach ide.log.
Comment 1 kurti 2002-01-28 14:23:25 UTC
Created attachment 4455 [details]
BZIP2 compressed ide.log containing the NPE
Comment 2 kurti 2002-01-28 14:28:02 UTC
It does happen with RC3, too.
Comment 3 Jan Zajicek 2002-01-29 14:36:17 UTC
Problem is that there was unmounted filesystem while exit action were
in progress (Window system save etc.) and from that filesystem were
opened the properties table editor. After second start there were
corrupted information read. Also ide couldn't be exited due to NPE
from properties module writeexternal. Properties should at least check
for null. E.g. Cloneableeditorsupport handles this problem now.
DataObjectNotFound exceptions are caused by the unmounting while
exiting too (filesystem was removed but editor was saved with the
reference to unmounted file). Generally spoken there isn't solved such
situation when ide is exitting and some additional action is executed.
I am going to file new enhancement to solve this problem, will attach
id later.

Following NPE should be fixed in properties module, moving there:
*********** Exception occurred ************
Mon Jan 28 14:47:23 CET 2002: java.lang.NullPointerException: <no message>
java.lang.NullPointerException
        at
org.netbeans.modules.properties.PropertiesOpen$PropertiesCloneableTopComponent.writeExternal(PropertiesOpen.java:743)
        at
org.openide.windows.TopComponent$Replacer.writeObject(TopComponent.java:737)
        at java.lang.reflect.Method.invoke(Native Method)
        at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1864)
        at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)
        at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
        at
org.openide.loaders.XMLSettingsSupport.storeSerialData(XMLSettingsSupport.java:145)
<...>
Comment 4 Jan Zajicek 2002-01-29 14:50:18 UTC
Created issue #19902.
Comment 5 Martin Roskanin 2002-02-05 15:29:42 UTC
fixed in [maintrunk]

/cvs/properties/src/org/netbeans/modules/properties/PropertiesOpen.jav
a,v  <--  PropertiesOpen.java
new revision: 1.54; previous revision: 1.53
Comment 6 Martin Roskanin 2002-02-06 14:11:12 UTC
Please, copy the attached patch patch19842.jar into 
<NBDir>/modules/patches/org-netbeans-modules-properties/ folder
and restart NB.
Comment 7 Martin Roskanin 2002-02-06 14:12:45 UTC
Created attachment 4587 [details]
Bugfix - patch19842.jar
Comment 8 Jan Zajicek 2002-02-11 11:22:34 UTC
*** Issue 20389 has been marked as a duplicate of this issue. ***
Comment 9 Martin Roskanin 2002-02-13 10:34:30 UTC
*** Issue 20454 has been marked as a duplicate of this issue. ***
Comment 10 Jan Zajicek 2002-02-20 11:41:39 UTC
*** Issue 20679 has been marked as a duplicate of this issue. ***
Comment 11 Martin Roskanin 2002-02-26 09:21:27 UTC
Adding keyword 3.3.2_CANDIDATE.

diff of the fix:
http://properties.netbeans.org/source/browse/properties/src/org/netbea
ns/modules/properties/PropertiesOpen.java.diff?r1=1.53&r2=1.54
Comment 12 Martin Roskanin 2002-03-12 09:38:17 UTC
*** Issue 20580 has been marked as a duplicate of this issue. ***
Comment 13 Martin Roskanin 2002-03-12 09:43:03 UTC
*** Issue 21247 has been marked as a duplicate of this issue. ***
Comment 14 Martin Roskanin 2002-03-25 09:48:54 UTC
I am increasing the priority because of the large amount of duplicates 
.
Comment 15 Martin Roskanin 2002-03-26 13:34:58 UTC
fixed in [orion_fcs]

/cvs/properties/src/org/netbeans/modules/properties/PropertiesOpen.jav
a,v  <--  PropertiesOpen.java
new revision: 1.47.6.2.4.1; previous revision: 1.47.6.2
Comment 16 Martin Roskanin 2002-04-11 14:01:50 UTC
*** Issue 22314 has been marked as a duplicate of this issue. ***
Comment 17 Martin Roskanin 2002-04-13 09:53:16 UTC
*** Issue 22405 has been marked as a duplicate of this issue. ***
Comment 18 Martin Roskanin 2002-04-13 09:58:35 UTC
*** Issue 22406 has been marked as a duplicate of this issue. ***
Comment 19 Martin Roskanin 2002-04-22 17:10:36 UTC
*** Issue 22661 has been marked as a duplicate of this issue. ***
Comment 20 Martin Roskanin 2002-05-28 09:34:54 UTC
*** Issue 23013 has been marked as a duplicate of this issue. ***
Comment 21 pfelenda 2002-10-18 15:26:29 UTC
Verified in dev build [200210160100].
Comment 22 Quality Engineering 2003-07-01 14:20:26 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.