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 234460 - NullPointerException at org.netbeans.modules.websvc.rest.wizard.Util.generatePrimaryKeyMethod
Summary: NullPointerException at org.netbeans.modules.websvc.rest.wizard.Util.generate...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 15:19 UTC by Milan Kuchtiak
Modified: 2013-08-16 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 203075


Attachments
stacktrace (2.31 KB, text/plain)
2013-08-15 15:19 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2013-08-15 15:19:15 UTC
This bug was originally marked as duplicate of bug 222155, 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 20130815-2c9b4cefb7ea)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
mkuchtiak: First created REST resource for Manufacturer table,
then created 3 rest resources for Product table (to the same packege).
Note that Manufacturer is a foreigh key in Product table.
(used jdbc/sample datasource)

GUEST: Generating RESTful web service for sample Database (Customer table)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.websvc.rest.wizard.Util.generatePrimaryKeyMethod(Util.java:527)
   at org.netbeans.modules.websvc.rest.wizard.fromdb.EjbFacadeGenerator.generate(EjbFacadeGenerator.java:288)
   at org.netbeans.modules.websvc.rest.wizard.Util.generateRESTFacades(Util.java:728)
   at org.netbeans.modules.websvc.rest.wizard.Util.generateRESTFacades(Util.java:702)
   at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator.generate(DatabaseResourceWizardIterator.java:365)
   at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator.access$000(DatabaseResourceWizardIterator.java:112)
Comment 1 Milan Kuchtiak 2013-08-15 15:19:17 UTC
Created attachment 138750 [details]
stacktrace
Comment 2 Milan Kuchtiak 2013-08-16 12:10:10 UTC
Fixed:
http://hg.netbeans.org/web-main/rev/f03fe67e15f5