Forum: JRuby Tracking down a LoadError

31aa2ace78fecf0c211a4bff28aca4e4?d=identicon&s=25 Rafael de F. Ferreira (Guest)
on 2013-08-09 15:48
(Received via mailing list)
I'm having a tough time debugging an exception in my local setup:

org.jruby.exceptions.RaiseException: (LoadError) load error:
jruby/rack/rack_ext -- java.lang.invoke.WrongMethodTypeException:
MethodHandle(ThreadContext)IRubyObject should be of type
(ThreadContext)IRubyObject

We are using warbler to generate a war file for our rack application.
The
generated file works flawlessly when run with "java -jar thefiile.war"
or
when deployed in Jetty.

But we also need to programatically start a jetty server from our
integration tests; we are using JRuby for that as well. The script to
launch the war file is quite simple:
https://gist.github.com/rafaeldff/755602803aca1ed3e593 .

When we run the script the exception above is raised, the stacktrace can
be
found on the same gist.

Can anyone point me in the right direction to figure out what's going
on?
This topic is locked and can not be replied to.