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 159527 - NullPointerException: The model parameter cannot be null
Summary: NullPointerException: The model parameter cannot be null
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 156209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-03 14:27 UTC by Exceptions Reporter
Modified: 2010-10-07 13:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 38989


Attachments
stacktrace (7.32 KB, text/plain)
2009-03-03 14:27 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-03-03 14:27:07 UTC
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)
Comment 1 Exceptions Reporter 2009-03-03 14:27:18 UTC
Created attachment 77630 [details]
stacktrace
Comment 2 Milan Kuchtiak 2009-03-11 17:37:48 UTC
The exception should be fixed or "REST WebServices from Entity Class" should be disabled for Maven.
Comment 3 Denis Anisimov 2010-10-07 13:17:33 UTC
*** Bug 156209 has been marked as a duplicate of this bug. ***
Comment 4 Denis Anisimov 2010-10-07 13:20:21 UTC
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.