Skip to content

Instantly share code, notes, and snippets.

@andreasronge
Created August 15, 2011 11:51
Show Gist options
  • Save andreasronge/1146088 to your computer and use it in GitHub Desktop.
Save andreasronge/1146088 to your computer and use it in GitHub Desktop.
JRuby InvokeDynamicSupport bug ?
InvokeDynamicSupport.java:2541:in `findVirtual': java.lang.RuntimeException: java.lang.IllegalAccessException: symbolic reference class is not public: class org.neo4j.kernel.impl.core.RelationshipProxy, from org.jruby.runtime.invokedyna$
from InvokeDynamicSupport.java:1603:in `createJavaHandle'
from InvokeDynamicSupport.java:1103:in `handleForMethod'
from InvokeDynamicSupport.java:1059:in `tryDispatchDirect'
from InvokeDynamicSupport.java:1065:in `getTarget'
from InvokeDynamicSupport.java:441:in `invocationFallback'
from jruby.rb:28:in `method__2$RUBY$visit_ref_node'
from jruby$method__2$RUBY$visit_ref_node:65535:in `call'
from jruby$method__2$RUBY$visit_ref_node:65535:in `call'
from InvokeDynamicSupport.java:1244:in `fail'
from MethodHandle.java:566:in `invokeWithArguments'
from InvokeDynamicSupport.java:444:in `invocationFallback'
from jruby.rb:63:in `block_2$RUBY$__file__'
from jruby$block_2$RUBY$__file__:65535:in `call'
from CompiledBlock19.java:130:in `yield'
from Block.java:130:in `yield'
from RubyFixnum.java:256:in `times'
from RubyFixnum$INVOKER$i$0$0$times.gen:65535:in `call'
from JavaMethod.java:434:in `call'
from RubyClass.java:549:in `finvoke'
from RuntimeHelpers.java:541:in `invoke'
from RubyBasicObject.java:410:in `callMethod'
from RubyEnumerator.java:189:in `each'
from MethodHandleImpl.java:1154:in `invoke_L5'
from MethodHandleImpl.java:1154:in `invoke_L5'
from MethodHandle.java:566:in `invokeWithArguments'
from InvokeDynamicSupport.java:518:in `invocationFallback'
from jruby.rb:61:in `__file__'
from jruby.rb:-1:in `load'
from Ruby.java:687:in `runScript'
from Ruby.java:680:in `runScript'
from Ruby.java:587:in `runNormally'
from Ruby.java:436:in `runFromMain'
from Main.java:278:in `doRunFromMain'
from Main.java:198:in `internalRun'
from Main.java:164:in `run'
from Main.java:148:in `run'
from Main.java:128:in `main'
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
OpenJDK Server VM (build 22.0-b01-internal, mixed mode)
jruby 1.7.0.dev (ruby-1.9.2-p136) (2011-08-15 764b81e) (OpenJDK Client VM 1.7.0) [linux-i386-java]
How to reproduce:
* download patched open JDK7 - http://jruby.org/jdk/
* build latest jruby from github (I'm using 764b81e90e03076bc8ab1517b75f9027bcdff911 from Mon Aug 15 21:14:51 2011 +1000)
* git clone http://github.com/andreasronge/neo4j-perf.git
* cd neo4j-perf
* rake create # specify a folder where from to create an database
* rake jruby # you should edit the Rakefile and remove the -Xcompile.dynopt=true flag since it does not exist in jruby 1.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment