powered by Jive Software

Jwchat/Red5 Problem

I’'m having problems in group chat mode in JWChat, and i need some help.

i am able to connect without issues, but when i join a room

  1. the roster does not appear

  2. no text i type gets reflected back from the server. In fact the debugger window shows:

async recv:

BTW : im running the standalone openfire.exe under Winows XP. my httpbase is /red5/jwchat5

Backtrace:

] http://127.0.0.1:8080/http-bind/

java.io.FileNotFoundException: http://127.0.0.1:8080/http-bind/

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at org.jivesoftware.openfire.plugin.red5.Red5Plugin.doPost(Red5Plugin.java:193)

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

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

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)

at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:146)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:285)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:765 )

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:627)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

By the way, i openfire has http bind set at port 8080, but i cant access the red5 path with any port other than 9090

l0t3k

Update:

Did some investigation…

Trying

http://127.0.0.1:8080/

in the browser gives as message “Openfire HTTP Binding Service”, so apparently the /http-bind/ is not necessary. However this is hardcoded in the red5 plugin, so we get the exception above.

Is there anyway to configure openfire/jetty to recognize /http-bind/ as an alias ?

That message maybe a little confusing, the service does in fact run at /http-bind/. You may be running into a known issue, did you install from the RPM?

Thanks,

Alex

Im running Windows, so i used the full (exe) install.

BTW : i get a 404 from jetty when i browse to

http:/127.0.0.1:8080/http-bind/

Message was edited by: l0t3k

what is in your log files? Any errors? If there are can you post the full exceptions?

Thanks,

Alex

i get the same exception as listed above. i have no problems connecting through Spark .

warnings :

2007.06.08 10:34:52 Client provided invalid session: e095353f.

2007.06.08 10:38:16 Client provided invalid session: e095353f.

2007.06.08 10:38:43 Client provided invalid session: e095353f.

2007.06.08 10:39:20 Client provided invalid session: e095353f.

debug :

Keep-Alive: 300

Connection: keep-alive

Content-Type: text/xml; charset=utf-8

Referer: http://127.0.0.1:9090/red5/jwchat.html?base=&port=9090&root=red5&btype=binding&j id=user217@127.0.0.1&nick=GSinthoju&pass=password&roomName=room4

Content-Length: 342

Cookie: jiveforums.admin.logviewer=debug.size%3D756277%26info.size%3D9633%26warn.size%3 D304%26error.size%3D7104; JSESSIONID=ha9rwow06bh5

Pragma: no-cache

Cache-Control: no-cache

2007.06.08 10:43:12 EOF

2007.06.08 10:43:12 continuation {}

2007.06.08 10:43:13 Cleared thread-bound request context: POST /red5/jwchat5 HTTP/1.1

Host: 127.0.0.1:9090

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Accept: application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,te xt/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Content-Type: text/xml; charset=utf-8

Referer: http://127.0.0.1:9090/red5/jwchat.html?base=&port=9090&root=red5&btype=binding&j id=user217@127.0.0.1&nick=GSinthoju&pass=password&roomName=room4

Content-Length: 342

Cookie: jiveforums.admin.logviewer=debug.size%3D756277%26info.size%3D9633%26warn.size%3 D304%26error.size%3D7104; JSESSIONID=ha9rwow06bh5

Pragma: no-cache

Cache-Control: no-cache

2007.06.08 10:43:13 continuation {}

2007.06.08 10:43:18 EOF

2007.06.08 10:43:18 continuation {}

2007.06.08 10:43:23 Bound request context to thread: POST /red5/jwchat5 HTTP/1.1

Host: 127.0.0.1:9090

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Accept: application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,te xt/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Content-Type: text/xml; charset=utf-8

Referer: http://127.0.0.1:9090/red5/jwchat.html?base=&port=9090&root=red5&btype=binding&j id=user217@127.0.0.1&nick=GSinthoju&pass=password&roomName=room4

Content-Length: 127

Cookie: jiveforums.admin.logviewer=debug.size%3D756277%26info.size%3D9633%26warn.size%3 D304%26error.size%3D7104; JSESSIONID=ha9rwow06bh5

Pragma: no-cache

Cache-Control: no-cache

2007.06.08 10:43:25 continuation {}

l0t3k

I am assuming you can connect jwchat to openfire, but groupchat is not working!!

Try to disable the http-bind proxy of the red5 plugin by configuring the config.js file with the full URL to your Openfire http-bind server using your ip adress or server name instead of /red5/jwchat.

See if that makes a difference for your group chat. Otherwise you are stuck with the compatibility issues between JWchat and Openfire that are waiting for someone to fix.

If you are really looking for a fully functional XMPP webclient, be prepared to spend some money.

-dele