java.nio.BufferOverflowException in RubyIO
------------------------------------------

                 Key: JRUBY-4789
                 URL: http://jira.codehaus.org/browse/JRUBY-4789
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5
         Environment: Ubuntu Desktop 8.04
jruby 1.5.0.RC3 (ruby 1.8.7 patchlevel 249) (2010-05-06 90c5dad) (Java 
HotSpot(TM) Client VM 1.6.0_14) [i386-java]
activerecord (2.3.5)
activerecord-jdbc-adapter (0.9.6)
activesupport (2.3.5)
columnize (0.3.1)
daemons (1.0.10)
diff-lcs (1.1.2)
facets (2.8.4)
geokit (1.5.0)
jdbc-derby (10.5.3.0)
jruby-openssl (0.7)
log4r (1.1.7)
mocha (0.9.8)
rake (0.8.7)
rcov (0.9.8)
rspec (1.3.0)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3.2)
sources (0.0.1)
syntax (1.0.0)
wirble (0.1.3)

            Reporter: Uwe Kubosch


Exception in thread "Thread-2" java.nio.BufferOverflowException
at java.nio.HeapByteBuffer.put(Unknown Source)
at org.jruby.util.io.ChannelStream.bufferedWrite(ChannelStream.java:1045)
at org.jruby.util.io.ChannelStream.fwrite(ChannelStream.java:1222)
at org.jruby.RubyIO.fwrite(RubyIO.java:1482)
at org.jruby.RubyIO.write(RubyIO.java:1286)
at 
org.jruby.RubyIO$i_method_1_0$RUBYINVOKER$write.call(org/jruby/RubyIO$i_method_1_0$RUBYINVOKER$write.gen:65535)
at org.jruby.RubyClass.finvoke(RubyClass.java:663)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:452)
at org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:332)
at org.jruby.RubyIO.print(RubyIO.java:1648)
at org.jruby.RubyIO.print(RubyIO.java:1626)
at 
org.jruby.RubyIO$i_method_0_0$RUBYINVOKER$print.call(org/jruby/RubyIO$i_method_0_0$RUBYINVOKER$print.gen:65535)
at 
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:630)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:186)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:146)
at 
ruby.jit.write_1E237A8707E50A029BE87A26078AE44A5C4B1562.rescue_1$RUBY$_rescue__0(iooutputter.rb:42)
at 
ruby.jit.write_1E237A8707E50A029BE87A26078AE44A5C4B1562._file_(iooutputter.rb:41)
at 
ruby.jit.write_1E237A8707E50A029BE87A26078AE44A5C4B1562._file_(iooutputter.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:153)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at 
ruby.jit.canonical_log_D65CDACA2C0F184C4145EFD4CA70E6EAE0827D4F.block_0$RUBY$_block_(outputter.rb:108)
at 
ruby.jit.canonical_log_D65CDACA2C0F184C4145EFD4CA70E6EAE0827D4FBlockCallback$block_0$RUBY$_block_xx1.call(Unknown
 Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:115)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:98)
at org.jruby.runtime.CompiledBlock.yieldSpecific(CompiledBlock.java:78)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at 
ruby.jit.synch_BD98D8B4B7BB2A81F5B87988B30858906B21BF67.block_0$RUBY$_block_(outputter.rb:128)
at 
ruby.jit.synch_BD98D8B4B7BB2A81F5B87988B30858906B21BF67BlockCallback$block_0$RUBY$_block_xx1.call(Unknown
 Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:115)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:98)
at org.jruby.runtime.Block.yield(Block.java:194)
at org.jruby.libraries.ThreadLibrary$Mutex.synchronize(ThreadLibrary.java:195)
at 
org.jruby.libraries.ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.call(org/jruby/libraries/ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.gen:65535)
at 
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:115)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:132)
at 
ruby.jit.synch_BD98D8B4B7BB2A81F5B87988B30858906B21BF67._file_(outputter.rb:128)
at ruby.jit.synch_BD98D8B4B7BB2A81F5B87988B30858906B21BF67._file_(outputter.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:136)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:299)
at 
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:117)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:132)
at 
ruby.jit.canonical_log_D65CDACA2C0F184C4145EFD4CA70E6EAE0827D4F._file_(outputter.rb:108)
at 
ruby.jit.canonical_log_D65CDACA2C0F184C4145EFD4CA70E6EAE0827D4F._file_(outputter.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:153)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:180)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:172)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:373)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:346)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:303)
at org.jruby.runtime.Block.yield(Block.java:194)
at org.jruby.RubyArray.eachCommon(RubyArray.java:1630)
at org.jruby.RubyArray.each(RubyArray.java:1637)
at 
org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:65535)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:299)
at 
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:117)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:122)
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:180)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:172)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.IfNode.interpret(IfNode.java:119)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:180)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:172)
at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RescueBodyNode.interpret(RescueBodyNode.java:108)
at org.jruby.ast.RescueNode.handleJavaException(RescueNode.java:182)
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:136)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:373)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:327)
at org.jruby.runtime.BlockBody.call(BlockBody.java:78)
at org.jruby.runtime.Block.call(Block.java:89)
at org.jruby.RubyProc.call(RubyProc.java:224)
at org.jruby.RubyProc.call(RubyProc.java:207)
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:94)
at java.lang.Thread.run(Unknown Source)


-- 
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


Reply via email to