Hello JD,
Looks like a copy paste error.
Make sure that when you register your service, you do so
using the class
name of your own service and not the one of the
ProtocolProviderService.
Hope this helps.
Emil
JD wrote:
> Hi devs,
>
> I'm trying to register the service i'm working on...and
i've got an
> error message that I can't figure out.
>
> here is the error ( make target ends with no error)
appearing when I
> execute the run target:
>
> ERROR: EventDispatcher: Error during dispatch.
> (java.lang.ClassCastException:
>
net.java.sip.communicator.impl.spellcheck.SpellCheckServiceI
mpl cannot
> be cast to
>
net.java.sip.communicator.service.protocol.ProtocolProviderS
ervice )
> java.lang.ClassCastException:
>
net.java.sip.communicator.impl.spellcheck.SpellCheckServiceI
mpl cannot
> be cast to
>
net.java.sip.communicator.service.protocol.ProtocolProviderS
ervice
> at
>
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJd
icImpl.serviceChanged(SystrayServiceJdicImpl.java:302)
> at
>
org.apache.felix.framework.util.EventDispatcher.invokeServic
eListenerCallback(EventDispatcher.java:712)
> at
>
org.apache.felix.framework.util.EventDispatcher.fireEventImm
ediately(EventDispatcher.java:570)
> at
>
org.apache.felix.framework.util.EventDispatcher.fireServiceE
vent
> (EventDispatcher.java:502)
> at
>
org.apache.felix.framework.Felix.fireServiceEvent(Felix.java
:2843)
> at
org.apache.felix.framework.Felix.access$100(Felix.java:36)
> at
>
org.apache.felix.framework.Felix$1.serviceChanged(Felix.java
:242)
> at
>
org.apache.felix.framework.ServiceRegistry.fireServiceChange
d(ServiceRegistry.java:435)
> at
>
org.apache.felix.framework.ServiceRegistry.registerService(S
erviceRegistry.java:71)
> at
org.apache.felix.framework.Felix.registerService
> (Felix.java:2107)
> at
>
org.apache.felix.framework.BundleContextImpl.registerService
(BundleContextImpl.java:252)
> at
>
org.apache.felix.framework.BundleContextImpl.registerService
(BundleContextImpl.java:230)
> at
>
net.java.sip.communicator.impl.spellcheck.SpellCheckActivato
r.start
> (SpellCheckActivator.java:89)
> at
>
org.apache.felix.framework.util.SecureAction.startActivator(
SecureAction.java:509)
> at
org.apache.felix.framework.Felix._startBundle(Felix.java:126
0)
> at org.apache.felix.framework.Felix.startBundle
(Felix.java:1201)
> at
>
org.apache.felix.framework.Felix.setFrameworkStartLevel(Feli
x.java:807)
> at
>
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl
.java:256)
> at java.lang.Thread.run(Thread.java:619)
>
> but after that the logger finishes to print :
>
> FIN: impl.spellcheck.SpellCheckServiceImpl.start().93
Service Impl:
>
net.java.sip.communicator.impl.spellcheck.SpellCheckActivato
r [REGISTERED]
>
> So is the service registered ?
> and what could be the reason of the error above ?
>
> thx guys and keep up the good work
>
> Jean-Daniel
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe sip-communicator.dev.java.net
For additional commands, e-mail: dev-help sip-communicator.dev.java.net
|