Problems with IQProvider

76 views
Skip to first unread message

Keywan Najafi Tonekaboni

unread,
Apr 13, 2008, 10:34:16 AM4/13/08
to v2whit...@googlegroups.com
Hi,

i "steal" how you implented the WhiteboardNotification/Invation and it
works fine. I just copy the Classes in my project an the only things I
changed was the package name and the import of the SVGConstants (of
course I use here my own values). Nothing more.

But I got this error:

java.lang.IllegalArgumentException: Provider must be an IQProvider or a
Class instance.
at
org.jivesoftware.smack.provider.ProviderManager.addIQProvider(ProviderManager.java:314)
at
org.jivesoftware.spark.plugin.PluginClassLoader.loadSmackProvider(PluginClassLoader.java:142)
at
org.jivesoftware.spark.plugin.PluginClassLoader.checkForSmackProviders(PluginClassLoader.java:102)
at
org.jivesoftware.spark.plugin.PluginClassLoader.addPlugin(PluginClassLoader.java:87)
at
org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:531)
at
org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:170)
at org.jivesoftware.spark.Workspace$4.run(Workspace.java:257)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.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)


Did you had this problem, too? I compared my "WhiteboardPlugin"-Class
with yours and couldn't find anything related, whats different. I just
do it the way like you. Do you have any idea?

Regards,

Keywan

--
Keywan Najafi Tonekaboni
http://www.prometoys.net

people@world:/# apt-get --purge remove dominion
After unpacking world will be freed.
You are about to do something potentially beneficial
To continue type in the phrase 'Yes, do as We say!'

Ryan Graham

unread,
Apr 15, 2008, 1:14:09 PM4/15/08
to V2 Whiteboard
Hi Keywan,

I have not see that error before. Looking at the stack trace you
posted there are no references to code that is not part of Spark, so
it is difficult to know where your problem is. I would suggest you
look closely at where you are registering your IQ provider(s) and make
sure your classes properly implements the IQProvider interface and
extends the IQ class.

Hope that helps,
Ryan
Reply all
Reply to author
Forward
0 new messages