dandaley

ExamplePlugin in Spark 2.0.2?

Discussion created by dandaley on Oct 4, 2006
Latest reply on Oct 5, 2006 by Aaron

Ok.  I started out simple.  I copied the Simple Plugin called ExamplePlugin from the "Developer Guide."  I built in and deployed it to the version of Spark that comes with the development kit.  It deployed fine and printed "Welcome to Spark." 

 

When I deploy the same plugin to v 2.0.2 that I downloaded I get the error below.  What needs to change for this to work work under 2.0.2?  I tried using the jars that came with 2.0.2 instead of the ones that come with the development kit as well... but I get a similar message.

 

Oct 4, 2006 10:36:32 AM org.jivesoftware.spark.util.log.Log error

SEVERE:

java.lang.IllegalArgumentException: Provider must be an IQProvider or a Class instance.

at org.jivesoftware.smack.provider.ProviderManager.addIQProvider(ProviderManager.j ava:277)

at org.jivesoftware.spark.plugin.PluginClassLoader.loadSmackProvider(PluginClassLo ader.java:142)

at org.jivesoftware.spark.plugin.PluginClassLoader.checkForSmackProviders(PluginCl assLoader.java:102)

at org.jivesoftware.spark.plugin.PluginClassLoader.addPlugin(PluginClassLoader.jav a:87)

at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:495)

at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:163)

at org.jivesoftware.spark.Workspace$4.finished(Workspace.java:259)

at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:139)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Oct 4, 2006 10:36:32 AM org.jivesoftware.spark.util.log.Log error

SEVERE: Unable to load plugin com.jivesoftware.spark.examples.ExamplePlugin.

java.lang.ClassCastException: com.jivesoftware.spark.examples.ExamplePlugin

at org.jivesoftware.spark.PluginManager.loadPublicPlugin(PluginManager.java:242)

at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:501)

at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:163)

at org.jivesoftware.spark.Workspace$4.finished(Workspace.java:259)

at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:139)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Outcomes