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 130911 - NPE in RESTful from entities wizard
Summary: NPE in RESTful from entities wizard
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Liu
URL:
Keywords: TEST
Depends on:
Blocks: 131571
  Show dependency tree
 
Reported: 2008-03-24 14:36 UTC by Lukas Jungmann
Modified: 2008-09-17 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (76.74 KB, image/png)
2008-03-24 14:37 UTC, Lukas Jungmann
Details
ide log (60.69 KB, text/plain)
2008-03-24 14:37 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-03-24 14:36:47 UTC
don't know how to reproduce this manually, but it happens in tests on test machines, see also attached messages.log and
screenshot

 java.lang.NullPointerException
	at org.netbeans.modules.websvc.rest.codegen.EntityResourcesGenerator.getTotalWorkUnits(EntityResourcesGenerator.java:2033)
	at org.netbeans.modules.websvc.rest.codegen.AbstractGenerator.initProgressReporting(AbstractGenerator.java:70)
	at org.netbeans.modules.websvc.rest.codegen.AbstractGenerator.initProgressReporting(AbstractGenerator.java:65)
	at org.netbeans.modules.websvc.rest.codegen.EntityResourcesGenerator.generate(EntityResourcesGenerator.java:237)
	at org.netbeans.modules.websvc.rest.wizard.EntityResourcesIterator$1.run(EntityResourcesIterator.java:99)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Lukas Jungmann 2008-03-24 14:37:33 UTC
Created attachment 58922 [details]
screenshot
Comment 2 Lukas Jungmann 2008-03-24 14:37:54 UTC
Created attachment 58923 [details]
ide log
Comment 3 Peter Liu 2008-03-25 21:04:21 UTC
Hi Lukas, could you give me instruction on how to run your test so I can debug this?

Thanks.

Comment 4 Lukas Jungmann 2008-03-25 21:21:29 UTC
see http://wiki.netbeans.org/WSTests -> RESTful Web Services support. Let me know if instructions are not clear enough,
please. (other way, not mentioned in the wiki, to customize which tests to run would be to comment out particular
include elements in websvc.restkit/test/cfg-qa-functional.xml)
Comment 5 Peter Liu 2008-04-03 00:36:54 UTC
Lukas, I checked in a fix that might have fixed this issue.  Please verify?

http://hg.netbeans.org/main/rev/e8492333f426

Comment 6 Peter Liu 2008-04-03 02:17:56 UTC
This might be the proper fix: 

http://hg.netbeans.org/main/rev/be1e9e9ecb36

Please verify.

Comment 7 Peter Liu 2008-04-03 22:19:17 UTC
Closing as fixed.
Comment 8 Lukas Jungmann 2008-09-17 13:26:42 UTC
v.