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 204669 - NullPointerException at org.netbeans.modules.groovy.grailsproject.templates.NewGrailsArtifactWizardIterator.instantiate
Summary: NullPointerException at org.netbeans.modules.groovy.grailsproject.templates.N...
Status: RESOLVED DUPLICATE of bug 187318
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 09:47 UTC by rjdkolb
Modified: 2011-12-07 15:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182589


Attachments
stacktrace (1.10 KB, text/plain)
2011-11-04 09:47 UTC, rjdkolb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rjdkolb 2011-11-04 09:47:32 UTC
This bug was originally marked as duplicate of bug 182257, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
rafu_86: hi, i have a bug to report

the bug is connected with creating new domain class in new version of grails, in this case 1.3.1 M1
after fill up domain class name, but without giving any package name, console stops at 81% and there is text in red that says that it is not recommendet to not specify any package, and IDE is suspended in this moment, we cant do anything except when we write some on our creating new domain class window, we can now do something
then we can click cancel>and answer for previous question in console, when we click yes domain class is build up like nothing happened

regards, Rafa? Wi?niecki

GUEST: adding a grails domain class without a package

rjdkolb: Groovy plugin

When attempting to create a Domain class that already exists,
Groovy prompts > Tests NoseTests.groovy already exists. Overwrite? [y/n] (y, Y, n, N)

When I tried to type Y I got this exception

thanks

GUEST: when you create a Grails app, then you if create a controller using the left menu you are in a death locking  situation. because there is a  dialog and there is a request from the output console.
WARNING: You have not specified a package. It is good practise to place classes in packages (eg. mycompany.Book). Do you want to continue? (y, n)

the only way to exit without killing the netebans applicatione is insert a junk package

GUEST: re-creating new controler in grails

GUEST: I've created a simple controller in a grails application, and put in default package.
Grails asks for confirmation, but the configuration dialog is still open and it is modal, so you cannot reply in the (create-controller) tab.

I had to close the configuration dialog box, so I can reply to grails warning, at the end of controller creation there is the NPE




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.groovy.grailsproject.templates.NewGrailsArtifactWizardIterator.instantiate(NewGrailsArtifactWizardIterator.java:240)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1019)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:591)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:412)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:256)
   at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:168)
Comment 1 rjdkolb 2011-11-04 09:47:36 UTC
Created attachment 112819 [details]
stacktrace
Comment 2 Martin Janicek 2011-12-07 15:25:30 UTC

*** This bug has been marked as a duplicate of bug 187318 ***