Closed asm0dey closed 6 years ago
I have the same issue when migrating our app from Java 8 to 9.
java.lang.IllegalStateException: Can't read class: package.ProductResources
at org.jooby.internal.RouteMetadata.extractMetadata(RouteMetadata.java:273)
at com.google.common.cache.CacheLoader$FunctionToCacheLoader.load(CacheLoader.java:146)
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)
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 org.jooby.internal.RouteMetadata.lambda$md$0(RouteMetadata.java:259)
at org.jooby.funzy.Throwing.fn(Throwing.java:2423)
at org.jooby.funzy.Throwing.access$400(Throwing.java:39)
at org.jooby.funzy.Throwing$Supplier.get(Throwing.java:145)
at org.jooby.funzy.Try.apply(Try.java:691)
at org.jooby.internal.RouteMetadata.md(RouteMetadata.java:259)
at org.jooby.internal.RouteMetadata.startAt(RouteMetadata.java:254)
at org.jooby.internal.mvc.MvcRoutes.lambda$routes$2(MvcRoutes.java:287)
at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.base/java.util.TimSort.sort(TimSort.java:220)
at java.base/java.util.Arrays.sort(Arrays.java:1514)
at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:430)
at org.jooby.internal.mvc.MvcRoutes.routes(MvcRoutes.java:291)
at org.jooby.Jooby.lambda$normalize$39(Jooby.java:2726)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1380)
at org.jooby.Jooby.normalize(Jooby.java:2716)
at org.jooby.Jooby.bootstrap(Jooby.java:2783)
at org.jooby.Jooby.start(Jooby.java:2182)
at org.jooby.Jooby.start(Jooby.java:2163)
at org.jooby.Jooby.run(Jooby.java:2094)
at de.avat.pilot.Selene.main(Selene.java:477)
Caused by: java.lang.IllegalArgumentException
at org.jooby.internal.asm.ClassReader.
On simple class like this:
I'm getting exception with following stacktrace: