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

Summary: NPE in RESTful from entities wizard
Product: webservices Reporter: Lukas Jungmann <jungi>
Component: RESTAssignee: Peter Liu <petertliu>
Status: VERIFIED FIXED    
Severity: blocker Keywords: TEST
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 131571    
Attachments: screenshot
ide log

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.