[jitsi-dev] Debugging from within Eclipse Indigo


#1

I am trying to debug Jitsi from within Eclipse Indigo on a Debian 64 system.

I tried to follow this documentation as far as possible (replacing
Subclipse by Subversive)
http://www.jitsi.org/index.php/Documentation/ConfigureEclipseNew

While starting Jitsi from within Eclipse I see the the errors below.
After that Jitsi continues to start.

I am setting
PATH
to
$PATH:/home/andreas/workspace/jitsi/lib/native/linux-64/
in the "Debug Configurations" "Environment" tab

Any suggestions?

Cheers,
Andreas

···

---

13:01:28.920 SCHWERWIEGEND: impl.hid.HIDServiceImpl.<init>().51 Error
when creating Robot/NativeKeyboard instance
java.lang.UnsatisfiedLinkError: no hid in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at
net.java.sip.communicator.impl.hid.NativeKeyboard.<clinit>(NativeKeyboard.java:18)
    at
net.java.sip.communicator.impl.hid.HIDServiceImpl.<init>(HIDServiceImpl.java:47)
    at
net.java.sip.communicator.impl.hid.HIDActivator.start(HIDActivator.java:47)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)
13:01:30.326 SCHWERWIEGEND:
impl.neomedia.device.DeviceConfiguration.initialize().312 Failed to
initialize media.
java.lang.NullPointerException
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.setAudioSystem(DeviceConfiguration.java:893)
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.extractConfiguredCaptureDevices(DeviceConfiguration.java:405)
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.initialize(DeviceConfiguration.java:308)
    at
net.java.sip.communicator.impl.neomedia.MediaServiceImpl.start(MediaServiceImpl.java:550)
    at
net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:131)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)
13:01:30.350 SCHWERWIEGEND:
impl.neomedia.device.DeviceConfiguration.registerCustomRenderers().1187
Failed to register custom Renderer
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer
with JMF.
java.lang.UnsatisfiedLinkError: no jdic_misc in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at org.jdesktop.jdic.misc.impl.LinuxAlerter.<init>(LinuxAlerter.java:48)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jdesktop.jdic.misc.Alerter.loadLinux(Unknown Source)
    at org.jdesktop.jdic.misc.Alerter.newInstance(Unknown Source)
    at
net.java.sip.communicator.plugin.chatalerter.ChatAlerterActivator.start(ChatAlerterActivator.java:64)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)


#2

На 25.06.11 13:35, Andreas Kuckartz написа:

I am trying to debug Jitsi from within Eclipse Indigo on a Debian 64 system.

I tried to follow this documentation as far as possible (replacing
Subclipse by Subversive)
http://www.jitsi.org/index.php/Documentation/ConfigureEclipseNew

While starting Jitsi from within Eclipse I see the the errors below.
After that Jitsi continues to start.

I am setting
PATH
to
$PATH:/home/andreas/workspace/jitsi/lib/native/linux-64/
in the "Debug Configurations" "Environment" tab

Any suggestions?

The best rule of thumb when setting up any IDE to run Jitsi is to mimic
behaviour from build.xml. Whether you run the project from "ant" or
"Eclipse" doesn't really change a lot: they both just start Java with a
bunch of parameters. Hence, all you need to do is to simply look at the
"run" build.xml target and to make sure that all the params you see
there are also set in Eclipse.

The error below indicates a problem with your
LD_LIBRARY_PATH/java.library.path settings, so that would be a good
place to start looking.

Hope this helps,
Emil

···

Cheers,
Andreas
---

13:01:28.920 SCHWERWIEGEND: impl.hid.HIDServiceImpl.<init>().51 Error
when creating Robot/NativeKeyboard instance
java.lang.UnsatisfiedLinkError: no hid in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at
net.java.sip.communicator.impl.hid.NativeKeyboard.<clinit>(NativeKeyboard.java:18)
    at
net.java.sip.communicator.impl.hid.HIDServiceImpl.<init>(HIDServiceImpl.java:47)
    at
net.java.sip.communicator.impl.hid.HIDActivator.start(HIDActivator.java:47)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)
13:01:30.326 SCHWERWIEGEND:
impl.neomedia.device.DeviceConfiguration.initialize().312 Failed to
initialize media.
java.lang.NullPointerException
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.setAudioSystem(DeviceConfiguration.java:893)
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.extractConfiguredCaptureDevices(DeviceConfiguration.java:405)
    at
net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.initialize(DeviceConfiguration.java:308)
    at
net.java.sip.communicator.impl.neomedia.MediaServiceImpl.start(MediaServiceImpl.java:550)
    at
net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:131)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)
13:01:30.350 SCHWERWIEGEND:
impl.neomedia.device.DeviceConfiguration.registerCustomRenderers().1187
Failed to register custom Renderer
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer
with JMF.
java.lang.UnsatisfiedLinkError: no jdic_misc in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at org.jdesktop.jdic.misc.impl.LinuxAlerter.<init>(LinuxAlerter.java:48)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jdesktop.jdic.misc.Alerter.loadLinux(Unknown Source)
    at org.jdesktop.jdic.misc.Alerter.newInstance(Unknown Source)
    at
net.java.sip.communicator.plugin.chatalerter.ChatAlerterActivator.start(ChatAlerterActivator.java:64)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:662)

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
http://jitsi.org FAX: +33.1.77.62.47.31


#3

That helped. In addition to PATH I now also set these two environment
variables in the configuration:
LD_LIBRARY_PATH
DYLD_LIBRARY_PATH

Cheers,
Andreas

···

Am 25.06.2011 13:46, schrieb Emil Ivov:

The error below indicates a problem with your
LD_LIBRARY_PATH/java.library.path settings, so that would be a good
place to start looking.