Gateway plugin doesn't restart well

I’m running the gateway plugin 1.2.2a on openfire 3.4.3 w/ bundled jre (1.6.0_03) on windows server 2003.

I restarted the gateway plugin today hoping to resolve a problem where we could no longer connect to yahoo (vague “Failed to log into Yahoo! messenger account. (unknown error)”, though the server test still succeeded). We already tried restarting the clients, and deleting & recreating the registrations.

Restarting the plugin didn’t fix the problem, but now I can’t access the gateway plugin through the admin console. Attempts to go to the gateway Settings or Registrations page give the error:

???error.exception???

java.lang.ClassCastException: org.jivesoftware.openfire.gateway.GatewayPlugin cannot be cast to org.jivesoftware.openfire.gateway.GatewayPlugin

at org.jivesoftware.openfire.plugin.gateway.gateway_002dsettings_jsp._jspService(g ateway_002dsettings_jsp.java:68)

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

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

at org.jivesoftware.openfire.container.PluginServlet.handleJSP(PluginServlet.java: 228)

at org.jivesoftware.openfire.container.PluginServlet.service(PluginServlet.java:86 )

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

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1093)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

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

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

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

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

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

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:313)

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

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.j ava:830)

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

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

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

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

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

I would suggest downloading a new copy of the plugin from the site, stopping the openfire server delete the gateway.jar and the associated folder from the plugins folder on the server, copy the fresh plugin into the folder and start the openfire server.

Did you ever find a fix for this error? We are getting the same error when restarting the plugin and are also running windows server 2003. Has anyone else run into this?

This error started for me today, checking for new comments about Yahoo resisting logins. Checked a yahoo account that’s failing, and it works fine to login at their website and read mail.

I am Pidgin-2.5.5 -> Linux/OpenFire-3.6.3 -> Yahoo … but it feels like an issue between Openfire-3.6.3 ->IM_Gateway-1.2.4d ->Yahoo

Any fix yet?

Try using the Kraken app instead from http://kraken.blathersource.org/

Basically its the same IM Gateway plugin with patches, etc. You will need to unistall the IM Gateway plugin (as it doesn’t work together with Kraken) and restart Openfire…

This should take care of the Yahoo problem you’re facing

Good Luck

Tulio