[jruby-user] CancelledKeyException

2 views
Skip to first unread message

Keith Bennett

unread,
May 13, 2013, 2:23:31 PM5/13/13
to us...@jruby.codehaus.org
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



Theo Hultberg

unread,
Jun 3, 2013, 2:54:11 AM6/3/13
to us...@jruby.codehaus.org
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#
Reply all
Reply to author
Forward
0 new messages