StevenC
11 years agoContributor
Compilation errors in external groovy libraries
I just made what should have been a very minor change to an external library and tried to rerun my script and got the following...
The error log shows
My question is not specific to this particular error, I'll figure that out but this type of error is a constant thorn in my side. The error message could not be any less helpful, all I know at this point is there is something causing a compilation failure in the external groovy class, no line number, no mention of what undefined name it can't find nothing whatsoever that I can go on to begin debugging and since I don't have access to another IDE at the moment I am often stuck cutting all of the code out of the class then slowly adding it back in method by method until I find the offending line.
Does anyone know of a way to get more useful information about what the problem is when this happens?
Tue Jun 10 20:48:20 EDT 2014:ERROR:An error occurred [No match found], see error log for details
Tue Jun 10 20:48:20 EDT 2014:ERROR:An error occurred [BUG! exception in phase 'semantic analysis' in source unit 'Script6.groovy' The lookup for com.nuance.clu.qaAutomation.cac.CacTest caused a failed compilaton. There should not have been any compilation from this call.], see error log for details
The error log shows
Tue Jun 10 20:48:20 EDT 2014:ERROR:BUG! exception in phase 'semantic analysis' in source unit 'Script6.groovy' The lookup for com.nuance.clu.qaAutomation.cac.CacTest caused a failed compilaton. There should not have been any compilation from this call.
BUG! exception in phase 'semantic analysis' in source unit 'Script6.groovy' The lookup for com.nuance.clu.qaAutomation.cac.CacTest caused a failed compilaton. There should not have been any compilation from this call.
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:188)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:168)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:124)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:616)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:268)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1140)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:141)
at org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:632)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:523)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613)
at groovy.lang.GroovyShell.parse(GroovyShell.java:625)
at groovy.lang.GroovyShell.parse(GroovyShell.java:652)
at groovy.lang.GroovyShell.parse(GroovyShell.java:643)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:148)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:149)
at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
My question is not specific to this particular error, I'll figure that out but this type of error is a constant thorn in my side. The error message could not be any less helpful, all I know at this point is there is something causing a compilation failure in the external groovy class, no line number, no mention of what undefined name it can't find nothing whatsoever that I can go on to begin debugging and since I don't have access to another IDE at the moment I am often stuck cutting all of the code out of the class then slowly adding it back in method by method until I find the offending line.
Does anyone know of a way to get more useful information about what the problem is when this happens?