M_McDonald
15 years agoSuper Contributor
[RESOLVED]Error with property expansion in JDBC connection
I am using a dialog to collect a database username and password at the time a project opens, then using property expansions for the user and password properties in the JDBC connection (see screenshot.)
When I test the connection from the Database Configuration wizard, the connection works, but when I execute a JDBC Request step using the connection, I get the following error:
UPDATE: Perhaps this is a scope issue - maybe the wizard has direct access to the 'project' variable, but this needs to be accessed differently when actually in the request step?
When I test the connection from the Database Configuration wizard, the connection works, but when I execute a JDBC Request step using the connection, I get the following error:
Mon Mar 01 10:08:53 EST 2010:ERROR:java.lang.IllegalArgumentException: Illegal group reference
java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceFirst(Unknown Source)
at java.lang.String.replaceFirst(Unknown Source)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.getDatabaseConnection(JdbcSubmit.java:244)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.prepare(JdbcSubmit.java:306)
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 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)
UPDATE: Perhaps this is a scope issue - maybe the wizard has direct access to the 'project' variable, but this needs to be accessed differently when actually in the request step?