Forum: JRuby CancelledKeyException

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
486ca04f06d968004643ce5b47376ded?d=identicon&s=25 Keith B. (keith_b)
on 2013-05-13 20:25
(Received via mailing list)
Hi, all.  I'm writing a JRuby gem that wraps a Java library that does
some
networking stuff.  When I run rspec, after the tests all pass and I get
the
success output, I see the exception output I pasted into
https://gist.github.com/keithrbennett/5570290.

Anyone know what's up with this?

Also, it says "RubyThread-14".  I'm only running in 1 thread.  The Java
library may be creating additional threads -- would they be named
"RubyThread"?

Thanks,
Keith
8c21306523b16ba5dd35c3549bf90994?d=identicon&s=25 Theo Hultberg (Guest)
on 2013-06-03 08:56
(Received via mailing list)
looks like you're using the "logging" gem and have some kind of
networked
log appender which is raising the error (it's a java error because jruby
is
using the java libraries for implementing the IO and friends). the extra
ruby thread was probably created by the appender, and either the
appender
doesn't clean up after itself, or the shutdown causes a situation which
the
appender didn't expect.

T#
This topic is locked and can not be replied to.