[jitsi-dev] debug on a mac


#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

That worked and I can step through the application. I'm trying my best
to ignore these though:

Warning: Failed to register our command line argument handler. We won't
be able to handle command line arguments.
java.lang.UnsatisfiedLinkError:
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.setAEGetURLListener(Lnet/java/sip/communicator/util/launchutils/AEGetURLEventHandler$IAEGetURLListener;)V
    at
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.setAEGetURLListener(Native
Method)
    at
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.<init>(AEGetURLEventHandler.java:39)
    at
net.java.sip.communicator.util.launchutils.LaunchArgHandler.<init>(LaunchArgHandler.java:192)
    at
net.java.sip.communicator.util.launchutils.LaunchArgHandler.getInstance(LaunchArgHandler.java:205)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:136)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: org.apache.felix.bundlerepository:1.6.4
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: bcprov:1.51.0
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: org.jitsi.bccontrib:1.0.0.SNAPSHOT
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: org.apache.commons.lang3:3.1.0
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: org.apache.commons.codec:1.4.0
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: org.apache.httpcomponents.httpclient:4.2.3
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: jmork:1.0.5.SNAPSHOT
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: log4j:1.2.17
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique: commons-logging:1.1.2
    at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1305)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)
    at org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793)
    at org.apache.felix.framework.Felix.init(Felix.java:746)
    at org.apache.felix.main.Main.main(Main.java:289)
    at
net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:176)
12:14:27.111 SEVERE: [16] impl.hid.HIDServiceImpl.<init>().54 Error when
creating Robot/NativeKeyboard instance
java.lang.UnsatisfiedLinkError: no hid in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.impl.hid.NativeKeyboard.<clinit>(NativeKeyboard.java:18)
    at
net.java.sip.communicator.impl.hid.HIDServiceImpl.<init>(HIDServiceImpl.java:49)
    at
net.java.sip.communicator.impl.hid.HIDActivator.start(HIDActivator.java:49)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
12:14:27.134 SEVERE: [16] impl.hid.HIDServiceImpl.<init>().54 Error when
creating Robot/NativeKeyboard instance
java.lang.UnsatisfiedLinkError: no hid in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.impl.hid.NativeKeyboard.<clinit>(NativeKeyboard.java:18)
    at
net.java.sip.communicator.impl.hid.HIDServiceImpl.<init>(HIDServiceImpl.java:49)
    at
net.java.sip.communicator.impl.hid.HIDActivator.start(HIDActivator.java:49)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
12:14:27.315 SEVERE: [16]
org.jitsi.impl.neomedia.device.DeviceConfiguration.error() Failed to
register custom Renderer
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer with JMF.
java.lang.UnsatisfiedLinkError: no jnawtrenderer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.<clinit>(JAWTRenderer.java:90)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at
org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1034)
    at
org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:355)
    at
org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:150)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:142)
    at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.java:86)
    at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
    at
org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:115)
    at
net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:380)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: no growl4j in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at org.growl4j.Growl.<clinit>(Unknown Source)
    at
net.java.sip.communicator.impl.growlnotification.GrowlNotificationServiceImpl.start(GrowlNotificationServiceImpl.java:68)
    at
net.java.sip.communicator.impl.growlnotification.GrowlNotificationActivator.start(GrowlNotificationActivator.java:71)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: no globalshortcut in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.impl.globalshortcut.NativeKeyboardHook.<clinit>(NativeKeyboardHook.java:254)
    at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutServiceImpl.<init>(GlobalShortcutServiceImpl.java:56)
    at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutActivator.start(GlobalShortcutActivator.java:101)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: no jmacosxaddrbook in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.plugin.addrbook.macosx.MacOSXAddrBookContactSourceService.<clinit>(MacOSXAddrBookContactSourceService.java:42)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at
net.java.sip.communicator.plugin.addrbook.AddrBookActivator.startService(AddrBookActivator.java:345)
    at
net.java.sip.communicator.plugin.addrbook.AddrBookActivator.start(AddrBookActivator.java:253)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: no globalshortcut in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.impl.globalshortcut.NativeKeyboardHook.<clinit>(NativeKeyboardHook.java:254)
    at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutServiceImpl.<init>(GlobalShortcutServiceImpl.java:56)
    at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutActivator.start(GlobalShortcutActivator.java:101)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: no jmacosxaddrbook in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at
net.java.sip.communicator.plugin.addrbook.macosx.MacOSXAddrBookContactSourceService.<clinit>(MacOSXAddrBookContactSourceService.java:42)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at
net.java.sip.communicator.plugin.addrbook.AddrBookActivator.startService(AddrBookActivator.java:345)
    at
net.java.sip.communicator.plugin.addrbook.AddrBookActivator.start(AddrBookActivator.java:253)
    at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1297)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
12:14:29.119 SEVERE: [51] 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.utils.ImageLoaderServiceImpl cannot
be cast to net.java.sip.communicator.impl.gui.utils.ImageLoaderServiceImpl
java.lang.ClassCastException:
net.java.sip.communicator.impl.gui.utils.ImageLoaderServiceImpl cannot
be cast to net.java.sip.communicator.impl.gui.utils.ImageLoaderServiceImpl
    at
net.java.sip.communicator.impl.gui.utils.ImageLoader.getImageLoaderService(ImageLoader.java:1523)
    at
net.java.sip.communicator.impl.gui.utils.ImageLoader.getImage(ImageLoader.java:1539)
    at
net.java.sip.communicator.impl.gui.main.presence.AccountStatusPanel.<init>(AccountStatusPanel.java:149)
    at
net.java.sip.communicator.impl.gui.main.MainFrame.<init>(MainFrame.java:188)
    at
net.java.sip.communicator.impl.gui.UIServiceImpl.loadApplicationGui(UIServiceImpl.java:148)
    at
net.java.sip.communicator.impl.gui.GuiActivator$1.run(GuiActivator.java:171)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

···

Hello Jitsi Development Community.

I'm trying to step through Jitsi to see how it works. I am using a mac
and eclipse. But I am having trouble following along in the
instructions at:

https://jitsi.org/Documentation/ConfigureEclipseNew

I grab the source from git and it does the make-and-deploy fine. But
when I get to the bottom of the page, and try to debug the code, I get
this error:

Error occurred during initialization of VM
Could not find agent library AEGetURLEventHandlerAgent on the library
path, with error: dlopen(libAEGetURLEventHandlerAgent.dylib, 1): image
not found

I saw somewhere that I can try editing the debug config, adding this an
environment variable is_running_macos true. I tried that and get the
same error.

thank,
Paul

------------------------------

Message: 4
Date: Tue, 14 Oct 2014 14:21:36 +0300
From: Damian Minkov <damencho@jitsi.org>
To: Jitsi Developers <dev@jitsi.org>
Subject: Re: [jitsi-dev] debug on a mac
Message-ID:
    <CAE07f0+98OhzXgVxzPoboGD8dFCeLU2bd67qLzQuF2HkSYSyQA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi,

you can just remove "-agentlib:AEGetURLEventHandlerAgent" and the
error will be gone.

Regards
damencho


#2

That worked and I can step through the application. I'm trying my best to
ignore these though:

Warning: Failed to register our command line argument handler. We won't
be able to handle command line arguments. java.lang.UnsatisfiedLinkError:
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.setAEGetUR

This is because of the removed -agentlib parameter.

va: 136) org.osgi.framework.BundleException: Bundle symbolic name and
version are not unique: org.apache.felix.bundlerepository:1.6.4
    at
    org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1
    305) at
    org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112) at
    org.apache.felix.framework.Felix.reloadBundle(Felix.java:2793) at
    org.apache.felix.framework.Felix.init(Felix.java:746) at
    org.apache.felix.main.Main.main(Main.java:289) at

Try to delete the sip-communicator.bin directory to clean Felix' cache.

net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.ja
va: 176) 12:14:27.111 SEVERE: [16] impl.hid.HIDServiceImpl.<init>().54
Error when creating Robot/NativeKeyboard instance
java.lang.UnsatisfiedLinkError: no hid in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)

And that seems to be caused by a wrong or not configured DYLD_LIBRARY_PATH
environment variable.

Ingo

···

On 2014-10-14 23:21, Paul J. Homlish III wrote: