Skip to content

Instantly share code, notes, and snippets.

@hishidama
Created February 27, 2017 08:42
Show Gist options
  • Save hishidama/b9b82a449a030a7dfd3f428f0fb48bbd to your computer and use it in GitHub Desktop.
Save hishidama/b9b82a449a030a7dfd3f428f0fb48bbd to your computer and use it in GitHub Desktop.
embulkをWindowsのJava9-eaで動かしたら
2017-02-27T17:30:12.651+09:00 [main] ERROR JavaProxyClassFactory : could not use ClassLoader.defineClass method
java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @569cfc36
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
at org.jruby.javasupport.proxy.JavaProxyClassFactory$1.run(JavaProxyClassFactory.java:219)
at org.jruby.javasupport.proxy.JavaProxyClassFactory$1.run(JavaProxyClassFactory.java:212)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jruby.javasupport.proxy.JavaProxyClassFactory.<clinit>(JavaProxyClassFactory.java:212)
at org.jruby.javasupport.proxy.JavaProxyClass.<clinit>(JavaProxyClass.java:89)
at org.jruby.javasupport.Java.createJavaModule(Java.java:163)
at org.jruby.javasupport.Java.load(Java.java:103)
at org.jruby.runtime.load.LoadService.reflectedLoad(LoadService.java:588)
at org.jruby.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:48)
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:885)
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:525)
at org.jruby.runtime.load.LoadService.require(LoadService.java:396)
at org.jruby.ext.jruby.JRubyLibrary.load(JRubyLibrary.java:57)
at org.jruby.runtime.load.LoadService.reflectedLoad(LoadService.java:588)
at org.jruby.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:48)
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:885)
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:525)
at org.jruby.runtime.load.LoadService.require(LoadService.java:396)
at org.jruby.Ruby.init(Ruby.java:1284)
at org.jruby.Ruby.newInstance(Ruby.java:341)
at org.jruby.Main.internalRun(Main.java:281)
at org.jruby.Main.run(Main.java:242)
at org.jruby.Main.main(Main.java:204)
at org.embulk.cli.Main.main(Main.java:23)
NameError: uninitialized constant FFI::Platform
const_missing at org/jruby/RubyModule.java:3346
<module:Constants> at uri:classloader:/jruby/kernel/file.rb:16
<module:File> at uri:classloader:/jruby/kernel/file.rb:14
<module:Windows> at uri:classloader:/jruby/kernel/file.rb:13
<main> at uri:classloader:/jruby/kernel/file.rb:12
load at org/jruby/RubyKernel.java:974
<main> at file:/C:/Users/hishidama/.embulk/bin/embulk.bat!/jruby/kernel.rb:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment