[jitsi-dev] libXss dependency on ubuntu


#1

Tried to install jitsi on a fresh ubuntu 11.10 installation (amd64), and
got the error:
$ jitsi
17:24:48.951 SEVERE: impl.sysactivity.SystemActivityNotifications.<clinit>().94 Error init native functions
java.lang.UnsatisfiedLinkError: /usr/lib/jitsi/lib/native/libsysactivitynotifications.so: libXss.so.1: cannot open shared object file: No such file or directory
  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
  at java.lang.Runtime.loadLibrary0(Runtime.java:840)
  at java.lang.System.loadLibrary(System.java:1047)
  at net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:86)
  at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl$1.run(SystemActivityNotificationsServiceImpl.java:100)
  at java.lang.Thread.run(Thread.java:679)

Was fine after I installed libxss1 manually.

So looks like there's a missing dependency.

I also got:

17:30:17.872 SEVERE: impl.osdependent.SystemTray.getDefaultDesktop().65 Failed to initialize the java.awt.SystemTray implementation.
java.lang.UnsupportedOperationException: java.lang.reflect.InvocationTargetException
  at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:187)
  at net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:61)
  at net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)
  at net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:81)
  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:679)
Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:179)
  ... 9 more
Caused by: java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform
  at java.awt.Desktop.getDesktop(Desktop.java:144)
  ... 14 more

Though everything seems to be working fine.

···

--
Stephane


#2

Hi,

I've just committed a dependency for the missing package. You can test
it in 3747. Thanks for the report.
And for the exception it seems that java is missing support for the
new ubuntu desktop, I think. I was going to install the latest ubuntu
these days and if I got something more on the subject will inform you
:slight_smile:

Thanks once again
damencho

···

On Thu, Oct 27, 2011 at 7:35 PM, Stephane Chazelas <stephane.chazelas@gmail.com> wrote:

Tried to install jitsi on a fresh ubuntu 11.10 installation (amd64), and
got the error:
$ jitsi
17:24:48.951 SEVERE: impl.sysactivity.SystemActivityNotifications.<clinit>().94 Error init native functions
java.lang.UnsatisfiedLinkError: /usr/lib/jitsi/lib/native/libsysactivitynotifications.so: libXss.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:86)
at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl$1.run(SystemActivityNotificationsServiceImpl.java:100)
at java.lang.Thread.run(Thread.java:679)

Was fine after I installed libxss1 manually.

So looks like there's a missing dependency.

I also got:

17:30:17.872 SEVERE: impl.osdependent.SystemTray.getDefaultDesktop().65 Failed to initialize the java.awt.SystemTray implementation.
java.lang.UnsupportedOperationException: java.lang.reflect.InvocationTargetException
at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:187)
at net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:61)
at net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)
at net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:81)
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:679)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:179)
... 9 more
Caused by: java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform
at java.awt.Desktop.getDesktop(Desktop.java:144)
... 14 more

Though everything seems to be working fine.

--
Stephane


#3

Hi,

I've just committed a dependency for the missing package.

Thanks Damian. However, given that this is not actually a dependency,
wouldn't it make more sense to handle the case when it is not there?

Emil

-- sent from my mobile

You can test
it in 3747. Thanks for the report.
And for the exception it seems that java is missing support for the
new ubuntu desktop, I think. I was going to install the latest ubuntu
these days and if I got something more on the subject will inform you
:slight_smile:

Thanks once again
damencho

> Tried to install jitsi on a fresh ubuntu 11.10 installation (amd64), and
> got the error:
> $ jitsi
> 17:24:48.951 SEVERE:

impl.sysactivity.SystemActivityNotifications.<clinit>().94 Error init native
functions

> java.lang.UnsatisfiedLinkError:

/usr/lib/jitsi/lib/native/libsysactivitynotifications.so: libXss.so.1:
cannot open shared object file: No such file or directory

> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
> at java.lang.Runtime.loadLibrary0(Runtime.java:840)
> at java.lang.System.loadLibrary(System.java:1047)
> at

net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:86)

> at

net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl$1.run(SystemActivityNotificationsServiceImpl.java:100)

> at java.lang.Thread.run(Thread.java:679)
>
> Was fine after I installed libxss1 manually.
>
> So looks like there's a missing dependency.
>
> I also got:
>
> 17:30:17.872 SEVERE: impl.osdependent.SystemTray.getDefaultDesktop().65

Failed to initialize the java.awt.SystemTray implementation.

> java.lang.UnsupportedOperationException:

java.lang.reflect.InvocationTargetException

> at

net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:187)

> at

net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:61)

> at

net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)

> at

net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:81)

> 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:679)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

> at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

> at java.lang.reflect.Method.invoke(Method.java:616)
> at

net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:179)

> ... 9 more
> Caused by: java.lang.UnsupportedOperationException: Desktop API is not

supported on the current platform

···

On Oct 28, 2011 9:04 AM, "Damian Minkov" <damencho@jitsi.org> wrote:

On Thu, Oct 27, 2011 at 7:35 PM, Stephane Chazelas > <stephane.chazelas@gmail.com> wrote:
> at java.awt.Desktop.getDesktop(Desktop.java:144)
> ... 14 more
>
> Though everything seems to be working fine.
>
> --
> Stephane
>


#4

Hi,

yes when its not loaded (the exception that Stephane reported), the
SystemActivity reports its not loaded and some events which depends on
this native library are reported as not supported. So in his situation
sleep and network change must be detected through network manager and
system idle will not be available.
Maybe I should remove the stackTrace print and leave only a warning?

damencho

···

On Fri, Oct 28, 2011 at 10:20 AM, Emil Ivov <emcho@jitsi.org> wrote:

On Oct 28, 2011 9:04 AM, "Damian Minkov" <damencho@jitsi.org> wrote:

Hi,

I've just committed a dependency for the missing package.

Thanks Damian. However, given that this is not actually a dependency,
wouldn't it make more sense to handle the case when it is not there?

Emil

-- sent from my mobile

You can test
it in 3747. Thanks for the report.
And for the exception it seems that java is missing support for the
new ubuntu desktop, I think. I was going to install the latest ubuntu
these days and if I got something more on the subject will inform you
:slight_smile:

Thanks once again
damencho

On Thu, Oct 27, 2011 at 7:35 PM, Stephane Chazelas >> <stephane.chazelas@gmail.com> wrote:
> Tried to install jitsi on a fresh ubuntu 11.10 installation (amd64), and
> got the error:
> $ jitsi
> 17:24:48.951 SEVERE:
> impl.sysactivity.SystemActivityNotifications.<clinit>().94 Error init native
> functions
> java.lang.UnsatisfiedLinkError:
> /usr/lib/jitsi/lib/native/libsysactivitynotifications.so: libXss.so.1:
> cannot open shared object file: No such file or directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
> at java.lang.Runtime.loadLibrary0(Runtime.java:840)
> at java.lang.System.loadLibrary(System.java:1047)
> at
> net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:86)
> at
> net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl$1.run(SystemActivityNotificationsServiceImpl.java:100)
> at java.lang.Thread.run(Thread.java:679)
>
> Was fine after I installed libxss1 manually.
>
> So looks like there's a missing dependency.
>
> I also got:
>
> 17:30:17.872 SEVERE: impl.osdependent.SystemTray.getDefaultDesktop().65
> Failed to initialize the java.awt.SystemTray implementation.
> java.lang.UnsupportedOperationException:
> java.lang.reflect.InvocationTargetException
> at
> net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:187)
> at
> net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:61)
> at
> net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)
> at
> net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:81)
> 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:679)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:179)
> ... 9 more
> Caused by: java.lang.UnsupportedOperationException: Desktop API is not
> supported on the current platform
> at java.awt.Desktop.getDesktop(Desktop.java:144)
> ... 14 more
>
> Though everything seems to be working fine.
>
> --
> Stephane
>


#5

Oh ... I didn't realize this was in use by the network detection.

I suppose a dependency is fine then.

Still ... we could bring down the volume of the warning a bit as you
suggested, Damencho.

Cheers,
Emil

На 28.10.11 09:36, Damian Minkov написа:

···

Hi,

yes when its not loaded (the exception that Stephane reported), the
SystemActivity reports its not loaded and some events which depends on
this native library are reported as not supported. So in his situation
sleep and network change must be detected through network manager and
system idle will not be available.
Maybe I should remove the stackTrace print and leave only a warning?

damencho

On Fri, Oct 28, 2011 at 10:20 AM, Emil Ivov <emcho@jitsi.org> wrote:

On Oct 28, 2011 9:04 AM, "Damian Minkov" <damencho@jitsi.org> wrote:

Hi,

I've just committed a dependency for the missing package.

Thanks Damian. However, given that this is not actually a dependency,
wouldn't it make more sense to handle the case when it is not there?

Emil

-- sent from my mobile

You can test
it in 3747. Thanks for the report.
And for the exception it seems that java is missing support for the
new ubuntu desktop, I think. I was going to install the latest ubuntu
these days and if I got something more on the subject will inform you
:slight_smile:

Thanks once again
damencho

On Thu, Oct 27, 2011 at 7:35 PM, Stephane Chazelas >>> <stephane.chazelas@gmail.com> wrote:

Tried to install jitsi on a fresh ubuntu 11.10 installation (amd64), and
got the error:
$ jitsi
17:24:48.951 SEVERE:
impl.sysactivity.SystemActivityNotifications.<clinit>().94 Error init native
functions
java.lang.UnsatisfiedLinkError:
/usr/lib/jitsi/lib/native/libsysactivitynotifications.so: libXss.so.1:
cannot open shared object file: No such file or directory
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
       at java.lang.Runtime.loadLibrary0(Runtime.java:840)
       at java.lang.System.loadLibrary(System.java:1047)
       at
net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:86)
       at
net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl$1.run(SystemActivityNotificationsServiceImpl.java:100)
       at java.lang.Thread.run(Thread.java:679)

Was fine after I installed libxss1 manually.

So looks like there's a missing dependency.

I also got:

17:30:17.872 SEVERE: impl.osdependent.SystemTray.getDefaultDesktop().65
Failed to initialize the java.awt.SystemTray implementation.
java.lang.UnsupportedOperationException:
java.lang.reflect.InvocationTargetException
       at
net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:187)
       at
net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:61)
       at
net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)
       at
net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:81)
       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:679)
Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at
net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:179)
       ... 9 more
Caused by: java.lang.UnsupportedOperationException: Desktop API is not
supported on the current platform
       at java.awt.Desktop.getDesktop(Desktop.java:144)
       ... 14 more

Though everything seems to be working fine.

--
Stephane

--
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