java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;

SpringSource Issue Tracker | Klemens Muthmann | 3 years ago
  1. 0

    I get the following stacktrace upon importing a Grails project to Eclipse with GGTS. Loading Grails 2.3.4 Error | java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet; Error | at com.google.inject.internal.InstanceBindingImpl.<init>(InstanceBindingImpl.java:51) Error | at com.google.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:95) Error | at com.google.inject.internal.InjectorShell$RootModule.configure(InjectorShell.java:329) Error | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229) Error | at com.google.inject.spi.Elements.getElements(Elements.java:103) Error | at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136) Error | at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) Error | at com.google.inject.Guice.createInjector(Guice.java:94) Error | at com.google.inject.Guice.createInjector(Guice.java:71) Error | at com.google.inject.Guice.createInjector(Guice.java:61) Error | at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:477) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:203) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:167) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:161) Error | at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:158) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) Error | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) Error | at java.lang.reflect.Constructor.newInstance(Constructor.java:526) Error | at java.lang.Class.newInstance(Class.java:374) Error | at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:75) Error | at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) Error | at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1279) Error | at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1219) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1115) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1087) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) Error | at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1053) 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:57) Error | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Error | at java.lang.reflect.Method.invoke(Method.java:606) Error | at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236) Error | at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)

    SpringSource Issue Tracker | 3 years ago | Klemens Muthmann
    java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
  2. 0

    I get the following stacktrace upon importing a Grails project to Eclipse with GGTS. Loading Grails 2.3.4 Error | java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet; Error | at com.google.inject.internal.InstanceBindingImpl.<init>(InstanceBindingImpl.java:51) Error | at com.google.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:95) Error | at com.google.inject.internal.InjectorShell$RootModule.configure(InjectorShell.java:329) Error | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229) Error | at com.google.inject.spi.Elements.getElements(Elements.java:103) Error | at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136) Error | at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) Error | at com.google.inject.Guice.createInjector(Guice.java:94) Error | at com.google.inject.Guice.createInjector(Guice.java:71) Error | at com.google.inject.Guice.createInjector(Guice.java:61) Error | at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:477) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:203) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:167) Error | at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:161) Error | at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:158) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) Error | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) Error | at java.lang.reflect.Constructor.newInstance(Constructor.java:526) Error | at java.lang.Class.newInstance(Class.java:374) Error | at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:75) Error | at org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48) Error | at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1279) Error | at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1219) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1115) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1087) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy) Error | at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source) Error | at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1053) 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:57) Error | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Error | at java.lang.reflect.Method.invoke(Method.java:606) Error | at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236) Error | at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)

    SpringSource Issue Tracker | 3 years ago | Klemens Muthmann
    java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
  3. 0

    Maven 3.0.4 NoSuchMethod: ... java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(..)

    Stack Overflow | 4 years ago | jordan.baucke
    java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven 3.0.4 NoSuchMethod: … java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(..)

    programask.com | 12 months ago
    java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
  6. 0

    Maven 3.0.4 NoSuchMethod: … java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(..) - scriptscoop.com

    scriptscoop.com | 1 year ago
    java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;

    3 unregistered visitors
    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

      com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;

      at com.google.inject.internal.InstanceBindingImpl.<init>()
    2. Google Guice - Core Library
      Guice.createInjector
      1. com.google.inject.internal.InstanceBindingImpl.<init>(InstanceBindingImpl.java:51)
      2. com.google.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:95)
      3. com.google.inject.internal.InjectorShell$RootModule.configure(InjectorShell.java:329)
      4. com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
      5. com.google.inject.spi.Elements.getElements(Elements.java:103)
      6. com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      7. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      8. com.google.inject.Guice.createInjector(Guice.java:94)
      9. com.google.inject.Guice.createInjector(Guice.java:71)
      10. com.google.inject.Guice.createInjector(Guice.java:61)
      10 frames
    3. Plexus
      DefaultPlexusContainer.<init>
      1. org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:477)
      2. org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:203)
      3. org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:167)
      4. org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:161)
      4 frames
    4. org.codehaus.groovy
      AetherDependencyManager.<init>
      1. org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.<init>(AetherDependencyManager.groovy:158)
      1 frame
    5. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:374)
      5 frames
    6. org.codehaus.groovy
      DependencyManagerConfigurer.configureAether
      1. org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.loadAetherDependencyManager(DependencyManagerConfigurer.groovy:75)
      2. org.codehaus.groovy.grails.resolve.DependencyManagerConfigurer.configureAether(DependencyManagerConfigurer.groovy:48)
      2 frames
    7. Grails
      BuildSettings.loadConfig
      1. grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1279)
      2. grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1219)
      3. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1115)
      4. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1087)
      5. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      6. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1073)
      7. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      8. grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source)
      9. grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1053)
      10. grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
      10 frames
    8. 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
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    10. org.codehaus.groovy
      GrailsStarter.main
      1. org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236)
      2. org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)
      2 frames