JRuby 1.5.2 and Glassfish gem don't play well together

I upgraded from 1.5.1 to 1.5.2 and started getting the following
exception
randomly during xml posts:

Sep 11, 2010 3:41:29 PM sun.reflect.GeneratedMethodAccessor11 invoke
INFO: /!\ FAILSAFE /!\ 2010-09-11T19:41:29+00:00
Status: 500 Internal Server Error
Stream closed

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:11:in
`method_missing’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/request.rb:373:in
`raw_post’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/params_parser.rb:33:in
`parse_formatted_parameters’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/params_parser.rb:11:in
`call’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in
`call’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in
`call’

RAILS_ROOT/vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb:35:in
`call’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in
`call’

/opt/jruby-1.5.2/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call’

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
`call’

/opt/jruby-1.5.2/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/rack/adapter/rails.rb:133:in
`call’

/opt/jruby-1.5.2/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/rack/handler/grizzly.rb:55:in
`call’
:1

It happens using the Glassfish gem 1.0.2 but not using WEBrick. I
reverted
to 1.5.1 and it definitely stopped occurring. I’m using Rails 2.3.2.

View this message in context:
http://old.nabble.com/JRuby-1.5.2-and-Glassfish-gem-don't-play-well-together-tp29687504p29687504.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi all!

I am having the same problem. Any tip on how to debug this one?

Have you filed a JIRA issue for this?

Uwe K.

On 2010-09-11, at 23:33, pardeeb wrote:

`method_missing’
RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in

`call’
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


With kind regards
Uwe K.
Kubosch Consulting
[email protected]
http://kubosch.no/


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Is there a simple app that reproduces this problem? I have been working
on the gem.

On Sep 14, 2010, at 7:02 PM, Uwe K. wrote:

On 2010-09-11, at 23:33, pardeeb wrote:

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:11:in

`call’
/opt/jruby-1.5.2/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/rack/handler/grizzly.rb:55:in

[email protected]
http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I didn’t file a JIRA as I’m not sure the underlying problem is caused by
JRuby, glassfish or something else. For now, we’re sticking with 1.5.1.
I
did run a dev version of 1.5.2 on our production box (for investigation
of
http://jira.codehaus.org/browse/JRUBY-5018) and it didn’t have this
problem.

View this message in context:
http://old.nabble.com/JRuby-1.5.2-and-Glassfish-gem-don't-play-well-together-tp29687504p29718089.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I am having a very similar error, but in a slightly different place. I
also
have Neo4j setup and see the error when doing a post. I turned off
logging
and the problem went away. It was worse with Rails threading enabled,
happened with every multi-part form post.

Sorry I don’t have a test app yet.

Andreas R. wrote:

http://old.nabble.com/file/p29846519/glassfish-jruby-bug.tar.gz

Cheers

Hi all!

RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:11:in

`call’

/opt/jruby-1.5.2/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/rack/handler/grizzly.rb:55:in

Uwe K.
To unsubscribe from this list, please visit:


View this message in context:
http://old.nabble.com/JRuby-1.5.2-and-Glassfish-gem-don't-play-well-together-tp29687504p30093699.html
Sent from the JRuby - User mailing list archive at Nabble.com.

Hi

I have the same problem.
It works with JRuby version 1.5.1 but not with 1.5.2 and 1.5.3.
In my rails application it seems to be related to using the Neo4j java
library (http://neo4j.org/)
If I don’t use the graph database I can’t reproduce the error.

I have written a little rackup program to reproduce the bug.
http://old.nabble.com/file/p29846519/glassfish-jruby-bug.tar.gz
glassfish-jruby-bug.tar.gz

Looks like a problem when writing to the database as the same time as a
POST
request is received.
(Hopefully it is the same bug as I get in my rails application.)

  1. Create a log folder: mkdir log

  2. Start the rackup config.ru script type: glassfish
    The script will starts a thread writing 10000 nodes to the database
    using
    the neo4j database.

  3. Then quickly do some POST, type:

for i in {1…10}; do curl -d “param1=value1&param2=value2”
http://localhost:3000; done

You will now get a 500 server error.
probably because writing to the database and POST request happend at the
same time.

Cheers
Andreas

Hirotsugu A. wrote:

Have you filed a JIRA issue for this?

randomly during xml posts:
`raw_post’
RAILS_ROOT/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in

It happens using the Glassfish gem 1.0.2 but not using WEBrick. I


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


View this message in context:
http://old.nabble.com/JRuby-1.5.2-and-Glassfish-gem-don't-play-well-together-tp29687504p29846519.html
Sent from the JRuby - User mailing list archive at Nabble.com.


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