powered by Jive Software

Unable to connect Open fire through converse.js in local system setup(using in Web applications)


#1

Hi All,

I’m trying to connect Open-fire through converse.js in my local set up(using in Web applications) connection is not happening.When used bosh_service_url in my code its not connecting to open-fire(http-binding not happening).It is always showing pending status in network.But when i used spark(using port:5222) app its connecting properly.

An my code is:

converse.initialize({ bosh_service_url: 'http://localhost:5222/http-bind/', show_controlbox_by_default: true, auto_reconnect: true, debug: true, auto_login: true, jid: 'admin', password:'a' });

i have tried below urls for connecting open-fire
bosh_service_url:http://localhost:5222/http-bind/
bosh_service_url:http://127.0.0.1:5222/http-bind/

Can you please help me out here ASAP.


#2

By default BOSH/HTTP Binding uses 7070 (http) and 7443 (https) ports in Openfire. You can find these ports on the home page in Admin Console and you can change these ports in Server > Server Settings > HTTP Binding.


#3

Hi Sir ,
Even i tried this also sir, no changes same thing happend.
When changed in admin console its not enable(7070). its automatically revert to disable option.
Even i used latest version of open fire

please help me out
1


#4

Check for errors in /openfire/logs/all.log

And please stop with the “ASAP” thing. We are volunteers here and nobody is required to provide you tech support. So, be patient.


#5

Hi Sir,

Thank you for your response. Can you please see below log.

|at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) [sitemesh-2.4.2.jar:?]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:73) [xmppserver-4.3.1.jar:4.3.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:49) [xmppserver-4.3.1.jar:4.3.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226) [xmppserver-4.3.1.jar:4.3.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:216) [xmppserver-4.3.1.jar:4.3.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [jetty-security-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [jetty-servlet-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.Server.handle(Server.java:503) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [jetty-server-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [jetty-io-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [jetty-io-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [jetty-io-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [jetty-util-9.4.12.v20180830.jar:9.4.12.v20180830]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_192]
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: muc_occupants. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [Jetty-QTP-AdminConsole-31]: org.jivesoftware.openfire.spi.ConnectionListener[bosh_c2s-legacyMode] - Ignoring client auth configuration change request (to ‘disabled’): listener already in this state.
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: proxyTransferRate. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: conversations. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: muc_traffic. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: packet_count. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: muc_rooms. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: server_sessions. Last sample: 1548747420. New sample: 1548747480
2019.01.29 13:08:48 DEBUG [pool-monitoring3]: org.jivesoftware.openfire.reporting.stats.StatsEngine - Stat: muc_users. Last sample: 1548747420. New sample: 1548747480|


#6

I don’t see any insights into this issue in the log. And it works for me. Maybe something on your system is already using 7070/7443 ports. Try changing them to something else (e.g. 7071 and 7444) and then try saving the setting.


#7

Hi Sir,

Thank you for your response. Can you please check this2


#8

I get the same result and it is probably expected. I’m not familiar with HTTP Bind and never used it, but i think this is not the way to access it. This is just a beginning of a URL. I think you need some BOSH client or library to connect to that address, not just browser. But i don’t know what you are trying to achieve and how to do that.


#9

I have fixed this issue thank you sir,

Can please suggest me which client(for web) is better for connecting open-fire.
I need to integrate that client into my web application


#10

I heard Converse is good. Openfire has plugins: inVerse (based on Converse) and Candy (group chat only). There is also Pade, though it is designed to have video chat, but there is also text based chat https://www.igniterealtime.org/projects/pade/index.jsp


#11

Thank you for replay sir.

Can you please this error in group chat.Can you please help here.

window


#12

Hi,

Would you be able to provide a solution as to how you fixed this problem?
I seem to be having a similar issue.

Thank You


#13

No I didn’t solved yet.Even I’m looking for solution


#14

Ok, this thread is becoming confusing. Byrne_paul, please post a new post for your problem, because it is not clear what you mean (first post or last pos). Vilnq_Tech, i think it is better to leave this thread now as you first issue was kind of resolved. You can post your last question as a separate topic and explain with more details what have you done (what plugin installed and how configured) and what is failing for you.