6 Replies Last post: Dec 20, 2007 9:20 PM by David  
Andrew Bronze 2 posts since
Sep 3, 2007
Currently Being Moderated

Sep 3, 2007 11:31 PM

OpenFire 3.3.2 + JSJaC 1.0 communication issues

Hi all, I'm currently investigating setting up a web based application that uses Jabber as its underlying message transport and integrating it with an existing web application, to this end im looking at deploying OpenFire and JSJaC. However, i seem to be having some grief getting JSJaC to communicate with openfire. Ive had a broad dig across the web but nothing seems to cover the specific problems im having.

 

For context, im running a self contained OpenFire 3.3.2 on Windows XP, with Apache 2.2.4 serving the JSJaC library and example 'simpleclient.html'  and proxy requests to localhost/http-bind/ to my install of openfire at jabber.localhost:8080/http-bind/

 

When JSJaC attempts to make the initial connection request it gets an http 400 error back:

 

Request POST data:

<body hold='1' xmlns='http://jabber.org/protocol/httpbind' to='jabber.localhost' wait='300' rid='158365' newkey='82c4e76cde0560a5095b29b3424498b84a2b2c23' ver='1.6' xmpp:xmlns='urn:xmpp:xbosh' xmpp:version='1.0'/>

 

Response:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

<title>Error 400 </title>

</head>

<body><h2>HTTP ERROR: 400</h2><pre>BAD_REQUEST</pre>

<p>RequestURI=/http-bind/</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>             &n bsp;            &nbs p;                           &n bsp;            &nbs p;            

...

 

Whenever a request like this is sent, the openfire warn.log has a single line similar to

 

2007.09.04 12:04:59 Error parsing user request. http://127.0.0.1

 

If anyone has an suggestions about how to go about resolving this situation that would be greatly appreciated.

 

Kind regards,

 

Andrew Brehaut

tarik Bronze 1 posts since
Nov 27, 2007
Currently Being Moderated
Nov 27, 2007 6:47 PM in response to: Andrew
Re: OpenFire 3.3.2 + JSJaC 1.0 communication issues

 

Hi Andrew,

 

 

i'm still have the same error when i try to connect JSJaC with OpenFire, can you describe me your configuration wich work properly for you.

 

 

Thanks,

 

 

Tarik Arrad

 

 

galexander Bronze 9 posts since
Dec 11, 2007
Currently Being Moderated
Dec 11, 2007 6:09 PM in response to: Andrew
Re: OpenFire 3.3.2 + JSJaC 1.0 communication issues

 

I'm getting this exact same error.  The fact of the matter is that when I put OpenFire's HTTP-BIND (ssl) on the port that's being proxied to, I get this error:

 

h1. Proxy Error
The proxy server received an invalid
response from an upstream server.
The proxy server could not handle the request GET /http-bind/.
Reason: Error reading from remote server

 

When  I put OpenFire's HTTP-BIND (non-ssl version) on the port that's being proxied to, I get this error:

 

h2. HTTP ERROR: 400BAD_REQUEST
RequestURI=/http-bind/
Powered by Jetty://

 

So -- unless JWChat is making some weird request besides just GET like my browser makes, OpenFire is the reason for JWChat not working, not JSJaC (which nowadays has all those vars combined into one file, jsjac.js).

 

 

 

 

So the question is: What's up with http-binding in OpenFire?  Is it broken, or am I doing something blatantly wrong? My config goes almost exactly like this:

 

 

http://www.igniterealtime.org/community/message/156835#156841

 

 

Notice the original poster is asking the same thing this thread addresses...  Can someone answer this?

 

 

 

 

Sabine Dinis Blochberger Gold 285 posts since
Oct 21, 2005
Currently Being Moderated
Dec 12, 2007 4:06 AM in response to: galexander
Re: OpenFire 3.3.2 + JSJaC 1.0 communication issues

We use SSL, but JwChat connects to the normal XMPP port (5222), maybe that is your issue.

galexander Bronze 9 posts since
Dec 11, 2007
Currently Being Moderated
Dec 12, 2007 10:43 AM in response to: Sabine Dinis Blochberger
Re: OpenFire 3.3.2 + JSJaC 1.0 communication issues

 

Unless I'm totally off base here, no, it doesn't.  JWChat asks for /http-bind/, it doesn't make a TCP connection to the actual service, that's the whole point of http-binding, isn't it?

 

 

It makes a connection to wherever you point /http-bind/.  In my case, I point it to http://chatserver:ssl-http-binding-port/http-bind/.  That's when I get the first error I posted.  When I point it to http://chatserver:http-binding-port/http-bind/, I get the second error.  When I point it to https://chatserver:ssl-http-binding-port/http-bind/ I get an Internal Server Error.

 

 

Anybody got the answer to this?  TIA

 

 

David Bronze 9 posts since
Dec 20, 2007
Currently Being Moderated
Dec 20, 2007 9:20 PM in response to: galexander
Re: OpenFire 3.3.2 + JSJaC 1.0 communication issues

 

This is the exact problem I am having.

 

 

http://www.igniterealtime.org/community/thread/30743?tstart=0

 

 

More Like This

  • Retrieving data ...