java.lang.NoSuchMethodError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Importing a new grails 2.3 plugin will throw an error: {code} | Error java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object; | Error at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | Error at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | Error at java.lang.Class.newInstance0(Class.java:357) | Error at java.lang.Class.newInstance(Class.java:310) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) | Error at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1258) | Error at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1205) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1101) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1059) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1039) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) | Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Error at java.lang.reflect.Method.invoke(Method.java:597) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) {code}
    via by Sergio Michels,
  • Importing a new grails 2.3 plugin will throw an error: {code} | Error java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object; | Error at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | Error at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | Error at java.lang.Class.newInstance0(Class.java:357) | Error at java.lang.Class.newInstance(Class.java:310) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) | Error at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1258) | Error at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1205) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1101) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1059) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1039) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) | Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Error at java.lang.reflect.Method.invoke(Method.java:597) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) {code}
    via by Sergio Michels,
  • This error has been observed occasionally executing grails commands from GGTS with Grails 2.3.0. E.g: https://build.springsource.com/browse/STS-GRAILSIDETESTGRAILSBUILDSNAP-JOB1-78/test/case/107416851 That test fails ostensibly with an NPE, but this NPE is most likely caused by a previous error (found in the log). GGTS user would see this error in the Eclipse console where Grails command output is shown. {noformat} Loading Grails 2.3.0 | Error java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object; | Error at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | Error at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | Error at java.lang.Class.newInstance0(Class.java:355) | Error at java.lang.Class.newInstance(Class.java:308) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) | Error at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1268) | Error at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1208) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1104) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1076) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1062) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1042) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) | Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Error at java.lang.reflect.Method.invoke(Method.java:597) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) {noformat}
    via by Kris De Volder (c),
  • This error has been observed occasionally executing grails commands from GGTS with Grails 2.3.0. E.g: https://build.springsource.com/browse/STS-GRAILSIDETESTGRAILSBUILDSNAP-JOB1-78/test/case/107416851 That test fails ostensibly with an NPE, but this NPE is most likely caused by a previous error (found in the log). GGTS user would see this error in the Eclipse console where Grails command output is shown. {noformat} Loading Grails 2.3.0 | Error java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object; | Error at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | Error at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | Error at java.lang.Class.newInstance0(Class.java:355) | Error at java.lang.Class.newInstance(Class.java:308) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68) | Error at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) | Error at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1268) | Error at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1208) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1104) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1076) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1062) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1042) | Error at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123) | Error at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) | Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) | Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Error at java.lang.reflect.Method.invoke(Method.java:597) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) | Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) {noformat}
    via by Kris De Volder (c),
    • java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object; at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:310) at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68) at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1258) at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1205) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1101) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1059) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1039) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) at org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123) at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153) at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) 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.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263)
    No Bugmate found.