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 109909 - Generated code does not work because of misssing default constructors
Summary: Generated code does not work because of misssing default constructors
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 21:36 UTC by Lukas Jungmann
Modified: 2007-07-17 00:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-07-16 21:36:33 UTC
-create new web app
-create new entity class from DB
-create new rest ws for this class
-invoke test rest ... action on the web project node
-test Get method in the rest test client

=> fails with the server side error

the cause is that all *Converter and *Resource classes are missing default constructor and therefore JAXB is not able to
process them
Comment 1 Peter Liu 2007-07-16 23:41:55 UTC
Fix checked in NB 6 trunk.

IDE:-------------------------------------------------
IDE: [7/16/07 3:37 PM] Committing "REST Web Service Support" started
cvs server: scheduling file `DefaultResource.template' for addition
cvs server: use 'cvs commit' to add this file permanently
RCS file: /cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/codegen/resources/DefaultResource.template,v
done
Checking in codegen/resources/DefaultResource.template;
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/codegen/resources/DefaultResource.template,v  <-- 
DefaultResource.template
initial revision: 1.1
done
Checking in resources/layer.xml;
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/resources/layer.xml,v  <--  layer.xml
new revision: 1.24; previous revision: 1.23
done
Checking in codegen/EntityRESTServicesCodeGenerator.java;
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/codegen/EntityRESTServicesCodeGenerator.java,v  <-- 
EntityRESTServicesCodeGenerator.java
new revision: 1.65; previous revision: 1.64
done
IDE: [7/16/07 3:37 PM] Committing "REST Web Service Support" finished

Comment 2 Lukas Jungmann 2007-07-17 00:56:29 UTC
v.