Skip to content

Instantly share code, notes, and snippets.

@mkurz
Created December 14, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkurz/19aa22520bad94c3542bd17d0e504f9b to your computer and use it in GitHub Desktop.
Save mkurz/19aa22520bad94c3542bd17d0e504f9b to your computer and use it in GitHub Desktop.
Guice 4.1.0 exception when running with Java 9
Exception in thread "main" com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2218)
at com.google.common.cache.LocalCache.get(LocalCache.java:4147)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4151)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5140)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5146)
at com.google.inject.internal.util.StackTraceElements.forMember(StackTraceElements.java:70)
at com.google.inject.internal.Errors.formatSource(Errors.java:817)
at com.google.inject.internal.Errors.formatSource(Errors.java:796)
at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:849)
at com.google.inject.internal.Errors.formatSource(Errors.java:811)
at com.google.inject.internal.Errors.formatSource(Errors.java:796)
at com.google.inject.internal.Errors.format(Errors.java:590)
at com.google.inject.CreationException.getMessage(CreationException.java:50)
...
Caused by: java.lang.IllegalArgumentException
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source)
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source)
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source)
at com.google.inject.internal.util.LineNumbers.<init>(LineNumbers.java:66)
at com.google.inject.internal.util.StackTraceElements$1.load(StackTraceElements.java:46)
at com.google.inject.internal.util.StackTraceElements$1.load(StackTraceElements.java:43)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3708)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2416)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2299)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2212)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment