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 123072 - Radnom failure of Grails project wizard
Summary: Radnom failure of Grails project wizard
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: schmidtm
URL:
Keywords:
: 123298 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-29 15:59 UTC by martin_adamek
Modified: 2008-10-30 14:25 UTC (History)
1 user (show)

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 martin_adamek 2007-11-29 15:59:38 UTC
It seems that NewGrailsProjectWizardIterator add null to result set of instantiate() method from FileUtil.toFileObject(dirF). Probably some threading 
problem? We think that directory is alredy created, but it's not? I saw this once when I was trying to fix grails.bat problem, but could not reproduce since 
then.

Stack trace from Petr
java.lang.AssertionError
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1033)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1384)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
	at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 martin_adamek 2007-11-29 16:15:55 UTC
I added some logging to problematic part, so it should say something in log in case of this problem will appear:
http://www.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/NewGrailsProjectWizard
Iterator.java?r1=1.8&r2=1.9

Comment 2 martin_adamek 2007-12-04 10:07:21 UTC
Ok, it is 100% reproducible if IDE is not running from command line, but from installer-based installation.
Comment 3 martin_adamek 2007-12-04 10:54:00 UTC
Problem appeared also on system without GRAILS_HOME env property.
Fixed.
http://www.netbeans.org/source/browse/scripting/groovy/grails/src/org/netbeans/modules/groovy/grails/GrailsServerRunnable.java?r1=1.9&r2=1.10

Comment 4 martin_adamek 2007-12-05 12:02:27 UTC
*** Issue 123298 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2008-05-20 05:16:01 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #206 build
Changeset: http://hg.netbeans.org/main/rev/6cbb00f04d1e
User: Martin Adamek <martin_adamek@netbeans.org>
Log: Logging for #123072
Comment 6 Lukas Jungmann 2008-09-29 15:23:45 UTC
v.