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 151077 - client stub does not support non-standard environments
Summary: client stub does not support non-standard environments
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Lukas Jungmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 22:45 UTC by Lukas Jungmann
Modified: 2009-02-19 23:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed fix (6.39 KB, text/plain)
2008-10-22 22:46 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-10-22 22:45:47 UTC
at least these two cases are not supported:

1) sun-web.xml is in non-default folder (see the project attached to issue 151070 for an example) - in this case
resources URL will be wrong

2) JBoss (or any other than GF and Tomcat) server is not being taken into account - if one tries to create REST client
stub there then there's:

java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at org.netbeans.modules.websvc.rest.codegen.ClientStubsGenerator.findBaseUrl(ClientStubsGenerator.java:260)
        at org.netbeans.modules.websvc.rest.codegen.ClientStubsGenerator.generate(ClientStubsGenerator.java:353)
[catch] at org.netbeans.modules.websvc.rest.wizard.ClientStubsIterator$1.run(ClientStubsIterator.java:136)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

attached patch address both issues. Ayub, take a look at it and let me know what do you think, please.

Thanks.
Comment 1 Lukas Jungmann 2008-10-22 22:46:15 UTC
Created attachment 72495 [details]
proposed fix
Comment 2 Ayub Khan 2008-10-23 02:49:23 UTC
Thanks Lukas for fixing this. The changes looks good!

-Ayub
Comment 3 Lukas Jungmann 2008-10-23 11:13:52 UTC
thanks Ayub, now it's my turn...
Comment 4 Lukas Jungmann 2008-10-23 11:19:35 UTC
f. in c802e4e9e567
Comment 5 Quality Engineering 2008-10-24 04:20:39 UTC
Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c802e4e9e567
User: Lukas Jungmann <jungi@netbeans.org>
Log: IZ #151077: client stub does not support non-standard environments