apache - Openfire + Candychat 500 Internal error -
hi new xmpp protocol , trying build simple web-based chat app using openfire , candychat.
currently running webserver using xampp (c:\xampp). have openfire installed @ c:\openfire.
i forked candychat via github , put inside xampp/htdocs.
my .htaccess file looks this:
adddefaultcharset utf-8 options +multiviews rewriteengine on rewriterule http-bind/ http://localhost:7070/http-bind/ [p]
while index.html (under example folder of candychat) looks (i omitted of codes):
<script type="text/javascript"> $(document).ready(function() { candy.init('http-bind/', { core: { debug: true }, view: { resources: 'res/' } }); candy.core.connect(); }); </script>
when try access via apache (via web browser) went normal, proper login screen. enter username + password firebugs detects there 500 error ("networkerror: 500 server error").
looking openfire admin page (specifically event log) get:
at org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:186) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:875) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:117) @ org.eclipse.jetty.server.handler.contexthandlercollection.handle(contexthandlercollection.java:250) @ org.eclipse.jetty.server.handler.handlercollection.handle(handlercollection.java:149) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:110) @ org.eclipse.jetty.server.server.handle(server.java:349) @ org.eclipse.jetty.server.httpconnection.handlerequest(httpconnection.java:441) @ org.eclipse.jetty.server.httpconnection$requesthandler.content(httpconnection.java:936) @ org.eclipse.jetty.http.httpparser.parsenext(httpparser.java:801) @ org.eclipse.jetty.http.httpparser.parseavailable(httpparser.java:218) @ org.eclipse.jetty.server.asynchttpconnection.handle(asynchttpconnection.java:51) @ org.eclipse.jetty.io.nio.selectchannelendpoint.handle(selectchannelendpoint.java:586) @ org.eclipse.jetty.io.nio.selectchannelendpoint$1.run(selectchannelendpoint.java:44) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:598) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:533) @ java.lang.thread.run(unknown source) 2013.04.18 14:03:46 org.jivesoftware.openfire.http.httpbindservlet - error sending packet client. org.jivesoftware.openfire.http.httpconnectionclosedexception: http connection no longer available deliver content @ org.jivesoftware.openfire.http.httpconnection.deliverbody(httpconnection.java:117) @ org.jivesoftware.openfire.http.httpsession.addconnection(httpsession.java:785) @ org.jivesoftware.openfire.http.httpsession.createconnection(httpsession.java:720) @ org.jivesoftware.openfire.http.httpsessionmanager.forwardrequest(httpsessionmanager.java:316) @ org.jivesoftware.openfire.http.httpbindservlet.handlesessionrequest(httpbindservlet.java:254) @ org.jivesoftware.openfire.http.httpbindservlet.parsedocument(httpbindservlet.java:176) @ org.jivesoftware.openfire.http.httpbindservlet.dopost(httpbindservlet.java:145) @ javax.servlet.http.httpservlet.service(httpservlet.java:727) @ javax.servlet.http.httpservlet.service(httpservlet.java:820) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:547) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:480) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:225) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:941) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:409) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:186) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:875) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:117) @ org.eclipse.jetty.server.handler.contexthandlercollection.handle(contexthandlercollection.java:250) @ org.eclipse.jetty.server.handler.handlercollection.handle(handlercollection.java:149) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:110) @ org.eclipse.jetty.server.server.handle(server.java:349) @ org.eclipse.jetty.server.httpconnection.handlerequest(httpconnection.java:441) @ org.eclipse.jetty.server.httpconnection$requesthandler.content(httpconnection.java:936) @ org.eclipse.jetty.http.httpparser.parsenext(httpparser.java:801) @ org.eclipse.jetty.http.httpparser.parseavailable(httpparser.java:218) @ org.eclipse.jetty.server.asynchttpconnection.handle(asynchttpconnection.java:51) @ org.eclipse.jetty.io.nio.selectchannelendpoint.handle(selectchannelendpoint.java:586) @ org.eclipse.jetty.io.nio.selectchannelendpoint$1.run(selectchannelendpoint.java:44) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:598) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:533) @ java.lang.thread.run(unknown source)
i not sure happen here, can me this.
thanks lot.
@ben companjen
thanks tips,
i fixed problem. seemed anti virus causing problem. did is
- make sure http bind configuration pointing right port
- make sure av not interfering said port.
- restart openfire everytime changes made through admin panel.
cheers
Comments
Post a Comment