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.
This bug was originally marked as duplicate of bug 145735, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 100709-4b32770b4996) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: GUEST: In a Grails project, right-clicked on "Source Packages/java" and selected "New > Entity class form database" => exception dialog shows up immediatly. sj-nb: create j2se application with all default invoke "Entity from db" Stacktrace: java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.util.SourceLevelChecker.isSourceLevel14orLower(SourceLevelChecker.java:70) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel$WizardPanel.isValid(DatabaseTablesPanel.java:971) at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:910) at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:854) at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:734) at org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:122)
Created attachment 100754 [details] stacktrace
p1, can't invoke entity from db
need to change api according to http://hg.netbeans.org/web-main/rev/05c1ac38a4a6 also may be good to add null check, but it will be harder to track later api changes then.
http://hg.netbeans.org/web-main/rev/fd4232c5c39d fixed
Integrated into 'main-golden', will be available in build *201007130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fd4232c5c39d User: Sergey B. Petrov <sj-nb@netbeans.org> Log: fix #188571 use new api