[jitsi-dev] Cannot access CallManager


#1

Hello Devs.

I try to build an own GUI Plugin. So, I started with the given example
plugin. First many things work fine, but every time I try to place a
call an error occurred.

I attached an edited version of the example plugin. It just take a
metacontact and tries to call this. I didn't change anything in the
Activator Class. I just try to call the CallManager with selected
metacontact to start a call. But this doesn't work.

If the package which contains the CallManager is added to the
manifest, the following error is given at startup the Jitsi client

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.plugin.exampleplugin [148]: Unable to
resolve 148.0: missing requirement [148.0] package;
(package=net.java.sip.communicator.impl.gui.main.call)
ERROR: Bundle net.java.sip.communicator.plugin.exampleplugin [148]
Error starting reference:file:sc-bundles/exampleplugin.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.plugin.exampleplugin [148]: Unable to
resolve 148.0: missing requirement [148.0] package;
(package=net.java.sip.communicator.impl.gui.main.call))

Without adding the package the example plugin is loaded, but then
there I get following error

15:29:38.321 SEVERE: [37] util.UtilActivator.uncaughtException().108
An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was:
net/java/sip/communicator/impl/gui/main/call/CallManager
java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/call/CallManager
  at
net.java.sip.communicator.plugin.exampleplugin.ExamplePluginMenuItem.actionPerformed(ExamplePluginMenuItem.java:57)
...

- - I import the package in the java-file
- - I can compile this code without errors
- - CallManager.call() is public and static, so there should no problem
to access this method?!

Anyone who can give me a hint to solve this problem?

~Daniel

ExamplePluginMenuItem.java (2.52 KB)

exampleplugin.manifest.mf (986 Bytes)

ExamplePluginMenuItem.java.sig (287 Bytes)

exampleplugin.manifest.mf.sig (287 Bytes)


#2

http://lmgtfy.com/?q=jitsi+NoClassDefFoundError

Ingo

···

-----Original Message-----
From: dev-bounces@jitsi.org [mailto:dev-bounces@jitsi.org] On Behalf Of
Daniel Kühn
Sent: Mittwoch, 11. Juni 2014 21:38
To: Jitsi Developers
Subject: [jitsi-dev] Cannot access CallManager

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Devs.

I try to build an own GUI Plugin. So, I started with the given example
plugin. First many things work fine, but every time I try to place a call an
error occurred.

I attached an edited version of the example plugin. It just take a
metacontact and tries to call this. I didn't change anything in the
Activator Class. I just try to call the CallManager with selected
metacontact to start a call. But this doesn't work.

If the package which contains the CallManager is added to the manifest, the
following error is given at startup the Jitsi client

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.plugin.exampleplugin [148]: Unable to resolve
148.0: missing requirement [148.0] package;
(package=net.java.sip.communicator.impl.gui.main.call)
ERROR: Bundle net.java.sip.communicator.plugin.exampleplugin [148] Error
starting reference:file:sc-bundles/exampleplugin.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.plugin.exampleplugin [148]: Unable to resolve
148.0: missing requirement [148.0] package;
(package=net.java.sip.communicator.impl.gui.main.call))

Without adding the package the example plugin is loaded, but then there I
get following error

15:29:38.321 SEVERE: [37] util.UtilActivator.uncaughtException().108
An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was:
net/java/sip/communicator/impl/gui/main/call/CallManager
java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/call/CallManager
  at
net.java.sip.communicator.plugin.exampleplugin.ExamplePluginMenuItem.actionP
erformed(ExamplePluginMenuItem.java:57)
...

- - I import the package in the java-file
- - I can compile this code without errors
- - CallManager.call() is public and static, so there should no problem to
access this method?!

Anyone who can give me a hint to solve this problem?

~Daniel


#3

Hi.

···

Am 11.06.2014 16:01, schrieb Ingo Bauersachs:

http://lmgtfy.com/?q=jitsi+NoClassDefFoundError

believe it or not, but I already googled it. Unfortunately, I didn't
realize the essential issue. Now I fixed the problem and I can place a
call with my plugin. Thanks for your hint.

~Daniel