Ticket #231 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] FileCache#decode_file causes java.nio.channels.NonWritableChannelException on JRuby

Reported by: dudl..@misnomer.us Assigned to:
Priority: major Milestone: 0.3.x
Component: Merb Keywords:
Cc:

Description

JRuby's flock implementation can't lock read-only files. This is a known JRuby bug: http://jira.codehaus.org/browse/JRUBY-1214. I've attached a trivial patch which opens the file r/w as a workaround.

Attachments

jruby_flock_workaround.diff (489 bytes) - added by dudl..@misnomer.us on 10/20/07 20:57:28.

Change History

10/20/07 20:57:28 changed by dudl..@misnomer.us

  • attachment jruby_flock_workaround.diff added.

10/23/07 07:00:44 changed by dudl..@misnomer.us

  • summary changed from FileCache#decode_file causes java.nio.channels.NonWritableChannelException on JRuby to [PATCH] FileCache#decode_file causes java.nio.channels.NonWritableChannelException on JRuby.

10/24/07 12:45:07 changed by e.@brainspl.at

  • status changed from new to closed.
  • resolution set to fixed.

(In [762]) Applying all dudleys patches to make merb work under jruby, fell back tp json_pure gem but will still try to load the C ext first before falling back to the pure version. closes #231, closes #232, closes #236, closes #242, closes #235 Thanks dudley