Forum Discussion

Peter_Liljenber's avatar
Peter_Liljenber
Occasional Contributor
16 years ago

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)

5 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Peter,

    thanks for the report, I'll check it out.. this should be fixed in next nightly-build..

    regards!

    /Ole
    eviware.com
  • Peter_Liljenber's avatar
    Peter_Liljenber
    Occasional Contributor
    Great.

    I'm guessing that the error originates from here:

    protected AbstractHttpRequest( T config, AbstractHttpOperation parent, String icon, boolean forLoadTest )
      {
          super( config, parent, icon );

          if( !forLoadTest && !UISupport.isHeadless() )
          {
    -->probably not run at all?
            iconAnimator = initIconAnimator();
    -->
            addSubmitListener( iconAnimator );
          }

          initAttachments();

          dumpFile = new SettingPathPropertySupport( this, DUMP_FILE );
      }
  • Chris_Osthaus's avatar
    Chris_Osthaus
    Occasional Contributor
    I think I have run into a similar issue...trying to run my tests on a Solaris machine via ant, and they will only run if the DISPLAY is set to my local laptop.  On Windows there is no such issue.

    I will wait for the next build...