java.lang.NoSuchMethodError: org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String;

SpringSource Issue Tracker | Vishwajeet Pandey | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I don't how this has come up. I've been using STS since pretty more than 3 months for now. But today when I exited the workbench & returned back & started STS, it comes up with a series of errors (failing for nearly all usual operations: Initializing Java Tooling, Refreshing DSLD Scripts etc, Add DSL Support, Updating project dependencies, Compute launch button tooltip...) all due to only one reason: {quote} An internal error occurred during: "<operation>" org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; {quote} Sometimes same error is repeated with little different message: {quote} An error has occurred. See error log for more details. org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; {quote} This happens whenever I open any Grails project or start STS with a Grails project open. This is the error I see in the .log file: {quote} !SESSION 2012-04-20 17:34:59.402 ----------------------------------------------- eclipse.buildId=2.9.1.201203221000-RELEASE java.version=1.6.0_27 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide This is a continuation of log file E:\Eclipse Workspaces\TPI\.metadata\.bak_7.log Created Time: 2012-04-20 17:38:06.293 !ENTRY org.eclipse.ui.navigator 4 2 2012-04-20 17:38:06.293 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.navigator". !STACK 0 java.lang.NoSuchMethodError: org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; at com.springsource.sts.grails.commands.GroovyCompilerVersionCheck.check(GroovyCompilerVersionCheck.java:97) at com.springsource.sts.grails.core.internal.classpath.GrailsClasspathContainerInitializer.initialize(GrailsClasspathContainerInitializer.java:28) at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2848) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1877) at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2811) at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2695) at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2859) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1964) at org.eclipse.jdt.internal.core.JavaModelManager.determineIfOnClasspath(JavaModelManager.java:1011) at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:897) at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:838) at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:2696) at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.convertToJavaElements(JavaNavigatorContentProvider.java:255) at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.interceptRefresh(JavaNavigatorContentProvider.java:314) at org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.interceptRefresh(SafeDelegateTreeContentProvider.java:247) at org.eclipse.ui.internal.navigator.NavigatorPipelineService$3.run(NavigatorPipelineService.java:188) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptRefresh(NavigatorPipelineService.java:184) at org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptRefresh(NavigatorPipelineService.java:167) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:342) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:510) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$3.run(ResourceExtensionContentProvider.java:294) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.runUpdates(ResourceExtensionContentProvider.java:306) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.access$1(ResourceExtensionContentProvider.java:303) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$1.run(ResourceExtensionContentProvider.java:129) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) ... {quote} and then the same is repeated for nearly all the plugins used by the projects. I reinstalled the whole Groovy Compiler but no luck! I take STS updates almost daily. Can you guys please look into this? All of my work is hanged because of this! -- Configuration Details -- Product: SpringSource Tool Suite 3.0.0.201204180739-SNAPSHOT (com.springsource.sts.ide) Installed Features: com.springsource.sts 3.0.0.201204180739-SNAPSHOT

    SpringSource Issue Tracker | 5 years ago | Vishwajeet Pandey
    java.lang.NoSuchMethodError: org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String;
  2. 0

    I don't how this has come up. I've been using STS since pretty more than 3 months for now. But today when I exited the workbench & returned back & started STS, it comes up with a series of errors (failing for nearly all usual operations: Initializing Java Tooling, Refreshing DSLD Scripts etc, Add DSL Support, Updating project dependencies, Compute launch button tooltip...) all due to only one reason: {quote} An internal error occurred during: "<operation>" org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; {quote} Sometimes same error is repeated with little different message: {quote} An error has occurred. See error log for more details. org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; {quote} This happens whenever I open any Grails project or start STS with a Grails project open. This is the error I see in the .log file: {quote} !SESSION 2012-04-20 17:34:59.402 ----------------------------------------------- eclipse.buildId=2.9.1.201203221000-RELEASE java.version=1.6.0_27 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide This is a continuation of log file E:\Eclipse Workspaces\TPI\.metadata\.bak_7.log Created Time: 2012-04-20 17:38:06.293 !ENTRY org.eclipse.ui.navigator 4 2 2012-04-20 17:38:06.293 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.navigator". !STACK 0 java.lang.NoSuchMethodError: org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String; at com.springsource.sts.grails.commands.GroovyCompilerVersionCheck.check(GroovyCompilerVersionCheck.java:97) at com.springsource.sts.grails.core.internal.classpath.GrailsClasspathContainerInitializer.initialize(GrailsClasspathContainerInitializer.java:28) at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2848) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1877) at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2811) at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2695) at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2859) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1964) at org.eclipse.jdt.internal.core.JavaModelManager.determineIfOnClasspath(JavaModelManager.java:1011) at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:897) at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:838) at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:2696) at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.convertToJavaElements(JavaNavigatorContentProvider.java:255) at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.interceptRefresh(JavaNavigatorContentProvider.java:314) at org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.interceptRefresh(SafeDelegateTreeContentProvider.java:247) at org.eclipse.ui.internal.navigator.NavigatorPipelineService$3.run(NavigatorPipelineService.java:188) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptRefresh(NavigatorPipelineService.java:184) at org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptRefresh(NavigatorPipelineService.java:167) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:342) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:510) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$3.run(ResourceExtensionContentProvider.java:294) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.runUpdates(ResourceExtensionContentProvider.java:306) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.access$1(ResourceExtensionContentProvider.java:303) at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$1.run(ResourceExtensionContentProvider.java:129) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) ... {quote} and then the same is repeated for nearly all the plugins used by the projects. I reinstalled the whole Groovy Compiler but no luck! I take STS updates almost daily. Can you guys please look into this? All of my work is hanged because of this! -- Configuration Details -- Product: SpringSource Tool Suite 3.0.0.201204180739-SNAPSHOT (com.springsource.sts.ide) Installed Features: com.springsource.sts 3.0.0.201204180739-SNAPSHOT

    SpringSource Issue Tracker | 5 years ago | Vishwajeet Pandey
    java.lang.NoSuchMethodError: org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.codehaus.groovy.eclipse.core.compiler.CompilerUtils.getGroovyVersion()Ljava/lang/String;

      at com.springsource.sts.grails.commands.GroovyCompilerVersionCheck.check()
    2. com.springsource.sts
      GrailsClasspathContainerInitializer.initialize
      1. com.springsource.sts.grails.commands.GroovyCompilerVersionCheck.check(GroovyCompilerVersionCheck.java:97)
      2. com.springsource.sts.grails.core.internal.classpath.GrailsClasspathContainerInitializer.initialize(GrailsClasspathContainerInitializer.java:28)
      2 frames
    3. JDT Core
      JavaCore.create
      1. org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2848)
      2. org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1877)
      3. org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2811)
      4. org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2695)
      5. org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2859)
      6. org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1964)
      7. org.eclipse.jdt.internal.core.JavaModelManager.determineIfOnClasspath(JavaModelManager.java:1011)
      8. org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:897)
      9. org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:838)
      10. org.eclipse.jdt.core.JavaCore.create(JavaCore.java:2696)
      10 frames
    4. Java Development Tools UI
      JavaNavigatorContentProvider.interceptRefresh
      1. org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.convertToJavaElements(JavaNavigatorContentProvider.java:255)
      2. org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.interceptRefresh(JavaNavigatorContentProvider.java:314)
      2 frames
    5. Common Navigator View
      NavigatorPipelineService$3.run
      1. org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.interceptRefresh(SafeDelegateTreeContentProvider.java:247)
      2. org.eclipse.ui.internal.navigator.NavigatorPipelineService$3.run(NavigatorPipelineService.java:188)
      2 frames
    6. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    7. Common Navigator View
      CommonViewer.refresh
      1. org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptRefresh(NavigatorPipelineService.java:184)
      2. org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptRefresh(NavigatorPipelineService.java:167)
      3. org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:342)
      4. org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:510)
      4 frames
    8. Navigator Workbench Components
      ResourceExtensionContentProvider$1.run
      1. org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$3.run(ResourceExtensionContentProvider.java:294)
      2. org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.runUpdates(ResourceExtensionContentProvider.java:306)
      3. org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.access$1(ResourceExtensionContentProvider.java:303)
      4. org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$1.run(ResourceExtensionContentProvider.java:129)
      4 frames
    9. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
      4 frames
    10. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      4 frames
    11. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    12. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      1 frame
    13. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    14. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      1 frame
    15. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    16. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    18. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      4 frames