Forum Discussion

RJanecek's avatar
RJanecek
Regular Contributor
14 years ago

exception in groovy script

Hi sometimes when I working with databases in groovy script I got this exception:

08:59:44,256 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.RuntimeException: listener must not be null
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.addTestRunListener(WsdlTestCase.java:638)
at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuiteDesktopPanel.beforeRun(SourceFile:114)
at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel$InternalTestSuiteRunListener.beforeRun(WsdlTestSuiteDesktopPanel.java:513)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.notifyBeforeRun(WsdlTestSuiteRunner.java:215)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:92)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:42)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
  • Hi,

    Thank you for reporting this. We will add it to our bugs list to be fixed.
    Can you please provide more details , like is some particular script causing it?

    Regards,
    Dragica
    /SmartBear Sweden
  • RJanecek's avatar
    RJanecek
    Regular Contributor
    hm this exception dont cause any script as you can see in printStackTrace. When I run scripts one by one it works but when I run testCase then this exceptation is thrown

    and in first script I just connect to database:

    def sql = Sql.newInstance( context.expand( '${#Project#database}' ), context.expand( '${#Project#user}' ), context.expand( '${#Project#pass}' ), "oracle.jdbc.driver.OracleDriver" )
  • Thank you!

    We have issue for tracking this fix (SOAPUI-3147),
    and we will comment to this thread, once we have resolved it.

    Regards,
    Vladimir
    SmartBear Software
  • jalveblad's avatar
    jalveblad
    Occasional Contributor
    I'm also running into this problem.
    Sometimes my soapUI stop being able to run test suites and I find the "listener must not be null" exception in the cmd-window. Any news on a fix for this?

    I'm running SoapUI 4.5.1 32-bit on windows 7
  • jalveblad wrote:
    I'm also running into this problem.
    Sometimes my soapUI stop being able to run test suites and I find the "listener must not be null" exception in the cmd-window. Any news on a fix for this?

    I'm running SoapUI 4.5.1 32-bit on windows 7

    Hi!

    Sorry, no news on this issue.

    Regards

    Henrik O
    SmartBear