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 246734 - NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure.<init>
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.EntityCl...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 18:29 UTC by narsereg
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 200754


Attachments
stacktrace (8.59 KB, text/plain)
2014-08-27 18:29 UTC, narsereg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description narsereg 2014-08-27 18:29:18 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-1977-on-20140804)
VM: Java HotSpot(TM) Client VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
narsereg: This exception ocured when I tried to create new file "RESTful web services from entity class".

GUEST: when I creat a greadle project,and I have added ?apply plugin: 'war'? in build.gradle,now I 
hope my project could use Templates/Persistence/RestServicesFromEntities Templates creat file. 
but when I created file use Templates/Persistence/RestServicesFromEntities ? the netbeans tell 
me the gradle project isn't a web project?so I couldn't created the file.

GUEST: Attempted to create a RESTful web service from an existing entity.

GUEST: create rest from entity class




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure.<init>(EntityClosure.java:126)
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure.create(EntityClosure.java:116)
   at org.netbeans.modules.j2ee.persistence.wizard.PersistenceClientEntitySelectionVisual.read(PersistenceClientEntitySelectionVisual.java:484)
   at org.netbeans.modules.websvc.rest.wizard.EntitySelectionPanel.readSettings(EntitySelectionPanel.java:80)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:867)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:822)
Comment 1 narsereg 2014-08-27 18:29:20 UTC
Created attachment 148928 [details]
stacktrace
Comment 2 Martin Balin 2016-07-07 08:55:45 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss