java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;

SpringSource Issue Tracker | Kris De Volder (c) | 3 years ago
  1. 0

    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}

    SpringSource Issue Tracker | 3 years ago | Kris De Volder (c)
    java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;
  2. 0

    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}

    SpringSource Issue Tracker | 3 years ago | Kris De Volder (c)
    java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;
  3. 0

    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}

    SpringSource Issue Tracker | 3 years ago | Sergio Michels
    java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    SpringSource Issue Tracker | 3 years ago | Sergio Michels
    java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;
  6. 0

    Cannot run Arquillian test case on Glassfish

    dolinked.com | 1 year ago
    java.lang.RuntimeException: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.WebArchive com.appdynamics.auth.ControllerLoginModuleTest.createDeployment()

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/Class;)Ljava/lang/Object;

      at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>()
    2. org.codehaus.groovy
      AetherDependencyManager.<init>
      1. org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:137)
      1 frame
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    4. org.codehaus.groovy
      DependencyManagerConfigurer.configureAether
      1. org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:68)
      2. org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48)
      2 frames
    5. Grails
      BuildSettings.loadConfig
      1. grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1268)
      2. grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1208)
      3. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1104)
      4. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1076)
      5. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      6. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1062)
      7. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      8. grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source)
      9. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1042)
      10. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      10 frames
    6. org.grails.ide
      GrailsProcess.main
      1. org.grails.ide.api.impl.GrailsConnectorImpl.ensureInitialized(GrailsConnectorImpl.java:123)
      2. org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:153)
      3. org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130)
      4. org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93)
      4 frames
    7. 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
    8. org.codehaus.groovy
      GrailsStarter.main
      1. org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235)
      2. org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263)
      2 frames