Ask a Question

groovy script errors

New Contributor

groovy script errors

running on

MacBook Pro (M1) using Ventura 13.1

Soap UI 5.7.0

JDK version - openjdk version "19.0.1" 2022-10-18


Cannot get any groovy script to work, even a basic on as just this ”soapUI script”


org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script13.groovy: 1: Unexpected input: '”' @ line 1, column 10. ”soapUI script” ^ org.codehaus.groovy.syntax.SyntaxException: Unexpected input: '”' @ line 1, column 10. at org.apache.groovy.parser.antlr4.AstBuilder$1.syntaxError( at groovyjarjarantlr4.v4.runtime.ProxyErrorListener.syntaxError( at groovyjarjarantlr4.v4.runtime.Parser.notifyErrorListeners( at groovyjarjarantlr4.v4.runtime.DefaultErrorStrategy.notifyErrorListeners( at org.apache.groovy.parser.antlr4.internal.DescriptiveErrorStrategy.reportInputMismatch( at org.apache.groovy.parser.antlr4.internal.DescriptiveErrorStrategy.recover( at org.apache.groovy.parser.antlr4.internal.DescriptiveErrorStrategy.recoverInline( at groovyjarjarantlr4.v4.runtime.Parser.match( at org.apache.groovy.parser.antlr4.GroovyParser.compilationUnit( at org.apache.groovy.parser.antlr4.AstBuilder.buildCST( at org.apache.groovy.parser.antlr4.AstBuilder.buildCST( at org.apache.groovy.parser.antlr4.AstBuilder.buildAST( at org.apache.groovy.parser.antlr4.Antlr4ParserPlugin.buildAST( at org.codehaus.groovy.control.SourceUnit.buildAST( at java.base/java.util.Iterator.forEachRemaining( at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining( at java.base/$Head.forEach( at org.codehaus.groovy.control.CompilationUnit.buildASTs( at org.codehaus.groovy.control.CompilationUnit.compile( at groovy.lang.GroovyClassLoader.doParseClass( at groovy.lang.GroovyClassLoader.lambda$parseClass$3( at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute( at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut( at groovy.lang.GroovyClassLoader.parseClass( at groovy.lang.GroovyShell.parseClass( at groovy.lang.GroovyShell.parse( at groovy.lang.GroovyShell.parse( at groovy.lang.GroovyShell.parse( at at at at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( at java.base/java.util.concurrent.ThreadPoolExecutor$ at java.base/ 1 error 

Champion Level 2

Hello @normgean 


Are you copy/pasting that line from the internet or something into a groovy script test step?  I copied and pasted your example into a script and it failed for me too.  If I actually type that line in and run the script, I get an expected result of a log line being displayed. 


If you are actually typing that value into a script, could you have changed fonts or something other than the default provided by SoapUI?  The double quote characters look a little odd to me on a Windows computer and that makes me wonder if there is some alternate character set involved and that is not an actual ASCII double quote.


When I type it in myself and view the hexadecimal representation of what I typed in a separate code editor I get what I expect...   HEX 22 = double quotes character.  Your example for the " character yields a HEX 94 = right double quotation mark.  Maybe SoapUI does not interpret that correctly or it only expects HEX 22 variant of a double quotes character instead of HEX 94.




New Contributor

yes it was a copy & paste issue, thanks for pointing this out and was pretty obvious

Showing results for 
Search instead for 
Did you mean: