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 188571 - NullPointerException at org.netbeans.modules.j2ee.persistence.util.SourceLevelChecker.isSourceLevel14orLower
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.util.SourceLeve...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 07:45 UTC by Sergey Petrov
Modified: 2010-07-13 03:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171315


Attachments
stacktrace (2.20 KB, text/plain)
2010-07-12 07:45 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2010-07-12 07:45:24 UTC
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)
Comment 1 Sergey Petrov 2010-07-12 07:45:29 UTC
Created attachment 100754 [details]
stacktrace
Comment 2 Sergey Petrov 2010-07-12 07:55:17 UTC
p1, can't invoke entity from db
Comment 3 Sergey Petrov 2010-07-12 08:42:04 UTC
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.
Comment 4 Sergey Petrov 2010-07-12 09:38:33 UTC
http://hg.netbeans.org/web-main/rev/fd4232c5c39d fixed
Comment 5 Quality Engineering 2010-07-13 03:35:23 UTC
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