Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi!
can you add a catch clause to your try statement and print the exception to the console? I suspect the Sql.newInstance(...) call fails which is why the sql variable is undefined in the finally clause.
This is probably because of classloading; have you added the jdbc driver to the loadui\ext folder? Also, when using the Sql classes like this you need to call
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( driverClassName )
before trying to create the sql variable.
Does his help?
regards!
/Ole
eviware.com
can you add a catch clause to your try statement and print the exception to the console? I suspect the Sql.newInstance(...) call fails which is why the sql variable is undefined in the finally clause.
This is probably because of classloading; have you added the jdbc driver to the loadui\ext folder? Also, when using the Sql classes like this you need to call
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( driverClassName )
before trying to create the sql variable.
Does his help?
regards!
/Ole
eviware.com