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 180559 - NPE in log while running automatic tests
Summary: NPE in log while running automatic tests
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 08:56 UTC by Alexander Pepin
Modified: 2010-02-21 22:36 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 Alexander Pepin 2010-02-10 08:56:22 UTC
While running automatic tests the following exceptions occurs in ide log and spoil test results:
...
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 source roots took: 0 ms (New or modified files: 0, Deleted files: 0)
java.lang.NullPointerException
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.setParsedPCState(ProjectBase.java:1511)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.doParse(FileImpl.java:1080)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:816)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:494)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:125)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:68)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:88)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 1 ms
....

It would be nice to handle this exception correctly to avoid logging.
Comment 1 Quality Engineering 2010-02-10 21:26:06 UTC
Integrated into 'main-golden', will be available in build *201002110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a2a6f513c716
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: checks to trace BZ#180559 -  NPE in log while running automatic tests
Comment 2 Alexander Pepin 2010-02-19 02:47:28 UTC
Found in the IDE message log:
java.lang.AssertionError: state can not be null in pair (PARSING
null) for file FileImpl @-913529485:5735986 /export/hudson/jobs/cnd-test-intel-S2-5/workspace/tests/build/test/qa-functional/work/userdir0/var/cache/cnd/remote-includes/spb-nero.russia.sun.com_22/usr/sfw/include/c++/3.4.3/iostream prj:2842539KeyBasedUID on ProjectKey /export/hudson/jobs/cnd-test-intel-S2-5/workspace/tests/build/test/qa-functional/work/userdir0/var/cache/cnd/remote-includes/spb-nero.russia.sun.com_22/usr/sfw/include/c++/3.4.3L
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.setParsedPCState(ProjectBase.java:1510)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.doParse(FileImpl.java:1182)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:813)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:500)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:125)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:68)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:88)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123)
Comment 3 Vladimir Voskresensky 2010-02-19 07:41:37 UTC
fixed
http://hg.netbeans.org/cnd-main?cmd=changeset;node=ceecce24576c
please verify
Comment 4 Quality Engineering 2010-02-21 22:36:17 UTC
Integrated into 'main-golden', will be available in build *201002220200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ceecce24576c
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed BZ#180559 -  NPE in log while running automatic tests