Forum: JRuby CancelledKeyException

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#
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.