Hi,
i’ve successfully installed jsjac 1.2.2 + openfire 3.4.4 on my mac. jsjac’s simpleclient.html can connect and chat with another user (using spark). But when i’m sending frequent short message to jsjac client from the other user (using spark), the jsjac simpleclient.html is suddenly and randomly exitting with last debug string:
[Thu Feb 7 02:10:05 2008] (level 3) func: unknown
*/*/* => match for handler function handleMessage(aJSJaCPacket) {
var html = "";
html += "<div class=\"msg\"><b>Received Message from " + aJSJaCPacket.getFromJID() + ":</b><br/>";
html += aJSJaCPacket.getBody().htmlEnc() + "</div>";
document.getElementById("iResp").innerHTML += html;
document.getElementById("iResp").lastChild.scrollIntoView();
}
[Thu Feb 7 02:10:05 2008] (level 2) func: unknown
Found working slot at 0
[Thu Feb 7 02:10:06 2008] (level 4) func: unknown
sending: <body rid='134362' sid='12dedc2e' xmlns='http://jabber.org/protocol/httpbind' key='86f9f51e54bf6b944df933c2d55e26d1b752f4c9'></body>
[Thu Feb 7 02:10:06 2008] (level 4) func: unknown
async recv: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 403 FORBIDDEN</title> //====>> I got 403 forbidden here ! ==========
</head>
<body><h2>HTTP ERROR: 403</h2><pre>FORBIDDEN</pre>
<p>RequestURI=/http-bind/</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>
<br/>
<br/> //==== --> many <br/> lines here ==== </body>
</html>
[Thu Feb 7 02:10:06 2008] (level 3) func: unknown
incoming event 'onstatuschanged'
[Thu Feb 7 02:10:06 2008] (level 3) func: unknown
incoming event 'status_changed'
[Thu Feb 7 02:10:06 2008] (level 2) func: unknown
handling event 'status_changed'
[Thu Feb 7 02:10:07 2008] (level 0) func: handleStatusChanged
status changed: aborted
[Thu Feb 7 02:10:07 2008] (level 1) func: unknown
Disconnected.
Anyone ever got same “strange” behaviour like this ? any solution ?
I’ve tried to reduce JSJAC_CHECKINQUEUEINTERVAL from 1 msec to 100 msec but to no avail.
But when i’m using jsjac 0.6 within jsjabber (http://jo-hely.hu/~aadaam/jsjabber), everything work fine! jsjabber using 100 msec for checkqueueinterval.
Message was edited by: chenull, unmarkup the debug output