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 246586 - NullPointerException at org.netbeans.modules.websvc.rest.spi.MiscUtilities.getContextRootURL
Summary: NullPointerException at org.netbeans.modules.websvc.rest.spi.MiscUtilities.ge...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 13:56 UTC by terje7601
Modified: 2015-03-31 13:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209991


Attachments
stacktrace (4.44 KB, text/plain)
2014-08-20 13:56 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-08-20 13:56:13 UTC
This issue was reported manually by terje7601.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 201408200001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
terje7601: To reproduce, on a fresh install:
1) open a Maven JAX-RS project
2) right-click "RESTful Web Services" -> "Test RESTful Web Services"
3) choose "Locally Generated Test Client [...]" -> "OK"
an Error dialog pops up: "The target server has not been set or has been removed. Please, fix the server problem first."
4) click "OK"
the Exception dialog pops up

GUEST: Develop a Rest WebService for WebLogic 12c and then try to use "Test eb Service " option from the context menu raises this exception




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.websvc.rest.spi.MiscUtilities.getContextRootURL(MiscUtilities.java:307)
   at org.netbeans.modules.maven.jaxws.MavenProjectRestSupport.getBaseURL(MavenProjectRestSupport.java:117)
   at org.netbeans.modules.websvc.rest.support.Utils.generateLocalTester(Utils.java:396)
   at org.netbeans.modules.websvc.rest.support.Utils.testRestWebService(Utils.java:223)
   at org.netbeans.modules.websvc.rest.nodes.TestRestServicesAction.performAction(TestRestServicesAction.java:77)
   at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:586)
Comment 1 terje7601 2014-08-20 13:56:15 UTC
Created attachment 148793 [details]
stacktrace
Comment 2 Jan Stola 2015-03-31 13:49:22 UTC
Fixed by https://hg.netbeans.org/web-main/rev/477cc632c169