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 161413 - AssertionError at org.netbeans.modules.groovy.grails.api.GrailsProjectConfig.setJavaPlatform
Summary: AssertionError at org.netbeans.modules.groovy.grails.api.GrailsProjectConfig....
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:
Depends on:
Blocks:
 
Reported: 2009-03-29 12:13 UTC by petersm
Modified: 2009-06-30 14:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 148495


Attachments
stacktrace (1.46 KB, text/plain)
2009-03-29 12:13 UTC, petersm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description petersm 2009-03-29 12:13:35 UTC
Build: NetBeans IDE Dev (Build 200902231810)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
petersm: Tried to change default JDK for a grails project on mac os x 10.5.6

Added different JDKs (1.5 was defaut, added 1.6.0 and 1.6)

Closed the Properties dialog of he grails project



Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.groovy.grails.api.GrailsProjectConfig.setJavaPlatform(GrailsProjectConfig.java:282)
        at org.netbeans.modules.groovy.grailsproject.ui.customizer.GrailsProjectProperties.saveProperties(GrailsProjectProperties.java:185)
        at org.netbeans.modules.groovy.grailsproject.ui.customizer.GrailsProjectProperties.access$000(GrailsProjectProperties.java:63)
        at org.netbeans.modules.groovy.grailsproject.ui.customizer.GrailsProjectProperties$1.run(GrailsProjectProperties.java:158)
        at org.netbeans.modules.groovy.grailsproject.ui.customizer.GrailsProjectProperties$1.run(GrailsProjectProperties.java:156)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
Comment 1 petersm 2009-03-29 12:13:40 UTC
Created attachment 79011 [details]
stacktrace
Comment 2 Petr Hejl 2009-03-29 13:21:14 UTC
Reporter, do you have more details on this? Was the registered platform marked as broken? Any other details? I can't
reproduce it.
Comment 3 petersm 2009-03-29 16:09:48 UTC
sorry, don't have further details. Just tried to change the default jdk for my project from 1.5 to 1.6. (new and clean
netbeans installation)


Maybe this is important: After adding the new JDKs, as far as i remember,  a red text "no default jdk found" was
selected in the dropdown box. There was no further option to select. 

After restarting the IDE, I found the expected entries in the drop down. Now i can change and edit the JDKs with out any
problems.
Comment 4 Petr Hejl 2009-06-30 14:48:25 UTC
I think this should be already fixed by fixed module dependenciees in Java area. Feel free to reopen.