Openfire的错误时尝试通过HTTP绑定连接(openfire error when try t

2019-10-17 19:57发布

你好,我在我的本地机器openfireserver的安装。

下面这是我的HTTP绑定配置:![Openfire的配置HTTP-配置] [1]

我也是在洋泾浜添加新用户:

  1. 协议:XMPP
  2. 用户名:测试
  3. 域:本地主机
  4. 资源:测试
  5. 通过:测试

高级:

  1. 端口:7070
  2. 服务器:(无)
  3. 文件传输代理:proxy.eu.jabber.org
  4. URL BOSH协议: http://localhost/http-bind/

但连接失败。

如果我尝试使用此选项:

  1. 端口:7070
  2. BOSH网址: http://localhost:7070/http-bind/

我有在Openfire的另一个错误:

2013.03.15 20:50:15 org.eclipse.jetty.servlet.ServletHandler - /http-bind/
java.util.concurrent.RejectedExecutionException: Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@65e92309 rejected from java.util.concurrent.ThreadPoolExecutor@18ee24bf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.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(HttpSessionManager.java:417)
at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.access$200(HttpSessionManager.java:405)
at org.jivesoftware.openfire.http.HttpSessionManager.forwardRequest(HttpSessionManager.java:319)
at org.jivesoftware.openfire.http.HttpBindServlet.handleSessionRequest(HttpBindServlet.java:254)
at org.jivesoftware.openfire.http.HttpBindServlet.parseDocument(HttpBindServlet.java:176)
at org.jivesoftware.openfire.http.HttpBindServlet.doPost(HttpBindServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
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) 

在XMPP pidigin控制台我有错误:

<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5' client-uses-full-bind-result='true'/>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=ISO-8859-1'/>

<title>Error 500 Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@20a88f61 rejected from java.util.concurrent.ThreadPoolExecutor@18ee24bf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]</title>

</head>
<body>
<h2>HTTP ERROR: 500</h2>

<p>Problem accessing /http-bind/. Reason:
<pre>    Task org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender@20a88f61 rejected from java.util.concurrent.ThreadPoolExecutor@18ee24bf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]</pre>
</p>
<hr/>
<i>
<small>Powered by Jetty://</small>
</i>

我怎么可以尝试通过连接到pidigin和Openfire的使用http结合???

Answer 1:

看来,用于处理您的入站请求BOSH线程池的大小已设置为零。 默认情况下,这个值应该是16,但是这个值可以通过两种Openfire的系统属性覆盖:

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

如果这两种属性已经被设置为零或负值,你应该简单地删除使用管理控制台上的“系统属性”页面无效的键/值对(一个或多个),然后重新启动的Openfire。



文章来源: openfire error when try to connect via http-bind