Forum Discussion

cshaw's avatar
cshaw
New Contributor
16 years ago

NullPointerException using JDBC Request Test Step in Final 3.5 release

The final release for 3.5 reports a NullPointerException for a JDBC Request using oracle.jdbc.driver.OracleDriver and a connection string of the form jdbc:oracle:thin:/@:1521/.  Here is the stacktrace:

2010-03-02 14:46:03,856 ERROR [errorlog] java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.getDatabaseConnection(JdbcSubmit.java:237)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.prepare(JdbcSubmit.java:308)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.runQuery(JdbcSubmit.java:197)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.run(JdbcSubmit.java:162)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.(JdbcSubmit.java:76)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcRequest.submit(JdbcRequest.java:134)
at com.eviware.soapui.impl.wsdl.teststeps.JdbcRequestTestStep.run(JdbcRequestTestStep.java:178)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:194)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:125)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:138)
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)

This was working in version 3.5 beta 2 (both Pro and Standard). This line of code was added between beta and final in JdbcSubmit.getDatabaseConnection():

pass = PropertyExpander.expandProperties( context, testStep.getPassword() ).trim();

6 Replies

  • Hi!

    bugger.. thanks for pointing this out.. fixed in upcoming nightly build.

    regards,

    /Ole
    eviware.com
  • Hi again,

    you could try adding an " " password to the JDBC Connection configuration, does that help?

    regards!

    /Ole
    eviware.com
  • cshaw's avatar
    cshaw
    New Contributor
    I'm fairly new to soapUI, so I qualify my response with "I could be wrong...", but it does not appear that the standard version of 3.5 allows one to specify a password as part of the JDBC configuration for the JDBC Test Step. I see that the Pro allows this, but don't see how to do this in the standard version (other than programmatically).
  • cshaw's avatar
    cshaw
    New Contributor
    Thanks for your replies Ole.  I haven't yet tried the nightly build. I may give that a try in the next couple of days.

    chris
  • Tested with recommended nightly build, it seems to be working now. Thanks for the replies.
    Just a heads up, the installation version of the nightly build doesn't seem to be working for windows. Currently under Windows XP. Installator gives an unexpected error, so I had to use the soapui-3.5-windows-bin.zip instead.