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

SSL Websockets give rejectedExecution exception #315

Closed
mirraj2 opened this issue May 23, 2015 · 9 comments
Closed

SSL Websockets give rejectedExecution exception #315

mirraj2 opened this issue May 23, 2015 · 9 comments

Comments

@mirraj2
Copy link

mirraj2 commented May 23, 2015

Wish I could use this library, but it doesn't seem to work with SSL :(

java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@270014db rejected from java.util.concurrent.ScheduledThreadPoolExecutor@7dbd8f68[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
FINALLY
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:632)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)
at org.java_websocket.SSLSocketChannel2.consumeDelegatedTasks(SSLSocketChannel2.java:175)
at org.java_websocket.SSLSocketChannel2.processHandshake(SSLSocketChannel2.java:140)
at org.java_websocket.SSLSocketChannel2.(SSLSocketChannel2.java:82)
at org.java_websocket.server.DefaultSSLWebSocketServerFactory.wrapChannel(DefaultSSLWebSocketServerFactory.java:39)
at org.java_websocket.server.WebSocketServer.run(WebSocketServer.java:321)
at java.lang.Thread.run(Thread.java:745)

@jackklink
Copy link

Bump. Having the same exact problem. :( It seems to occur when a socket connection is closed. Or shortly after.

@duke-robby
Copy link

Strange issue, only happens when an SSL client is disconnecting.

@bendem
Copy link
Contributor

bendem commented Aug 6, 2015

This closes the ThreadPool shared between all the SSLSocketChannel2s, preventing any further call to processHandshake in another one.

@bendem
Copy link
Contributor

bendem commented Aug 6, 2015

Partially fixed by #216, just need to call the new shutdown method.

@BrushfireDigitalServices
Copy link
Collaborator

Now #331 incorporates #216 and calls the new shutdown method. Will close this after #331 is merged.

@BrushfireDigitalServices
Copy link
Collaborator

Related: #270

@vrbadev
Copy link

vrbadev commented Mar 6, 2016

Fixed by #375 aswell

@bendem
Copy link
Contributor

bendem commented Mar 17, 2017

@marci4 this is fixed.

@marci4
Copy link
Collaborator

marci4 commented Mar 19, 2017

@bendem thx for the response. Closing it

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

No branches or pull requests

7 participants