Closed iamneal closed 6 years ago
val scioVersion = "0.5.7"
val beamVersion = "2.5.0"
Scio 0.5.7 depends on Beam 2.6.0, although I'm not sure this is the root cause.
@syodage take a look when you get a chance?
@nevillelyh Thanks for catching that. I will fix that and try again. Though like you, I'm not expecting that to be the root cause.
EDIT: I updated the beam version to 2.6.0 in my build sbt and rebuilt and tried the repl. Unfortunately it is the same error
@iamneal seems like java 9 class loader problem,
Using Scala version 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 9.0.4)
I don't think scio is ready to use with Java 9 yet(@nevillelyh correct me if i am wrong) try with Java 8 and see.
from Java 9
The extension class loader has been renamed; it is now the platform class loader. All classes in the Java SE Platform are guaranteed to be visible through the platform class loader. In addition, the classes in modules that are standardized under the Java Community Process but not part of the Java SE Platform are guaranteed to be visible through the platform class loader.
Just because a class is visible through the platform class loader does not mean the class is actually defined by the platform class loader. Some classes in the Java SE Platform are defined by the platform class loader while others are defined by the bootstrap class loader. Applications should not depend on which class loader defines which platform class.
The changes in JDK 9 may impact code that creates class loaders with null (that is, the bootstrap class loader) as the parent class loader and assumes that all platform classes are visible to the parent. Such code may need to be changed to use the platform class loader as the parent (see ClassLoader.getPlatformClassLoader).
but scio repl class load logic not comply with that https://github.com/spotify/scio/blob/master/scio-repl/src/main/scala/com/spotify/scio/repl/ScioReplClassLoader.scala#L48
@iamneal can you verify that this works with Java 8? Gonna close this for now if that's the case.
yeah that was the problem, thanks for your help
My code compiles and runs, but when I try and start up the repl from sbt I get this error
The problem started showing up after I included the scio-jdbc package
Here is my build.sbt