Ask a Question

NullPointerException when I try to create a REST test step from a route containing curly braces

testingwithfire
Occasional Contributor

NullPointerException when I try to create a REST test step from a route containing curly braces

We have REST routes imported from a WADL that contain parameterized values with curly braces. For example:

 

/somepath/{someId}/someuser

 

As far as I know this is valid route syntax.

 

When I try to create a REST test step from one of these routes, the editor will not open and the exception below is thrown:

 

Mon Apr 06 12:41:05 EDT 2015:ERROR:java.lang.NullPointerException
java.lang.NullPointerException
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceAll(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
at com.eviware.soapui.impl.rest.support.RestUtils.expandPath(RestUtils.java:223)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.updateFullPathLabel(RestTestRequestDesktopPanel.java:201)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.addBottomToolbar(RestTestRequestDesktopPanel.java:186)
at com.eviware.soapui.impl.rest.panels.request.AbstractRestRequestDesktopPanel.buildToolbar(AbstractRestRequestDesktopPanel.java:139)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.init(AbstractHttpRequestDesktopPanel.java:172)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.<init>(AbstractHttpRequestDesktopPanel.java:128)
at com.eviware.soapui.impl.support.panels.AbstractHttpXmlRequestDesktopPanel.<init>(AbstractHttpXmlRequestDesktopPanel.java:46)
at com.eviware.soapui.impl.rest.panels.request.AbstractRestRequestDesktopPanel.<init>(AbstractRestRequestDesktopPanel.java:61)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.<init>(RestTestRequestDesktopPanel.java:85)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestPanelBuilder.buildDesktopPanel(RestTestRequestPanelBuilder.java:38)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestPanelBuilder.buildDesktopPanel(RestTestRequestPanelBuilder.java:33)
at com.eviware.soapui.ui.desktop.standalone.StandaloneDesktop.showDesktopPanel(StandaloneDesktop.java:179)
at com.eviware.soapui.support.UISupport.showDesktopPanel(UISupport.java:562)
at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:551)
at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:49)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:89)
at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:97)
at com.eviware.soapui.support.swing.AbstractListMouseListener.mouseClicked(AbstractListMouseListener.java:62)
at com.eviware.soapui.impl.wsdl.panels.testcase.JTestStepList$1.mouseClicked(JTestStepList.java:107)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

3 REPLIES 3
nmrao
Community Hero

Re: NullPointerException when I try to create a REST test step from a route containing curly braces

Are you passing value to the parameter? And still you see this?



Regards,
Rao.
testingwithfire
Occasional Contributor

Re: NullPointerException when I try to create a REST test step from a route containing curly braces

The problem comes when I try to create a test step from the route. I can't even begin to pass a value if I can't edit the test step. 

 

Also - more info -this occurs on routes that I imported from a WADL. 

nmrao
Community Hero

Re: NullPointerException when I try to create a REST test step from a route containing curly braces

Which version and os details please? If you want to give try the same on recently released SoapUI OS 5.1.2


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: