Skip to content

Instantly share code, notes, and snippets.

@lbialy
Created October 6, 2019 12:04
Show Gist options
  • Save lbialy/503c76fe14dffbce48420ae8c24da0d7 to your computer and use it in GitHub Desktop.
Save lbialy/503c76fe14dffbce48420ae8c24da0d7 to your computer and use it in GitHub Desktop.
Doobie 0.6+ native-image compilation issue
at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102)
at java.lang.ClassLoader.getClassLoader(Target_java_lang_ClassLoader.java:1510)
at java.lang.Package.getPackage(Package.java:280)
at scala.reflect.runtime.JavaMirrors$JavaMirror.packageNameToScala(JavaMirrors.scala:939)
at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$scala$reflect$runtime$JavaMirrors$$makeScalaPackage$1(JavaMirrors.scala:951)
at scala.reflect.runtime.JavaMirrors$JavaMirror.scala$reflect$runtime$JavaMirrors$$makeScalaPackage(JavaMirrors.scala:948)
at scala.reflect.runtime.JavaMirrors.missingHook(JavaMirrors.scala:1355)
at scala.reflect.runtime.JavaMirrors.missingHook$(JavaMirrors.scala:1348)
at scala.reflect.runtime.JavaUniverse.missingHook(JavaUniverse.scala:18)
at scala.reflect.internal.Mirrors$RootsBase.universeMissingHook(Mirrors.scala:82)
at scala.reflect.internal.Mirrors$RootsBase.$anonfun$missingHook$2(Mirrors.scala:85)
at scala.reflect.internal.Mirrors$RootsBase.missingHook(Mirrors.scala:85)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66)
at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:101)
at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:104)
at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:287)
at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:287)
at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1454)
at scala.reflect.runtime.JavaUniverse.init(JavaUniverse.scala:142)
at scala.reflect.runtime.JavaUniverse.<init>(JavaUniverse.scala:81)
at scala.reflect.runtime.package$.universe$lzycompute(package.scala:17)
at scala.reflect.runtime.package$.universe(package.scala:17)
at doobie.util.MetaInstances.$init$(meta.scala:154)
at doobie.util.Meta$.<init>(meta.scala:37)
at doobie.util.Meta$.<clinit>(meta.scala)
at com.oracle.svm.core.hub.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:350)
at com.oracle.svm.core.hub.ClassInitializationInfo.initialize(ClassInitializationInfo.java:270)
at java.lang.Class.ensureInitialized(DynamicHub.java:467)
at doobie.Modules.$init$(aliases.scala:34)
at doobie.package$.<init>(package.scala:15)
at doobie.package$.<clinit>(package.scala)
at com.oracle.svm.core.hub.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:350)
at com.oracle.svm.core.hub.ClassInitializationInfo.initialize(ClassInitializationInfo.java:270)
at java.lang.Class.ensureInitialized(DynamicHub.java:467)
at doobie.util.transactor$Strategy.<init>(transactor.scala:46)
at doobie.util.transactor$Strategy$.<init>(transactor.scala:69)
at doobie.util.transactor$Strategy$.<clinit>(transactor.scala)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment