Error: "...rejected from java.util.concurrent.ThreadPoolExecutor..."

Hi. I Just installed Openfire 3.9.3, and it works great in Pidgin, but when trying to log in via the Candy client, it fails and firebug returns the following:

500 Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@58b901 rejected from java.util.concurrent.ThreadPoolExecutor@8aeebf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

33ms

The only attempt at a solution I could find is at:

linux - openfire error when try to connect via http-bind - Stack Overflow ia-http-bind

but I can’t find xmpp.httpbind.worker.threads or xmpp.client.processing.threads under System Properties.

openfire warning log:

java.util.concurrent.RejectedExecutionException: Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@3ea82c rejected from java.util.concurrent.ThreadPoolExecutor@8aeebf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

Any suggestions please?

Just add the properties with value 16.

See also https://community.igniterealtime.org/thread/49868

Thanks for the assistance. I logged into http://127.0.0.1:9090/server-properties.jsp

Niether of the the following properties was listed. So I added both and assigned each a value of 16. Then restarted the openfire service. But there was absolutely no change.

xmpp.httpbind.worker.threads xmpp.client.processing.threads

Error log:

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875 )

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:250)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:149)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

at org.eclipse.jetty.server.Server.handle(Server.java:349)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.j ava:936)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

at java.lang.Thread.run(Thread.java:744)

2014.07.21 13:04:39 org.jivesoftware.openfire.http.HttpBindServlet - Error sending packet to client.

org.jivesoftware.openfire.http.HttpConnectionClosedException: The http connection is no longer available to deliver content

at org.jivesoftware.openfire.http.HttpConnection.deliverBody(HttpConnection.java:1 12)

at org.jivesoftware.openfire.http.HttpSession.addConnection(HttpSession.java:762)

at org.jivesoftware.openfire.http.HttpSession.createConnection(HttpSession.java:69 7)

at org.jivesoftware.openfire.http.HttpSessionManager.forwardRequest(HttpSessionMan ager.java:323)

at org.jivesoftware.openfire.http.HttpBindServlet.handleSessionRequest(HttpBindSer vlet.java:254)

at org.jivesoftware.openfire.http.HttpBindServlet.parseDocument(HttpBindServlet.ja va:176)

at org.jivesoftware.openfire.http.HttpBindServlet.doPost(HttpBindServlet.java:145)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.jivesoftware.openfire.http.HttpBindServlet.service(HttpBindServlet.java:104 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 5)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:94 1)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875 )

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:250)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:149)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

at org.eclipse.jetty.server.Server.handle(Server.java:349)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.j ava:936)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

at java.lang.Thread.run(Thread.java:744)

Warn log:

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:250)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:149)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

at org.eclipse.jetty.server.Server.handle(Server.java:349)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.j ava:936)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

at java.lang.Thread.run(Thread.java:744)

2014.07.21 13:04:30 org.eclipse.jetty.servlet.ServletHandler - /http-bind/

java.util.concurrent.RejectedExecutionException: Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@54ab3c rejected from java.util.concurrent.ThreadPoolExecutor@8aeebf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoo lExecutor.java:2048)

at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)

at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.init(HttpSes sionManager.java:429)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.access$200(H ttpSessionManager.java:417)

at org.jivesoftware.openfire.http.HttpSessionManager.forwardRequest(HttpSessionMan ager.java:326)

at org.jivesoftware.openfire.http.HttpBindServlet.handleSessionRequest(HttpBindSer vlet.java:254)

at org.jivesoftware.openfire.http.HttpBindServlet.parseDocument(HttpBindServlet.ja va:176)

at org.jivesoftware.openfire.http.HttpBindServlet.doPost(HttpBindServlet.java:145)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.jivesoftware.openfire.http.HttpBindServlet.service(HttpBindServlet.java:104 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 5)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:94 1)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875 )

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:250)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:149)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

at org.eclipse.jetty.server.Server.handle(Server.java:349)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.j ava:936)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

at java.lang.Thread.run(Thread.java:744)

Firebug console:

[Connection] Connecting

candy.min.js (line 1)

POST http://noname.com/http-bind/

200 OK

108ms

libs.min.js (line 2)

SENT:

candy.min.js (line 1)

RECV: stream:featuresDIGEST-MD5PLAINANONYMOUSCRAM-MD5</mech anism>zlib</stream:features>

candy.min.js (line 1)

POST http://noname.com/http-bind/

500 Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@14a9884 rejected from java.util.concurrent.ThreadPoolExecutor@8aeebf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

13ms

libs.min.js (line 2)

SENT:

candy.min.js (line 1)

POST http://noname.com/http-bind/

500 Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@11e49c7 rejected from java.util.concurrent.ThreadPoolExecutor@8aeebf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

14ms

libs.min.js (line 2)

SENT:

2

candy.min.js (line 1)

POST http://noname.com/http-bind/

200 OK

83ms

libs.min.js (line 2)

TypeError: a.getAttribute is not a function

…,c,c.message)),f.fatal(“error: “+this.handler+” “+c.fileName+”:”+c.lineNumber+" …

CSH wrote:

Just add the properties with value 16.

See also HTTP Binding doesn't work with 3.8.1 - Openfire Support - Ignite Realtime Community Forums

Is there some more information I should be providing or are you guys just spread real thin on this forum? I have another instance of openfire running on another server with the same environment/configurations that works fine without ever explictely setting those properties. They’re not in the properties list either. But on my current server I continue to get the error above. Any thoughts?

THe thread you pointed me to was unresolved.

CSH - “I’m getting this error again…please help”