Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java::JavaNioChannels::CancelledKeyException #22

Closed
tarcieri opened this issue Mar 21, 2013 · 5 comments
Closed

Java::JavaNioChannels::CancelledKeyException #22

tarcieri opened this issue Mar 21, 2013 · 5 comments

Comments

@tarcieri
Copy link
Contributor

See celluloid/celluloid-io#46

@halorgium
Copy link
Contributor

This may not be an issue anymore.
https://gist.github.com/romansergey/5103388 has a repro?
@romansergey, do you have any further thoughts?

@ghost ghost assigned halorgium Nov 29, 2013
@tarcieri
Copy link
Contributor Author

tarcieri commented Sep 1, 2014

Closing as obsolete

@tarcieri tarcieri closed this as completed Sep 1, 2014
@kenichi
Copy link

kenichi commented Sep 11, 2014

I just saw this happen on nio4r 1.0.1java, celluoid / celluloid::io 0.16, angelo 0.1.22, jruby 1.7.15. I can consistently repro on my laptop, will try on linux soon.

require 'angelo'
require 'mustermann'
require 'angelo/mustermann'

class Foo < Angelo::Base
  include Angelo::Mustermann

  get '/(avatar|user)/(?<id>.*).jpg', type: :regexp do
    content_type :json
    { id: params[:id] }
  end

end

Foo.run
curl http://localhost:4567/avatar/foo.jpg
jruby 1.7.15 (2.0.0p195) 2014-09-03 82b5cc3 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_05-b13 +jit [darwin-x86_64]

I, [2014-09-10T23:54:48.122000 #82169]  INFO -- : Angelo 0.1.22
I, [2014-09-10T23:54:48.128000 #82169]  INFO -- : listening on 127.0.0.1:4567
I, [2014-09-10T23:54:48.222000 #82169]  INFO -- : 127.0.0.1 - - "GET /avatar/foo.jpg HTTP/1.1" 200 12
E, [2014-09-10T23:54:48.245000 #82169] ERROR -- : Actor crashed!
Java::JavaNioChannels::CancelledKeyException:
        sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
        sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)
        org.nio4r.Nio4r$Monitor.writable(Nio4r.java:391)
        org.nio4r.Nio4r$Monitor$INVOKER$i$0$0$writable.call(Nio4r$Monitor$INVOKER$i$0$0$writable.gen)
        ...

@tarcieri tarcieri reopened this Sep 11, 2014
@tarcieri
Copy link
Contributor Author

tarcieri commented Sep 4, 2016

@kenichi is this still reproducible?

@tarcieri
Copy link
Contributor Author

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants