trinidad/trinidad — Issue #57: FileLock.release() throwing Java::JavaLang::NullPointerException
Author: bwalsh
Created: 2012-02-23 13:24:19+00:00
State: open

http://jira.codehaus.org/browse/JRUBY-6489

This is not a reproducible scenario, but occurs on a regular basis.

The only file action I know we are using action caching, but the symptom occurs on URLs other than those cached as well.

I do see 'leftover' files in /tmp of the form /tmp/jruby-rack-input999375274174503406. These files are all in the 20-30k range.

-------------------------------
Backtrace:
-------------------------------

org.jruby.RubyFile.flock(RubyFile.java:387)
org.jruby.RubyFile$i$1$0$flock.call(RubyFile$i$1$0$flock.gen:65535)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
opt.app.webserv.jruby_minus_1_dot_6_dot_6.lib.ruby.gems.$1_dot_8.gems.logging_minus_1_dot_6_dot_1.lib.logging.utils.chained_12_ensure_2$RUBY$_ensure_(logging (1.6.1) lib/logging/utils.rb:161)
opt.app.webserv.jruby_minus_1_dot_6_dot_6.lib.ruby.gems.$1_dot_8.gems.logging_minus_1_dot_6_dot_1.lib.logging.utils.method__11$RUBY$flock_sh(logging (1.6.1) lib/logging/utils.rb)

Env ..................

trinidad (1.2.3)
jruby-rack (>= 1.0.9)
trinidad_jars (>= 1.0.1)

$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

$ uname -a
Linux sinudm03 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

* jruby.rack.jruby.version : 1.6.6
* jruby.rack.rack.release : 1.2
* jruby.rack.version : 1.0.10