java.nio.BufferOverflowException on every Kernel.puts call
----------------------------------------------------------
Key: JRUBY-3679
URL: http://jira.codehaus.org/browse/JRUBY-3679
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.2
Environment: # java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
# uname -a
Linux host1 2.6.18-6-amd64 #1 SMP Fri Jun 6 05:24:08 UTC 2008 x86_64 GNU/Linux
The machine has 4 cores total
Reporter: Xuân Baldauf
In a long running, multi-threaded JRuby on Rails application, it happened that
suddenly, no request was servable, because every "puts" call created this type
of exception:
[#|2009-05-19T15:15:49.516+0200|WARNING|glassfish|javax.enterprise.system.core|_ThreadID=13;_ThreadName=Thread-1;|The
log message is null.
java.nio.BufferOverflowException
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:165)
at org.jruby.util.io.ChannelStream.bufferedWrite(ChannelStream.java:781)
at org.jruby.util.io.ChannelStream.fwrite(ChannelStream.java:925)
at org.jruby.RubyIO.fwrite(RubyIO.java:1255)
at org.jruby.RubyIO.write(RubyIO.java:1066)
at
org.jruby.RubyIO$i_method_1_0$RUBYINVOKER$write.call(org/jruby/RubyIO$i_method_1_0$RUBYINVOKER$write.gen)
at org.jruby.RubyClass.finvoke(RubyClass.java:468)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:392)
at org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:321)
at org.jruby.RubyIO.write(RubyIO.java:2000)
at org.jruby.RubyIO.puts(RubyIO.java:1990)
at
org.jruby.RubyIO$i_method_0_0$RUBYINVOKER$puts.call(org/jruby/RubyIO$i_method_0_0$RUBYINVOKER$puts.gen)
at org.jruby.RubyClass.finvoke(RubyClass.java:449)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:401)
at org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:329)
at org.jruby.RubyKernel.puts(RubyKernel.java:349)
at
org.jruby.RubyKernel$s_method_0_0$RUBYINVOKER$puts.call(org/jruby/RubyKernel$s_method_0_0$RUBYINVOKER$puts.gen)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:620)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:15
... (sourcecode where a "puts" call happens)
This bug seems to be a regression of JRUBY-2285
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email