Forum Discussion

MikeLoundes's avatar
MikeLoundes
Contributor
12 years ago

java.lang.NullPointerException opening Test Suite Editor

Hi

I'm getting the error below when trying to open the test suite editor, also get this when trying to run the test suite from the test runner, anybody got any ideas as to what might cause this?

all the test cases can be run individually without issues but I cant run them all in one block which is mildly annoying


thanks in advance
Mike



Mon Oct 21 08:27:55 BST 2013:ERROR:java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry.getAssertion(SourceFile:180)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry.getAssertionCount(SourceFile:624)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.GroupAssertion.getAssertionCount(SourceFile:569)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry.getAssertionCount(SourceFile:624)
at com.eviware.soapui.impl.wsdl.teststeps.AssertionTestStep.getAssertionCount(SourceFile:299)
at com.eviware.soapui.model.support.TestSuiteMetrics.getAssertionCount(TestSuiteMetrics.java:56)
at com.eviware.soapui.reporting.reports.testsuite.WsdlTestSuiteReport.<init>(SourceFile:42)
at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuiteDesktopPanel.addToolbarActions(SourceFile:247)
at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.buildToolbar(WsdlTestSuiteDesktopPanel.java:152)
at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.buildUI(WsdlTestSuiteDesktopPanel.java:113)
at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.<init>(WsdlTestSuiteDesktopPanel.java:106)
at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuiteDesktopPanel.<init>(SourceFile:77)
at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuitePanelBuilder.buildDesktopPanel(SourceFile:14)
at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuitePanelBuilder.buildDesktopPanel(SourceFile:10)
at com.eviware.soapui.ui.TabbedSoapUIDesktop.showDesktopPanel(SourceFile:214)
at com.eviware.soapui.support.UISupport.showDesktopPanel(UISupport.java:590)
at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:578)
at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:53)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:89)
at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:107)
at com.eviware.soapui.ui.Navigator$TreeMouseListener$1.run(Navigator.java:408)
at java.awt.event.InvocationEvent.dispatch(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.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)

1 Reply

  • Hiya

    ok tracked the reason down

    I had a cloned test case which was disabled, the test case contained an assertion test step with grouped assertions

    the cloned version does not have reference to the request message for any of the assertions that are grouped, the base level assertions were ok or at least appeared to be

    the issue that then follows is that the actual assertions could not be configured to use the appropriate request (config box pops up allowing selection but cannot then save the change) and the assertion test step could not be deleted, had to revert back to an older backup xml project file that didnt contain the cloned test case and redo a chunk of work

    without the cloned assertion step with 'DELETED' source references for the assertions all appears well in the world once more