deeplearning4j: Java 10 problem with UIServer due to Play
Got bitten by something like this today - this issue discusses the problem: https://github.com/jhalterman/typetools/issues/34
It looked like this for me:
java.lang.NoClassDefFoundError: sun/reflect/ConstantPool
at net.jodah.typetools.TypeResolver.populateLambdaArgs(TypeResolver.java:308)
at net.jodah.typetools.TypeResolver.getTypeVariableMap(TypeResolver.java:254)
at net.jodah.typetools.TypeResolver.resolveRawArguments(TypeResolver.java:162)
at play.routing.RoutingDsl.with(RoutingDsl.java:182)
at play.routing.RoutingDsl.access$000(RoutingDsl.java:66)
at play.routing.RoutingDsl$PathPatternMatcher.build(RoutingDsl.java:362)
at play.routing.RoutingDsl$PathPatternMatcher.routeTo(RoutingDsl.java:298)
at org.deeplearning4j.ui.play.PlayUIServer.runMain(PlayUIServer.java:131)
at org.deeplearning4j.ui.api.UIServer.getInstance(UIServer.java:27)
at MyStuff.runNetwork(MyStuff.groovy:1035)
...
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:574)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:621)
at com.stolsvik.machinelearning.tools.ExploratoryGroovyLooper$_loop_closure1.doCall(ExploratoryGroovyLooper.groovy:180)
at com.stolsvik.machinelearning.tools.ExploratoryGroovyLooper$_loop_closure1.call(ExploratoryGroovyLooper.groovy)
at groovy.lang.Closure.run(Closure.java:499)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: sun.reflect.ConstantPool
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:179)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:151)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 22 more
Aha! Link: https://skymindai.aha.io/features/DL4J-89
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (9 by maintainers)
@saudet, done: https://github.com/deeplearning4j/deeplearning4j/pull/6819
@saudet, I was able to launch org.deeplearning4j.examples.convolution.Cifar example with override under Java 11, but I did not test override with entire library. Let’s review and merge this: https://github.com/deeplearning4j/dl4j-examples/pull/785, then I will switch to override.