AnsweredAssumed Answered

ClassCastException AgentWorkgroups with Fastpath

Question asked by DarthGamer on Aug 25, 2009
Latest reply on Jul 26, 2013 by cforce
Was able to compile the Spark's FastPath plugin, but now I'm having a problem trying to run it.
First, I noticed that from the original Fastpath.jar the plugin package starts with com. instead of org. as the source code, and that it has a workgroup.jar  in the lib path. So I replace the fastpath plugin and modified plugin.xml accordingly to use the .org package instead of the .com
However, when I run it, I get the following error in the logs:

Exception in thread "Thread-19" java.lang.ClassCastException: com.jivesoftware.smack.workgroup.packet.AgentWorkgroups cannot be cast to org.jivesoftware.smackx.workgroup.packet.AgentWorkgroups
at org.jivesoftware.smackx.workgroup.agent.Agent.getWorkgroups(
at org.jivesoftware.fastpath.FastpathPlugin$1.construct(
at org.jivesoftware.spark.util.SwingWorker$
at Source)

And I see that the source code is making reference to:
import org.jivesoftware.smackx.workgroup.agent.Agent;
import org.jivesoftware.smackx.workgroup.agent.AgentSession;
import org.jivesoftware.smackx.workgroup.ext.macros.Macros;
import org.jivesoftware.smackx.workgroup.user.Workgroup;

So, should I compile everything with a com package, or do I need to compile workgroup.jar, if so, where can I find the source for it?
Thank you.