Glassfish gem with JRuby trunk

Is anyone using the current glassfish gem with JRuby trunk? With a
trivial
app I get this every time I try to go to a page:

INFO: JRuby version is: 1.5.0.dev
Feb 23, 2010 9:18:30 PM com.sun.grizzly.jruby.RackGrizzlyAdapter service
SEVERE: Failed to create JRuby instance.
java.util.concurrent.ExecutionException:
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter.service(RackGrizzlyAdapter.java:289)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at
org.jruby.runtime.ThreadContext.getCurrentScope(ThreadContext.java:194)
at org.jruby.Ruby.evalScriptlet(Ruby.java:282)
at
com.sun.grizzly.jruby.rack.RailsApplication.createApplicationObject(RailsApplication.java:63)
at
com.sun.grizzly.jruby.rack.RailsApplication.(RailsApplication.java:48)
at
com.sun.grizzly.jruby.rack.RackApplicationPoolFactory.newApplication(RackApplicationPoolFactory.java:93)
at
com.sun.grizzly.jruby.rack.RackApplicationPoolFactory.getRackApplocationPool(RackApplicationPoolFactory.java:66)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter.startJRubyRuntime(RackGrizzlyAdapter.java:124)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter.access$000(RackGrizzlyAdapter.java:69)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter$1.call(RackGrizzlyAdapter.java:109)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter$1.call(RackGrizzlyAdapter.java:106)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

I still don’t know if the bug is caused by JRuby or JRuby-Rack but I got
the
same error this morning trying to run a rails 3 application with
Trinidad
and JRuby trunk:

…/jruby/bin/jruby -S trinidad

at org.jruby.Ruby.evalScriptlet(Ruby.java:282)
at

org.jruby.rack.rails.RailsRackApplicationFactory.createApplicationObject(RailsRackApplicationFactory.java:20)
at
org.jruby.rack.DefaultRackApplicationFactory$1.create(DefaultRackApplicationFactory.java:43)
at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:151)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:156)
at java.lang.Thread.run(Thread.java:619)

I remember seeing some messages on Twitter that glassfish gem doesn’t
work with Rack 1.1, and the older version needs to be used.

–Vladimir

On Wed, Feb 24, 2010 at 5:04 PM, David C.
[email protected] wrote:

INFO: Info: received max runtimes = 5
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:151)
INFO: JRuby version is: 1.5.0.dev
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.jruby.RackGrizzlyAdapter$1.call(RackGrizzlyAdapter.java:109)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)


David C.
http://www.thinkincode.net


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs