nosuchmethoderror:com.google.common.collect.mapmaker.makecomputingmap

wkftcu5l  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(633)

大气正在抛出此错误: NoSuchMethodError: com.google.common.collect.MapMaker.makeComputingMap 使用版本2.6.4

  1. <dependency>
  2. <groupId>org.atmosphere</groupId>
  3. <artifactId>atmosphere-runtime</artifactId>
  4. <version>${atmosphere-version}</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.atmosphere</groupId>
  8. <artifactId>atmosphere-annotations</artifactId>
  9. <version>${atmosphere-version}</version>
  10. </dependency>
  11. <dependency>
  12. <groupId>org.atmosphere</groupId>
  13. <artifactId>atmosphere-guice</artifactId>
  14. <version>${atmosphere-version}</version>
  15. </dependency>
  16. <dependency>
  17. <groupId>org.atmosphere</groupId>
  18. <artifactId>atmosphere-jersey</artifactId>
  19. <version>${atmosphere-version}</version>
  20. </dependency>

使用Guava 29.0-jre 和guice 4.2.3 在类路径中
下面是完整的堆栈跟踪:

  1. Caused by: java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap;
  2. at com.google.inject.internal.FailableCache.<init> (FailableCache.java:32)
  3. at com.google.inject.internal.ConstructorInjectorStore$1.<init> (ConstructorInjectorStore.java:33)
  4. at com.google.inject.internal.ConstructorInjectorStore.<init> (ConstructorInjectorStore.java:32)
  5. at com.google.inject.internal.InjectorImpl.<init> (InjectorImpl.java:922)
  6. at com.google.inject.internal.InjectorShell$Builder.build (InjectorShell.java:143)
  7. at com.google.inject.internal.InternalInjectorCreator.build (InternalInjectorCreator.java:104)
  8. at com.google.inject.Guice.createInjector (Guice.java:94)
  9. at com.google.inject.Guice.createInjector (Guice.java:71)
  10. at com.google.inject.Guice.createInjector (Guice.java:61)
  11. at org.atmosphere.guice.GuiceObjectFactory.initInjector (GuiceObjectFactory.java:97)
  12. at org.atmosphere.guice.GuiceObjectFactory.newClassInstance (GuiceObjectFactory.java:68)
  13. at org.atmosphere.guice.GuiceObjectFactory.configure (GuiceObjectFactory.java:59)
  14. at org.atmosphere.cpr.AtmosphereFramework.lookupDefaultObjectFactoryType (AtmosphereFramework.java:1695)
  15. at org.atmosphere.cpr.AtmosphereFramework.init (AtmosphereFramework.java:875)
  16. at org.atmosphere.cpr.AtmosphereFramework.init (AtmosphereFramework.java:833)
  17. at org.atmosphere.cpr.AtmosphereFrameworkInitializer.configureFramework (AtmosphereFrameworkInitializer.java:76)
  18. at org.atmosphere.cpr.AtmosphereServlet.configureFramework (AtmosphereServlet.java:83)
  19. at org.atmosphere.cpr.AtmosphereServlet.configureFramework (AtmosphereServlet.java:79)
  20. at org.atmosphere.cpr.AtmosphereServlet.init (AtmosphereServlet.java:74)
  21. at org.eclipse.jetty.servlet.ServletHolder.initServlet (ServletHolder.java:670)

哪个guava/guice版本可以解决这个问题?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题