Ask a Question

bug: exception when calling groovyUtilsPro.getGroovySql('<db name>')

0 Kudos

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

1 Comment
nmrao
Community Hero

@tuchka6215 

Either your question needs to go into the forum here

https://community.smartbear.com/t5/API-Functional-Security-Testing/bd-p/SoapUING_forum

or raise a case with customer support  if not already.

This does not seem to belong here.

Announcements
Welcome to the ReadyAPI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video: