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.
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)
Created attachment 148928 [details] stacktrace
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