TotoTron

Unable to establish a connection to the manager server, please see error lo

Discussion created by TotoTron on May 24, 2006
Latest reply on May 30, 2006 by andrew

Wildfire 2.6.1

Asterisk-IM 1.1

 

The Asterisk-IM plug-in doesn''t appear to be working. In the Wildfire console we receive the following error:

Unable to establish a connection to the manager server, please see error log

 

We can telnet from the Jive server to the Asterisk server, so it doesn''t appear to be a connectivity problem.

 

Here are said error logs:

 

2006.05.18 09:41:55 Connected via Asterisk Call Manager/1.0

2006.05.18 09:41:58 Connecting to 10.10.10.10 port 5038

2006.05.18 09:41:58 Successfully logged in

2006.05.18 09:41:58 Determined Asterisk version: Asterisk 1.2

2006.05.18 09:41:58 Successfully reconnected.

2006.05.18 09:42:06 IOException while reading from asterisk server, terminating reader thread: socket closed

2006.05.18 09:42:06 Connected via Asterisk Call Manager/1.0

2006.05.18 09:42:36 IOException while reading from asterisk server, terminating reader thread: socket closed

 

2006.05.18 09:42:06 Unexpected exception in eventHandler net.sf.asterisk.manager.DefaultAsteriskManager

java.lang.IllegalStateException: Unable to send QueueStatus action: not connected.

     at net.sf.asterisk.manager.DefaultManagerConnection.sendEventGeneratingAction(Defa ultManagerConnection.java:712)

     at net.sf.asterisk.manager.DefaultManagerConnection.sendEventGeneratingAction(Defa ultManagerConnection.java:679)

     at net.sf.asterisk.manager.DefaultAsteriskManager.initializeQueues(DefaultAsterisk Manager.java:192)

     at net.sf.asterisk.manager.DefaultAsteriskManager.handleConnectEvent(DefaultAsteri skManager.java:565)

     at net.sf.asterisk.manager.DefaultAsteriskManager.handleEvent(DefaultAsteriskManag er.java:393)

     at net.sf.asterisk.manager.DefaultManagerConnection.dispatchEvent(DefaultManagerCo nnection.java:975)

     at net.sf.asterisk.manager.impl.ManagerReaderImpl.run(ManagerReaderImpl.java:213)

     at java.lang.Thread.run(Unknown Source)

 

2006.05.23 11:05:36 [org.jivesoftware.wildfire.server.OutgoingServerSession.createOutgoingSession(O utgoingServerSession.java:259)

] Error trying to connect to remote server: null(DNS lookup: null:5269)

java.net.UnknownHostException: null

     at java.net.PlainSocketImpl.connect(Unknown Source)

     at java.net.SocksSocketImpl.connect(Unknown Source)

     at java.net.Socket.connect(Unknown Source)

     at org.jivesoftware.wildfire.server.OutgoingServerSession.createOutgoingSession(Ou tgoingServerSession.java:254)

     at org.jivesoftware.wildfire.server.OutgoingServerSession.authenticateDomain(Outgo ingServerSession.java:140)

     at org.jivesoftware.wildfire.server.OutgoingSessionPromise.createSessionAndSendPac ket(OutgoingSessionPromise.java:126)

     at org.jivesoftware.wildfire.server.OutgoingSessionPromise.access$300(OutgoingSess ionPromise.java:37)

     at org.jivesoftware.wildfire.server.OutgoingSessionPromise$1$1.run(OutgoingSession Promise.java:91)

     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

     at java.lang.Thread.run(Unknown Source)

2006.05.23 11:38:36 [org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getSipDevices(AsteriskPho neManager.java:291)

] Unable to send Command action: not connected.

java.lang.IllegalStateException: Unable to send Command action: not connected.

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:656)

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:616)

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:600)

     at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getSipDevices(AsteriskPhon eManager.java:264)

     at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getDevices(AsteriskPhoneMa nager.java:244)

     at org.jivesoftware.wildfire.plugin.phone.phone_002dusers_jsp._jspService(phone_00 2dusers_jsp.java:324)

     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

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

     at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

     at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

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

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

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

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

     at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

     at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

     at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

     at org.mortbay.http.HttpServer.service(HttpServer.java:909)

     at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

     at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

     at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

     at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

     at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

     at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

2006.05.23 11:38:36 [org.jivesoftware.wildfire.plugin.phone.phone_002dusers_jsp._jspService(phone_0 02dusers_jsp.java:327)

]

org.jivesoftware.phone.PhoneException: java.lang.IllegalStateException: Unable to send Command action: not connected.

     at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getSipDevices(AsteriskPhon eManager.java:292)

     at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getDevices(AsteriskPhoneMa nager.java:244)

     at org.jivesoftware.wildfire.plugin.phone.phone_002dusers_jsp._jspService(phone_00 2dusers_jsp.java:324)

     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

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

     at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

     at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

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

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

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

     at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

     at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

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

     at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

     at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

     at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

     at org.mortbay.http.HttpServer.service(HttpServer.java:909)

     at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

     at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

     at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

     at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

     at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

     at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Caused by: java.lang.IllegalStateException: Unable to send Command action: not connected.

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:656)

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:616)

     at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:600)

     at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.getSipDevices(AsteriskPhon eManager.java:264)

     ... 32 more

Outcomes