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 6.5 (Build 200811100001) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.6, x86_64 User Comments: GUEST: I have a persistence unit in my webapp (created from maven) and when I try to create REST WebServices from Entity Class I get the exception tprochazka: I tried create Rest server in Maven web project GUEST: I'm creating a restful web service from a persisted entity imyousuf: I have a Multi Module Maven project. One of the modules contain persistenct Java classes generated from DB. Now I have another module which is a webapp. I clicked on a package of the source of the web app and selected New -> RESTful WS from Entity Classes and I got this exception Stacktrace: java.lang.NullPointerException: The model parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:86) at org.netbeans.modules.websvc.rest.support.MetadataModelReadHelper.create(MetadataModelReadHelper.java:183) at org.netbeans.modules.websvc.rest.wizard.EntitySelectionPanelVisual.read(EntitySelectionPanelVisual.java:375) at org.netbeans.modules.websvc.rest.wizard.AbstractPanel.readSettings(AbstractPanel.java:79) at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:826) at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:801)
Created attachment 77630 [details] stacktrace
The exception should be fixed or "REST WebServices from Entity Class" should be disabled for Maven.
*** Bug 156209 has been marked as a duplicate of this bug. ***
I'm not able to reproduce it. In case if persistent unit is present in the project all is OK. NPE doesn't occur. If there is no persistent unit then Entity chooser dialog will inform about absent persistent unit. Probably this bug is fixed under development activity.