[sip-comm-dev] SpellChecker Implementation :Issues with service on the SIP Communicator


#1

Hello SIP Community,

I am student developer enthusiast working on a spell checker service
for the SIP Communicator. Facing some minor issues, hope I can add the
feature soon. Need some help from the experienced developers.

I have implemented the the following packages

"net.java.sip.communicator.service.spellchecker"

"net.java.sip.communicator.impl.spellchecker"

I read the tutorials on the OSGi models provided in the developer
documentation.
Made the appropriate changes to the
felix.client.run.properties,build.xml and followed the standard
classes structure in other similar service packages, example
"net.java.sip.communicator.impl.browserlauncher"

I had to register the JEditorPane in the
"net.java.sip.communicator.impl.gui.main.chat.ChatWriterPanel" to my
spellchecker. So I declare a static method "public static
SpellCheckerService getSpellChecker()" in
"net.java.sip.communicator.impl.gui.GuiActivator".

Finally I register the the JeditorPane "editorpane" declared in
ChatWriterPane by calling
GuiActivator.getSpellChecker().setPane(editorPane);

where setPane is a method in my service to register a JEditorPane with
the spellchecker.

On running the Application, I get an exception when I try to open a
chat windows as,

" 01:38:52.466 SEVERE: util.UtilActivator.uncaughtException().77 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main]
and message was:
net/java/sip/communicator/service/spellchecker/SpellCheckerService
java.lang.NoClassDefFoundError:
net/java/sip/communicator/service/spellchecker/SpellCheckerService
        at net.java.sip.communicator.impl.gui.GuiActivator.getSpellChecker(GuiActivator.java:373)
"

What could the issue be? Is the service not being activated? :expressionless:

Regards
Nitish

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Make sure you're exporting the .service.spellchecker package in the
manifest of the bundle which contains it and that you import it into
the manifest of the UI bundle.

By the way, we have a spell checker in our branches/gsoc08/spellcheck
developed during Google Summer of Code.

···

On Wed, Jul 21, 2010 at 11:19 PM, Nitish Upreti <nitishupreti@gmail.com> wrote:

On running the Application, I get an exception when I try to open a
chat windows as,

" 01:38:52.466 SEVERE: util.UtilActivator.uncaughtException().77 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main]
and message was:
net/java/sip/communicator/service/spellchecker/SpellCheckerService
java.lang.NoClassDefFoundError:
net/java/sip/communicator/service/spellchecker/SpellCheckerService
at net.java.sip.communicator.impl.gui.GuiActivator.getSpellChecker(GuiActivator.java:373)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net