java.lang.NoSuchMethodError: org.codehaus.groovy.ast.ModuleNode.getStaticImportClasses()Ljava/util/Map


(Manoj Herkar) #1

Hi, I am trying to build BigBlueButton Application. while building i am getting below exception. Total time: 1.179 secs

FAILURE: Build aborted because of an internal error.

  • What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org.

  • Try: Run with -d option to get additional debug info.

  • Exception is: java.lang.NoSuchMethodError: org.codehaus.groovy.ast.ModuleNode.getStaticImportClasses()Ljava/util/Map;

at org.gradle.api.internal.artifacts.dsl.ClasspathScriptTransformer.call(ClasspathScriptTransformer.java:64)

at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:843)

at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)

at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:524)

at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:501)

at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)

at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287)

at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)

at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:214)

at org.gradle.groovy.scripts.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:117)

at org.gradle.groovy.scripts.DefaultScriptCompilationHandler.writeToCache(DefaultScriptCompilationHandler.java:74)

at org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.loadViaCache(DefaultScriptCompilerFactory.java:95)

at org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.compile(DefaultScriptCompilerFactory.java:68)

at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:42)

at org.gradle.configuration.DefaultProjectEvaluator.evaluate(DefaultProjectEvaluator.java:35)

at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:521)

at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:54)

at org.gradle.api.internal.project.ProjectInternal$evaluate.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)

at org.gradle.configuration.BuildConfigurer$_closure1.doCall(BuildConfigurer.groovy:41)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)

at groovy.lang.Closure.call(Closure.java:412)

at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:51)

at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:82)

at $Proxy9.execute(Unknown Source)

at org.gradle.api.internal.project.AbstractProject.applyActions(AbstractProject.java:491)

at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:486)

at org.gradle.api.Project$allprojects.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

at org.gradle.configuration.BuildConfigurer.process(BuildConfigurer.groovy:48)

at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:147)

at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:124)

at org.gradle.GradleLauncher.run(GradleLauncher.java:95)

at org.gradle.Main.execute(Main.java:100)

at org.gradle.Main.main(Main.java:43)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.gradle.BootstrapMain.main(BootstrapMain.java:50)

BUILD FAILED


(Benjamin Muschko) #2

Would you mind posting your build script or point us the repository if available on the web? It’s hard to say what’s happening in your build without this information.


(Manoj Herkar) #3

Hi Benjamin,

Thanks for the response. issue was resolved by adding groovy-1.6.4.jar in gradle lib. previously it was 1.8.*.jar

Thanks, Manoj


(Benjamin Muschko) #4

Instead of replacing the JAR file in the Gradle distribution I’d recommend declaring Groovy as dependency in your build script:

compile 'org.codehaus.groovy:groovy:1.6.4'

(Manoj Herkar) #5

Thanks. i will follow the advise.

Manoj