EOFError (bad content body) when upload file

My development environment is:
jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-07-28 6586) (Java
HotSpot™ Clie
nt VM 1.6.0_21) [x86-java]
Rails 3
Tomcat 6.0.26

When I tested on webrick, I can’t see this kind of errors, but after I
deploy to tomcat, it went error when I upload a file more than 80KB.

I google this bug, seems this is an rack bug in old version, but my rack
version is 1.2.1, and seems the bug is already fixed in this version.

Please help. Thanks.

By the way, here’s the error message:
EOFError (bad content body):
lib/rack/methodoverride.rb:15:in call' lib/rack/lock.rb:11:incall’

Sometimes, without the last two lines.

Update all gems(I guess the error happened in rack related, include
rack, rack-test, jruby-rack)
Delete Gemfile.lock
Regenerate war package

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