Peter_Liljenber
16 years agoOccasional Contributor
Nullpointer when running testrunner on solaris console
I'm trying to run the testrunner.sh script from a solaris console.
I pass in a test.xml file containing my testcases. I can see that the tests are run, the server is responding correctly, but when the response comes back I get a NullPointerException(Stacktrace below).
Running the same test on my Windows machine (in cygwin/bash so I run the .sh script there as well, unmodified) is working just fine.
So I'm guessing that it has something to do with running java in headless mode on a remote console without a display.
I tried to set the headless mode using:
-Djava.awt.headless=true
But I get the same error.
Stacktrace:
10:47:31,069 ERROR [WsdlTestCaseRunner] Exception during TestCase Execution
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.getIcon(WsdlTestRequest.java:283)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest$PropertyChangeNotifier.(WsdlTestRequest.java:179)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.assertResponse(WsdlTestRequest.java:158)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.setResponse(WsdlTestRequest.java:152)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:322)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:256)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:175)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.start(WsdlTestCaseRunner.java:79)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:535)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:49)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:496)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runSuite(SoapUITestCaseRunner.java:454)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:331)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:122)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:74)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:95)
I pass in a test.xml file containing my testcases. I can see that the tests are run, the server is responding correctly, but when the response comes back I get a NullPointerException(Stacktrace below).
Running the same test on my Windows machine (in cygwin/bash so I run the .sh script there as well, unmodified) is working just fine.
So I'm guessing that it has something to do with running java in headless mode on a remote console without a display.
I tried to set the headless mode using:
-Djava.awt.headless=true
But I get the same error.
Stacktrace:
10:47:31,069 ERROR [WsdlTestCaseRunner] Exception during TestCase Execution
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.getIcon(WsdlTestRequest.java:283)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest$PropertyChangeNotifier.
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.assertResponse(WsdlTestRequest.java:158)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest.setResponse(WsdlTestRequest.java:152)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:322)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:256)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:175)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.start(WsdlTestCaseRunner.java:79)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:535)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:49)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:496)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runSuite(SoapUITestCaseRunner.java:454)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:331)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:122)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:74)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:95)