Skip to content

Instantly share code, notes, and snippets.

@mkristian
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkristian/9ce9eece566c1ac03301 to your computer and use it in GitHub Desktop.
Save mkristian/9ce9eece566c1ac03301 to your computer and use it in GitHub Desktop.
diff --git a/ext/monkstone/arcball/Rarcball.java b/ext/monkstone/arcball/Rarcball.java
index b002638..e6eb054 100644
--- a/ext/monkstone/arcball/Rarcball.java
+++ b/ext/monkstone/arcball/Rarcball.java
@@ -48,7 +48,7 @@ public class Rarcball extends RubyObject {
*/
@JRubyMethod(name = "init", meta = true, rest = true, required = 1, optional = 3)
- static void init(ThreadContext context, IRubyObject self, IRubyObject args[]) {
+ public static void init(ThreadContext context, IRubyObject self, IRubyObject args[]) {
int count = Arity.checkArgumentCount(context.getRuntime(), args, 1, 4);
if (count == 4) {
PApplet parent = (PApplet) args[0].toJava(PApplet.class);
diff --git a/runner.rb b/runner.rb
index 679aa94..4d67bfc 100644
--- a/runner.rb
+++ b/runner.rb
@@ -6,7 +6,7 @@ test = 'fail.rb' # failing
def classpath
path = []
Dir["lib/\*.jar"].each do |jar|
- path << File.expand_path(jar) unless jar =~ /rpextras/
+ path << File.expand_path(jar)
end
return path
end
@@ -14,13 +14,12 @@ end
jars = classpath
-jruby_path = '/home/tux/jruby/bin/jruby'
+jruby_path = "/home/christian/projects/active/jruby/jruby#{ARGV[0]}/bin/jruby"
# jruby_path = 'jruby'
command = [jruby_path, '-J-cp', jars.join(':'), test].flatten # for jruby-9.0.0.0
# command = [jruby_path, test].flatten # for jruby-1.7.XX
-
exec(*command)
Exception in thread "Animation Thread" java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method monkstone.arcball.Rarcball.init(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)V from class monkstone.arcball.Rarcball$INVOKER$s$0$3$init
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)
at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalAccessError: tried to access method monkstone.arcball.Rarcball.init(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)V from class monkstone.arcball.Rarcball$INVOKER$s$0$3$init
at monkstone.arcball.Rarcball$INVOKER$s$0$3$init.call(Rarcball$INVOKER$s$0$3$init.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:681)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:201)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:313)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:289)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:120)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:107)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:175)
at org.jruby.javasupport.proxy.JavaProxyConstructor$MethodInvocationHandler.invokeRuby(JavaProxyConstructor.java:228)
at org.jruby.javasupport.proxy.JavaProxyConstructor$MethodInvocationHandler.invoke(JavaProxyConstructor.java:211)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment