tuchka6215
4 years agoNew Contributor
Status:
New Idea
bug: exception when calling groovyUtilsPro.getGroovySql('<db name>')
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