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 50941 - NPE from ...xerces.internal.dom.ParentNode.nodeListItem
Summary: NPE from ...xerces.internal.dom.ParentNode.nodeListItem
Status: CLOSED DUPLICATE of bug 50198
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-10-28 09:15 UTC by vtec
Modified: 2006-03-24 09:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (10.19 KB, text/plain)
2004-10-28 09:16 UTC, vtec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vtec 2004-10-28 09:15:55 UTC
Several last day builds throws this NPE related
probably to one of my freeform projects:

java.lang.NullPointerException
	at
com.sun.org.apache.xerces.internal.dom.ParentNode.nodeListItem(ParentNode.java:814)
	at
com.sun.org.apache.xerces.internal.dom.ParentNode.item(ParentNode.java:828)
	at
org.netbeans.modules.project.ant.Util.findElement(Util.java:51)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$10.run(AntProjectHelper.java:637)
	at org.openide.util.Mutex.readAccess(Mutex.java:181)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.getConfigurationFragment(AntProjectHelper.java:634)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.getPrimaryConfigurationData(AntProjectHelper.java:558)
	at
org.netbeans.modules.ant.freeform.FreeformProject$Info.getDisplayName(FreeformProject.java:103)

The freeform project of mine is there for quite
some time, so if there were some changes in its
format since, than that may be readon for the NPE.
Attaching full log.
Comment 1 vtec 2004-10-28 09:16:48 UTC
Created attachment 18579 [details]
IDE log
Comment 2 Jesse Glick 2004-10-28 18:18:17 UTC
I have seen this exception once or twice. I do not know what it means
- the immediate error is inside Xerces code, but this could be
triggered by something the IDE is doing wrong. If you can *reliably
reproduce* the exception, somehow, on someone else's machine, I can
probably fix it. Otherwise chances are slim.

There have not been any changes in format since beta 2 (that is not
allowed).

Do you know exactly which build starting throwing the exception?

When does the exception occur? When the project is opened? During
startup only? Under some other conditions?
Comment 3 Jesse Glick 2004-10-28 19:55:02 UTC
I will put in additional "thread armoring" which might prevent race
conditions when accessing DOM. I don't know if such a race condition
is the cause of this NPE however.
Comment 4 vtec 2004-10-29 08:46:47 UTC
Unfortunately I am unable to reproduce the bug anymore. It used to
happen on regular basis during IDE startup - just when project
classpath was to be scanned. The situation lasted for about a week.
Then It just magically disappeared when I have deleted netbean's log
file - hard to find any connections.
Comment 5 Jesse Glick 2004-10-29 15:57:54 UTC
OK, not much to do with it for now then.
Comment 6 Jesse Glick 2004-11-22 14:11:57 UTC
x
Comment 7 Jesse Glick 2004-11-22 14:12:42 UTC

*** This issue has been marked as a duplicate of 50198 ***
Comment 8 Marian Mirilovic 2005-07-12 10:16:54 UTC
closed