Forum Discussion

LZhang's avatar
LZhang
Frequent Contributor
18 years ago

Got org.codehausgroovy.controlmultipleCompilationErrorsException in SnapShot ver

Hi, Ole:

I got the following error in the newest Snapshot version:

Fri Aug 17 10:49:22 PDT 2007:ERROR:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script2.groovy: 3: unable to resolve class RemoteRecord
@ line 3, column 14.org.codehaus.groovy.syntax.SyntaxException: unable to resolve class RemoteRecord
@ line 3, column 14.
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:86)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:212)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:221)
at org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(ResolveVisitor.java:675)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:538)
at org.codehaus.groovy.control.ResolveVisitor.transformDeclarationExpression(ResolveVisitor.java:741)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:542)
at org.codehaus.groovy.control.ResolveVisitor.visitExpressionStatement(ResolveVisitor.java:839)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:70)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:83)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:102)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:845)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:82)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:181)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:838)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:36)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:787)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:128)
at org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.java:595)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:833)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:480)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:513)
at groovy.lang.GroovyShell.parse(GroovyShell.java:525)
at groovy.lang.GroovyShell.parse(GroovyShell.java:505)
at groovy.lang.GroovyShell.parse(GroovyShell.java:544)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:81)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:52)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:65)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:137)
at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction.actionPerformed(GroovyScriptStepDesktopPanel.java:228)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Script2.groovy: 3: unable to resolve class RemoteRecord
@ line 3, column 19.org.codehaus.groovy.syntax.SyntaxException: unable to resolve class RemoteRecord
@ line 3, column 19.
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:86)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:212)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:221)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:721)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:550)
at org.codehaus.groovy.control.ResolveVisitor.transformDeclarationExpression(ResolveVisitor.java:747)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:542)
at org.codehaus.groovy.control.ResolveVisitor.visitExpressionStatement(ResolveVisitor.java:839)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:70)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:83)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:102)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:845)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:82)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:181)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:838)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:36)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:787)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:128)
at org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.java:595)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:833)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:480)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:513)
at groovy.lang.GroovyShell.parse(GroovyShell.java:525)
at groovy.lang.GroovyShell.parse(GroovyShell.java:505)
at groovy.lang.GroovyShell.parse(GroovyShell.java:544)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:81)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:52)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:65)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:137)
at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction.actionPerformed(GroovyScriptStepDesktopPanel.java:228)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Script2.groovy: 17: unable to resolve class RemoteRecord
@ line 17, column 3.org.codehaus.groovy.syntax.SyntaxException: unable to resolve class RemoteRecord
@ line 17, column 3.
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:86)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:212)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:221)
at org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(ResolveVisitor.java:675)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:538)
at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:728)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:546)
at org.codehaus.groovy.control.ResolveVisitor.visitExpressionStatement(ResolveVisitor.java:839)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:70)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:83)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:102)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:845)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:82)
at org.codehaus.groovy.control.ResolveVisitor.visitIfElse(ResolveVisitor.java:206)
at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:71)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:83)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:102)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:845)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:82)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:181)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:838)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:36)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:787)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:128)
at org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.java:595)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:833)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:480)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:513)
at groovy.lang.GroovyShell.parse(GroovyShell.java:525)
at groovy.lang.GroovyShell.parse(GroovyShell.java:505)
at groovy.lang.GroovyShell.parse(GroovyShell.java:544)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:81)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:52)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:65)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:137)
at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction.actionPerformed(GroovyScriptStepDesktopPanel.java:228)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

3 errors

Those syntax errors didn't occur in the 1.7.5 version but happen in the newest snapshot version (I just installed it today).  The script library is pointing to the right folder in soapUIPro setting.  Is this a bug?

Thanks,
Li
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Li,

    hmm.. just a sanity check: is the Groovy-Script folder correct in the Preferences/soapUI Pro settings tab? Can you see it initializing in the soapUI log upon startup?

    regards!

    /Ole
    eviware.com
  • LZhang's avatar
    LZhang
    Frequent Contributor
    Hi:

    That was the first place I checked.  :-)  It was correctly configured.  Here is what I got from the initializing screen.

    Configuring log4j from [jar:file:/C:/Program%20Files/eviware/soapUI-Pro-SNAPSHOT
    /lib/soapui-SNAPSHOT.jar!/soapui-log4j.xml]
    11:22:01,848 INFO  [SoapUI] initialized soapui-settings from [C:\Program Files\e
    viware\soapUI-Pro-SNAPSHOT\bin\soapui-settings.xml]
    11:22:01,864 INFO  [SoapUIProGroovyScriptEngineFactory] Initializing scripts fol
    der [C:\Workspace\QA\Automation\soapUI_Scripts\Global_Groovy]
    11:22:02,411 ERROR [SoapUI] An error occured [startup failed, C:\Workspace\QA\Au
    tomation\soapUI_Scripts\Global_Groovy\GlobalFunctions.groovy: 5: unable to resol
    ve class org.codehaus.groovy.scriptom.ActiveXProxy
    @ line 5, column 1.
      import org.codehaus.groovy.scriptom.ActiveXProxy
      ^

    1 error
    ], see error log for details
    11:22:02,489 ERROR [SoapUI] An error occured [startup failed, C:\Workspace\QA\Au
    tomation\soapUI_Scripts\Global_Groovy\RemoteRecord.groovy: 6: unable to resolve
    class org.codehaus.groovy.scriptom.ActiveXProxy
    @ line 6, column 1.
      import org.codehaus.groovy.scriptom.ActiveXProxy;
      ^

    1 error
    ], see error log for details
    11:22:04,176 INFO  [WorkspaceImpl] Loading workspace from [C:\Workspace\QA\Autom
    ation\soapUI_Scripts\Phase2.5\Integration_Environment\AccountManagement2.5-works
    pace.xml]
    11:22:04,239 INFO  [WsdlProject] Loaded project from [C:\Workspace\QA\Automation
    \soapUI_Scripts\Phase2.5\Integration_Environment\AccountManagementService-soapui
    -project.xml]
    11:22:04,567 INFO  [WsdlProject] Loaded project from [C:\Workspace\QA\Automation
    \soapUI_Scripts\Phase2.5\Integration_Environment\LookupService-soapui-project.xm
    l]
    11:22:05,083 INFO  [WsdlProject] Loaded project from [C:\Workspace\QA\Automation
    \soapUI_Scripts\Phase2\Integration_Environment\DeviceManagementService.xml]
    11:22:06,098 INFO  [WsdlProject] Loaded project from [C:\Documents and Settings\
    lzhang\My Documents\TVG\SoapUI\UserProfileService_Reorganzied-soapui-project.xml
    ]
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm.. ok.. another sanity check: have you copied the external libraries to the new installations bin/ext folder?

    regards!

    /Ole
    eviware.com
  • LZhang's avatar
    LZhang
    Frequent Contributor
    Hi:

    I was just told by Ali Raza that I needed to copy that folder over too.  So I am good now, and everything is working fine.

    What we need is an installer for TVGuide so we don't have to keep copying folders, files from the older version to the newer version.  Ali is working on it.

    Thanks,
    Li
  • omatzura's avatar
    omatzura
    Super Contributor
    ok great!

    We'll improve the "Import Settings" functionality to also copy this folder and the scripts folder (or point to the old one..)

    regards!

    /Ole
    eviware.com