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 150027 - AssertionError: Source Path Root can't be null
Summary: AssertionError: Source Path Root can't be null
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL: http://statistics.netbeans.org/except...
Keywords:
: 158427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-14 09:29 UTC by willemv
Modified: 2009-04-08 14:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 73823


Attachments
stacktrace (1.97 KB, text/plain)
2008-10-14 09:29 UTC, willemv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description willemv 2008-10-14 09:29:31 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Linux, 2.6.24-19-generic, i386

User Comments:
willemv: Trying to run a Groovy script by clicking on the Groovy file in the Projects window.

GUEST: context: a new netbeans project based on existing sources
created a new groovy script using the wizard in default package
right click -> execute script

GUEST: was trying to execute a groovy script

jre 1.6.0.10 is installed
groovy 1.5.6 is installed
grails 1.0.3 is installed

GUEST: Trying to run Groovy class

GUEST: This error occured when I try to execute a Groovy script.

willemv: Trying to run a Groovy script by clicking on the Groovy file in the Projects window.



Stacktrace: 
java.lang.AssertionError: Source Path Root can't be null
        at org.netbeans.modules.groovy.support.GroovyActionProvider.getRoot(GroovyActionProvider.java:260)
        at org.netbeans.modules.groovy.support.GroovyActionProvider.setupTestSingle(GroovyActionProvider.java:350)
        at org.netbeans.modules.groovy.support.GroovyActionProvider.getTargetNames(GroovyActionProvider.java:190)
        at org.netbeans.modules.groovy.support.GroovyActionProvider.access$000(GroovyActionProvider.java:90)
        at org.netbeans.modules.groovy.support.GroovyActionProvider$1.run(GroovyActionProvider.java:139)
        at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:150)
Comment 1 willemv 2008-10-14 09:29:41 UTC
Created attachment 71731 [details]
stacktrace
Comment 2 Petr Hejl 2009-02-03 16:21:40 UTC
Fixed in main 58ab42ee4553.
Comment 3 Quality Engineering 2009-02-04 08:39:49 UTC
Integrated into 'main-golden', will be available in build *200902040232* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/58ab42ee4553
User: phejl@netbeans.org
Log: #150027 AssertionError: Source Path Root can't be null
Comment 4 Petr Hejl 2009-02-12 13:14:46 UTC
*** Issue 158427 has been marked as a duplicate of this issue. ***
Comment 5 elberry 2009-02-13 20:56:19 UTC
I am unable to confirm this fix. The build process now breaks with this error:

[quote]
[project path]/nbproject/build-impl.xml:378: Unknown attribute [gensrcdir]
BUILD FAILED (total time: 0 seconds)
[/quote]

Looking at the build file at that line points to the "-do-compile-single" target. Apparently the gensrcdir attribute
doesn't exist on the j2seproject3:javac task.

Should I file another bug for this?
Comment 6 Petr Hejl 2009-02-13 21:09:07 UTC
It is reported as issue 157738. You can find temporary workaround to open you project with trunk there.
Comment 7 elberry 2009-02-14 01:16:28 UTC
I've verified the fix. Using the Nightly build 200902130336.

Thanks.
Comment 8 pgebauer 2009-04-08 14:10:46 UTC
The status whiteboard "65fixes4-candidate" has been removed.
At this time our proactive patches for the NetBeans 6.5.x IDE have concluded.

If you own a Sun service plan contract for NetBeans, you may wish to contact
Sun Service http://www.sun.com/contact/support.jsp to request a fix via the
product defect escalation process.

For more information on purchasing a Sun service plan contract for NetBeans,
refer to the service plan item "Sun Software Service Plans (S3P) for Developers"
in the Sun Service table found on our NetBeans Support Resources
page http://www.netbeans.org/kb/support.html