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.
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)
Created attachment 71731 [details] stacktrace
Fixed in main 58ab42ee4553.
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
*** Issue 158427 has been marked as a duplicate of this issue. ***
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?
It is reported as issue 157738. You can find temporary workaround to open you project with trunk there.
I've verified the fix. Using the Nightly build 200902130336. Thanks.
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