Open GoogleCodeExporter opened 8 years ago
Getting the same here
Original comment by david...@gmail.com
on 21 Aug 2011 at 1:52
Here is the full stack trace of the error:
2011.08.26 08:34:57 com.ifsoft.redfire.RedfirePlugin cannot be cast to
com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
java.lang.ClassCastException: com.ifsoft.redfire.RedfirePlugin cannot be cast
to com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
at com.ifsoft.iftalk.plugin.voicebridge.view.VoiceBridgeSummary.init(VoiceBridgeSummary.java:37)
at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServlet.java:177)
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:464)
at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java:80)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1067)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
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)
Original comment by gtim...@gmail.com
on 26 Aug 2011 at 12:36
Line 37 of VoiceBridgeSummary initializes the plugin, but the cast is not
working. Perhaps an explicit cast is necessary?
plugin =
(com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin)XMPPServer.getInstance().get
PluginManager().getPlugin("redfire");
It's just my first thought. I haven't looked at the code very deeply.
G.
Original comment by gtim...@gmail.com
on 26 Aug 2011 at 6:00
same problem here
Original comment by Robinlu1...@gmail.com
on 15 Oct 2011 at 5:59
同样的问题,而且不仅仅这一个问题.
明显地,redfire-370-0.0.06.zip不兼容openfire 3.7.
stack trace:
Red5XMPP starting in scope xmpp D:\我的文档\Desktop\work\XMPP\openfire_src
Red5XMPP version 0.0.0.1
0 [pool-8-thread-1]ERROR
com.ifsoft.iftalk.plugin.voicebridge.SiteDao.getSites
-com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
'openfire_src.ofvoicebridge' doesn't exist
14594[pool-8-thread-1]WARN org.jivesoftware.database.SequenceManager.createNewID -Autocreating jiveID row for type '200'
93 [pool-8-thread-1]INFO com.ifsoft.iftalk.plugin.voicebridge.SiteDao.insert -Adding new site pyw
109 [pool-8-thread-1]ERROR com.ifsoft.iftalk.plugin.voicebridge.SiteDao.insert -Table 'openfire_src.ofvoicebridge' doesn't exist
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'openfire_src.ofvoicebridge' doesn't exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.Statement$$EnhancerByProxool$$11d2b68c.executeUpdate(<generated>)
at com.ifsoft.iftalk.plugin.voicebridge.SiteDao.insert(SiteDao.java:111)
at org.red5.server.webapp.voicebridge.Application.appStart(Application.java:102)
at org.red5.server.adapter.MultiThreadedApplicationAdapter.start(MultiThreadedApplicationAdapter.java:413)
at org.red5.server.Scope.start(Scope.java:1175)
at org.red5.server.Scope.init(Scope.java:910)
at org.red5.server.WebScope.register(WebScope.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.red5.server.war.WarLoaderServlet.contextInitialized(WarLoaderServlet.java:114)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:228)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:118)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startHTTPBindListeners(ConnectionManagerImpl.java:555)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:168)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$0(ConnectionManagerImpl.java:127)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:140)
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:570)
at org.jivesoftware.openfire.container.PluginManager.access$6(PluginManager.java:568)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1079)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
java.sql.SQLException: Table 'openfire_src.ofvoicebridge' doesn't exist
at com.ifsoft.iftalk.plugin.voicebridge.SiteDao.insert(SiteDao.java:116)
at org.red5.server.webapp.voicebridge.Application.appStart(Application.java:102)
at org.red5.server.adapter.MultiThreadedApplicationAdapter.start(MultiThreadedApplicationAdapter.java:413)
at org.red5.server.Scope.start(Scope.java:1175)
at org.red5.server.Scope.init(Scope.java:910)
at org.red5.server.WebScope.register(WebScope.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.red5.server.war.WarLoaderServlet.contextInitialized(WarLoaderServlet.java:114)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:228)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:118)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startHTTPBindListeners(ConnectionManagerImpl.java:555)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:168)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$0(ConnectionManagerImpl.java:127)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:140)
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:570)
at org.jivesoftware.openfire.container.PluginManager.access$6(PluginManager.java:568)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1079)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Original comment by pcens...@gmail.com
on 26 Oct 2011 at 5:23
I have the same error. Anyone has the solution?
Original comment by igoraran...@gmail.com
on 26 Oct 2011 at 11:22
same here, openfire 3.7.1
Original comment by yann.lol...@gmail.com
on 29 Nov 2011 at 4:12
Actually this is just a matter of enabling http binding in openfire
Original comment by yann.lol...@gmail.com
on 29 Nov 2011 at 5:08
I have the same problem: OpenFire 3.7.1 and plugin redfire-370-0.0.06. It all
runs on Windows XP SP3 on VMWare Workstation, Java(TM) SE Runtime Environment
(build 1.6.0_18-b07).
The exception I get is:
2011.11.25 16:00:48 org.jivesoftware.openfire.container.PluginServlet -
com.ifsoft.redfire.RedfirePlugin cannot be cast to
com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
java.lang.ClassCastException: com.ifsoft.redfire.RedfirePlugin cannot be cast
to com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
at com.ifsoft.iftalk.plugin.voicebridge.view.VoiceBridgeSummary.init(VoiceBridgeSummary.java:37)
at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServlet.java:177)
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:464)
at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java:80)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1067)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
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)
2011.11.25 16:17:24 org.jivesoftware.openfire.container.PluginServlet -
com.ifsoft.redfire.RedfirePlugin cannot be cast to
com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
java.lang.ClassCastException: com.ifsoft.redfire.RedfirePlugin cannot be cast
to com.ifsoft.iftalk.plugin.voicebridge.RedfirePlugin
at com.ifsoft.iftalk.plugin.voicebridge.view.VoiceBridgeSummary.init(VoiceBridgeSummary.java:37)
at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServlet.java:177)
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:464)
at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java:80)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1067)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
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)
Original comment by michal.o...@gmail.com
on 30 Nov 2011 at 11:21
Same here - Openfire: 3.7.1 - Redfire: 0.0.0.6
Original comment by o...@stephan.homeunix.net
on 5 Dec 2011 at 5:39
We also getting the same error. Openfire 3.7.1 checked with redfire 0.0.0.5/6.
Any solution or workaround..?
Original comment by hiranth...@gmail.com
on 27 Dec 2011 at 12:21
same question, need help.
Original comment by season....@gmail.com
on 25 Feb 2012 at 9:24
Original issue reported on code.google.com by
nelisson...@gmail.com
on 27 Jun 2011 at 6:31