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 232436 - AssertionError: Project was null for projectURI: memory://fs3/
Summary: AssertionError: Project was null for projectURI: memory://fs3/
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 10:44 UTC by dynamite
Modified: 2013-12-07 04:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201994


Attachments
stacktrace (1.71 KB, text/plain)
2013-07-09 10:44 UTC, dynamite
Details
stacktrace (1.71 KB, text/plain)
2013-08-14 13:28 UTC, dynamite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2013-07-09 10:44:57 UTC
This bug was originally marked as duplicate of bug 228037, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-11138-on-20130617)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
dynamite: Running single unit test that is a juint 3 tast case




Stacktrace: 
java.lang.AssertionError: Project was null for projectURI: memory://fs3/
   at org.netbeans.modules.gsf.testrunner.api.TestSession.getReport(TestSession.java:296)
   at org.netbeans.modules.junit.output.JUnitOutputReader.testCaseFinished(JUnitOutputReader.java:717)
   at org.netbeans.modules.junit.output.JUnitOutputReader.verboseMessageLogged(JUnitOutputReader.java:247)
   at org.netbeans.modules.junit.output.JUnitOutputReader.verboseMessageLogged(JUnitOutputReader.java:197)
   at org.netbeans.modules.junit.output.JUnitAntLogger.messageLogged(JUnitAntLogger.java:289)
   at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.messageLogged(NbBuildLogger.java:618)
Comment 1 dynamite 2013-07-09 10:44:59 UTC
Created attachment 136863 [details]
stacktrace
Comment 2 dynamite 2013-08-14 13:28:00 UTC
Created attachment 138688 [details]
stacktrace

Running test in ant-based project.
Comment 3 Theofanis Oikonomou 2013-12-06 16:57:02 UTC
For some reason, that I cannot specify at this point, JUnitAntLogger passes null as the Project parameter to JUnitOutputReader which falls back to creating a dummy  Project in memory file system. 

Added some logging to investigate when and why this happens http://hg.netbeans.org/core-main/rev/da876d07beff. Please try a latest build and reopen if it happens again describing exact steps to reproduce and a minimal project that exhibits the faulty behaviour and/or some more info that you may find relative. Thank you
Comment 4 Quality Engineering 2013-12-07 04:23:45 UTC
Integrated into 'main-silver', will be available in build *201312070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/da876d07beff
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: #232436 - AssertionError: Project was null for projectURI: memory://fs3/