Forum Discussion

stefan_jansson's avatar
stefan_jansson
New Contributor
10 years ago

NullPointerException when clicking save on xpath assertion


Hi,



I'm trying out the trial version of soapui pro which I'm running through Ready API and so far the tool seems to be the right fit for us, if this issue would be fixed. Setting up xpath assertion seem to produce a NullPointerException according to your error.log, when clicking the save button.



Here's what I've done: I've set up a project and a test with excel as datasource and 35 rows of testdata being executed in a dataloop. The tests work and I can set up assertions for "Valid HTTP Status Codes". But when I add a xpath assertion to verify the data(content) in the response(and it's the same if i choose count or any other option for the xpath assertion) the dialogue does nothing when i click on the "save" button a nullpointer is printed in error.log. I can abort the dialogue with cancel button and x-button in the upper corner, but then of course it deletes my xpath assertion. My xpath assertion is verified working since it's marked green, I just simply can't save it.



I've verified that I'm using the latest version of Ready API(2015-01-07).



I hope you could shine some light on either how I do a workaround to set up my xpath assertions, and/or when you will fix the problem.





Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

    at com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.AssertionConfigurationDialog$OkAction.actionPerformed(AssertionConfigurationDialog.java:226)

    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(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.pumpEventsForFilter(Unknown Source)

    at java.awt.WaitDispatchSupport$2.run(Unknown Source)

    at java.awt.WaitDispatchSupport$4.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.awt.WaitDispatchSupport.enter(Unknown Source)

    at java.awt.Dialog.show(Unknown Source)

    at java.awt.Component.show(Unknown Source)

    at java.awt.Component.setVisible(Unknown Source)

    at java.awt.Window.setVisible(Unknown Source)

    at java.awt.Dialog.setVisible(Unknown Source)

    at com.eviware.soapui.support.UISupport.showDialog(UISupport.java:409)

    at com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.AssertionConfigurationDialog.configure(AssertionConfigurationDialog.java:61)

    at com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.XPathContainsAssertion.configure(XPathContainsAssertion.java:383)

    at com.eviware.soapui.impl.wsdl.panels.teststeps.actions.AbstractAddXPathAssertionAction.addAssertion(AbstractAddXPathAssertionAction.java:48)

    at com.eviware.soapui.impl.wsdl.panels.teststeps.actions.AbstractAddXPathAssertionAction.actionPerformed(AbstractAddXPathAssertionAction.java:34)

    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    at javax.swing.AbstractButton.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(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)