bug: exception when calling groovyUtilsPro.getGroovySql('<db name>')
Status:
New Idea
Submitted by
tuchka6215
on
06-18-2021
11:30 AM
I get exception when calling def sql = groovyUtilsPro.getGroovySql('<db name>'):
java.lang.indexOutOfBoundsException: No group 5
error at line: 5
WORKAROUND:
def sql = Sql.newInstance(groovyUtilsPro.getJdbcConnection('<db name>').getMetaData().getURL())
CODE LISTING:
import groovy.sql.Sql
import com.eviware.soapui.support.GroovyUtilsPro
def groovyUtilsPro = new GroovyUtilsPro(context)
def sql = groovyUtilsPro.getGroovySql('<db name>')
DETAILS:
DB is MySql, same works for other Oracle DB configured in the project, so it may be connector bug
tried mysql-connector-java-8.0.24 and .23, both produce same exception
See more ideas labeled with:
1 Comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.