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

Summary: NullPointerException at org.netbeans.modules.websvc.rest.spi.MiscUtilities.getContextRootURL
Product: webservices Reporter: terje7601
Component: RESTAssignee: Jan Stola <jstola>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209991
Attachments: stacktrace

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