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 131661 - <nulltype> in generated sources
Summary: <nulltype> in generated sources
Status: CLOSED 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: 2008-03-31 19:51 UTC by Lukas Jungmann
Modified: 2008-04-07 14:29 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 2008-03-31 19:51:27 UTC
-download and unzip http://wiki.netbeans.org/attach/JsfCrudGenerator/consultingagency.zip
-open consultingagency project in the IDE
-generate REST services from entities which are already there[1]
-build the project

=>
...
Compiling 46 source files to /home/lukas/NetBeansProjects/ConsultingAgency/build/web/WEB-INF/classes
/home/lukas/NetBeansProjects/ConsultingAgency/src/java/service/AddressResource.java:112: cannot find symbol
symbol  : constructor ClientResource(<nulltype>,javax.ws.rs.core.UriInfo)
location: class service.ClientResource
        return new ClientResource(null, context) {
/home/lukas/NetBeansProjects/ConsultingAgency/src/java/service/RecruiterResource.java:114: cannot find symbol
symbol  : constructor ClientResource(<nulltype>,javax.ws.rs.core.UriInfo)
location: class service.ClientResource
        return new ClientResource(null, context) {
/home/lukas/NetBeansProjects/ConsultingAgency/src/java/service/ProjectResource.java:185: cannot find symbol
symbol  : constructor ClientResource(<nulltype>,javax.ws.rs.core.UriInfo)
location: class service.ClientResource
        return new ClientResource(null, context) {
/home/lukas/NetBeansProjects/ConsultingAgency/src/java/service/BillableResource.java:135: cannot find symbol
symbol  : constructor ProjectResource(<nulltype>,javax.ws.rs.core.UriInfo)
location: class service.ProjectResource
        return new ProjectResource(null, context) {
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
/home/lukas/NetBeansProjects/ConsultingAgency/nbproject/build-impl.xml:393: The following error occurred while executing
this line:
/home/lukas/NetBeansProjects/ConsultingAgency/nbproject/build-impl.xml:214: Compile failed; see the compiler error
output for details.
BUILD FAILED (total time: 0 seconds)


[1]: see Consulting Agency at http://wiki.netbeans.org/JsfCrudGenerator for info about DB used for these entities
Comment 1 Peter Liu 2008-04-02 23:47:55 UTC
Lukas, I have a fix for this issue.  Let me know if you want this fixed in the release61 branch.

Comment 2 Lukas Jungmann 2008-04-02 23:55:03 UTC
is it in trunk already? I haven't seen it at hg.nb.org/main yet...
Comment 3 Peter Liu 2008-04-03 00:09:43 UTC
I am testing it right now and will check it into the trunk shortly.

Comment 4 Lukas Jungmann 2008-04-03 00:13:06 UTC
Ok, I'll check it in the morning and will let you know.
Comment 5 Peter Liu 2008-04-03 00:35:45 UTC
Fix checked into trunk.

http://hg.netbeans.org/main/rev/e8492333f426
Comment 6 Lukas Jungmann 2008-04-03 14:13:12 UTC
v. in trunk, transplant the fix to release61 clone, please. Thanks
Comment 7 Peter Liu 2008-04-03 20:42:07 UTC
fix checked into release61 branch.

Comment 8 Lukas Jungmann 2008-04-04 12:41:18 UTC
v.