[sip-comm-dev] Problem when starting SC out of Eclipse


#1

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me an
IM (SIP). However, if I open the message window, the message is there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because the
system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create a
systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unk
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unkno
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init

(SystrayServiceJdicImpl.java:87)

  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayAct
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction
.java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as
it is described on the webpages.

Thanks a lot,
Ralph Weires

···

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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


#2

Are your sure to have eclipse configured as described in
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are
not found. The startuppath MUST be %path%;./lib/native/windows or any other
place where the native DLLs are located.

···

-----Ursprüngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working
fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me
an
IM (SIP). However, if I open the message window, the message is there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because the
system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create a
systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Un
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unkn
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<ini
t
>(SystrayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayAc
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActio
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as
it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and
may also be privileged.
If you are not the designated recipient, please notify the sender
immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of
the information contained in this e-mail or any attachments is strictly
prohibited and may be unlawful.

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

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


#3

Yes, I just double-checked to make sure I entered the path exactly as described on the webpage, but it still doesn't work. I can tell that entering the path makes a difference though, because the stack trace of the error I get looks different with/without the path being set correctly.

Without setting the path, the tray classes can't be found and I get this trace:

09:05:18.853 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create a systray!
java.lang.UnsatisfiedLinkError: no tray in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown Source)
  at org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(SystrayServiceJdicImpl.java:87)
  at net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivator.java:51)
  at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Having set the path according to the instructions, the trace looks as follows:

09:07:50.989 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create a systray!
java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Ljava/lang/String;)V
  at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Native Method)
  at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown Source)
  at org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(SystrayServiceJdicImpl.java:87)
  at net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivator.java:51)
  at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any other things I might have missed?

Thanks,
Ralph

···

-----Original Message-----

From: Thomas Hofer [mailto:mailinglisten@familie-hofer.net]

Sent: Tuesday, October 16, 2007 8:12 AM
To: dev@sip-communicator.dev.java.net
Subject: AW: [sip-comm-dev] Problem when starting SC out of Eclipse

Are your sure to have eclipse configured as described in http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are not found. The startuppath MUST be %path%;./lib/native/windows or any other place where the native DLLs are located.

-----Ursprüngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working
fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me
an IM (SIP). However, if I open the message window, the message is
there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because
the system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create
a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
n
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
n
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
i
t
>(SystrayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
c
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
o
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as
it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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


#4

I faced the same problem. I fixed it by adding another VM Argument to the
Eclipse Run Dialog.

-Djava.library.path=lib\native\windows

Apparently, the environment variable you add to the runtime doesn't work.
This approach is sure to work. Also, make sure you have all the dlls you
need under lib\native\windows (assuming you are running on windows).

···

-----Original Message-----

From: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]

Sent: Tuesday, 16 October 2007 3:31 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

Yes, I just double-checked to make sure I entered the path exactly as
described on the webpage, but it still doesn't work. I can tell that
entering the path makes a difference though, because the stack trace of the
error I get looks different with/without the path being set correctly.

Without setting the path, the tray classes can't be found and I get this
trace:

09:05:18.853 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError: no tray in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Having set the path according to the instructions, the trace looks as
follows:

09:07:50.989 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Ljava
/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Nativ
e Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any other things I might have missed?

Thanks,
Ralph

-----Original Message-----

From: Thomas Hofer [mailto:mailinglisten@familie-hofer.net]

Sent: Tuesday, October 16, 2007 8:12 AM
To: dev@sip-communicator.dev.java.net
Subject: AW: [sip-comm-dev] Problem when starting SC out of Eclipse

Are your sure to have eclipse configured as described in
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are
not found. The startuppath MUST be %path%;./lib/native/windows or any other
place where the native DLLs are located.

-----Ursprüngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working
fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me
an IM (SIP). However, if I open the message window, the message is
there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because
the system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create
a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
n
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
n
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
i
t
>(SystrayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
c
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
o
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as
it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may
also be privileged.
If you are not the designated recipient, please notify the sender
immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the
information contained in this e-mail or any attachments is strictly
prohibited and may be unlawful.

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

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


#5

Thanks for the input, but unfortunately this also doesn't fix the problem for me :frowning:

I tried it now in all constellations (VM argument, environment variable, both, ...). It only works when I start SC using the ant file. I do think I got all the dlls in the lib/native/windows directory. There are 26 files: one .gm file, two two .exe and the rest dlls.

I also tried to point the variables to another directory where I had previously installed an older binary SC version, but that didn't work either.

Btw: After I execute an "ant rebuild", I also get an exception telling me that the media.jar library can't be found. I solved this by just copying the file from sc-bundles/os-specific/windows directly to sc-bundles. I don't think there is a connection between these two issues, right?

Ralph

···

-----Original Message-----

From: Asad Nasir [mailto:anasir@istnetworks.com]

Sent: Tuesday, October 16, 2007 1:05 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

I faced the same problem. I fixed it by adding another VM Argument to the Eclipse Run Dialog.

-Djava.library.path=lib\native\windows

Apparently, the environment variable you add to the runtime doesn't work.
This approach is sure to work. Also, make sure you have all the dlls you need under lib\native\windows (assuming you are running on windows).

-----Original Message-----

From: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]

Sent: Tuesday, 16 October 2007 3:31 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

Yes, I just double-checked to make sure I entered the path exactly as described on the webpage, but it still doesn't work. I can tell that entering the path makes a difference though, because the stack trace of the error I get looks different with/without the path being set correctly.

Without setting the path, the tray classes can't be found and I get this
trace:

09:05:18.853 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError: no tray in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Having set the path according to the instructions, the trace looks as
follows:

09:07:50.989 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Ljava
/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Nativ
e Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any other things I might have missed?

Thanks,
Ralph

-----Original Message-----

From: Thomas Hofer [mailto:mailinglisten@familie-hofer.net]

Sent: Tuesday, October 16, 2007 8:12 AM
To: dev@sip-communicator.dev.java.net
Subject: AW: [sip-comm-dev] Problem when starting SC out of Eclipse

Are your sure to have eclipse configured as described in http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are not found. The startuppath MUST be %path%;./lib/native/windows or any other place where the native DLLs are located.

-----Ursprüngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working
fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me
an IM (SIP). However, if I open the message window, the message is
there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because
the system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create
a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
n
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
n
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
i
t
>(SystrayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
c
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
o
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as
it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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


#6

Hi Ralph,

Thanks for the input, but unfortunately this also doesn't fix the problem for me :frowning:

I tried it now in all constellations (VM argument, environment variable, both, ...). It only works when I start SC using the ant file. I do think I got all the dlls in the lib/native/windows directory. There are 26 files: one .gm file, two two .exe and the rest dlls.

I also tried to point the variables to another directory where I had previously installed an older binary SC version, but that didn't work either.

About the problem with the systray I have found this link: http://www.limewire.org/forum/archive/index.php/t-1007.html, which have pointed me to a solution that have worked for me. Try to remove from your classpath all jdic_stub.jar-s for other operating systems than windows. I should say though, that what Asad Nasir has proposed also worked for me.

Btw: After I execute an "ant rebuild", I also get an exception telling me that the media.jar library can't be found. I solved this by just copying the file from sc-bundles/os-specific/windows directly to sc-bundles. I don't think there is a connection between these two issues, right?

I have also experienced that and I found out that there is an ant target "-deploy-os-specific-bundles", which is called when the "run" target is executed and is charged to copy the right media.jar depending on the OS. However the SIPCommunicator main method won't do this preliminary operation. We should either add some code there which discover the operating system and copies the right file, or find another solution implicating ant.

Regards,
Yana

···

ralph.weires@hitec.lu wrote:

Ralph

-----Original Message-----
From: Asad Nasir [mailto:anasir@istnetworks.com] Sent: Tuesday, October 16, 2007 1:05 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

I faced the same problem. I fixed it by adding another VM Argument to the Eclipse Run Dialog.

-Djava.library.path=lib\native\windows

Apparently, the environment variable you add to the runtime doesn't work.
This approach is sure to work. Also, make sure you have all the dlls you need under lib\native\windows (assuming you are running on windows).

-----Original Message-----
From: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Sent: Tuesday, 16 October 2007 3:31 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

Yes, I just double-checked to make sure I entered the path exactly as described on the webpage, but it still doesn't work. I can tell that entering the path makes a difference though, because the stack trace of the error I get looks different with/without the path being set correctly.

Without setting the path, the tray classes can't be found and I get this
trace:

09:05:18.853 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError: no tray in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Having set the path according to the instructions, the trace looks as
follows:

09:07:50.989 SEVERE: impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Ljava
/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative(Nativ
e Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<init>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayActivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any other things I might have missed?

Thanks,
Ralph

-----Original Message-----
From: Thomas Hofer [mailto:mailinglisten@familie-hofer.net]
Sent: Tuesday, October 16, 2007 8:12 AM
To: dev@sip-communicator.dev.java.net
Subject: AW: [sip-comm-dev] Problem when starting SC out of Eclipse

Are your sure to have eclipse configured as described in http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are not found. The startuppath MUST be %path%;./lib/native/windows or any other place where the native DLLs are located.

-----Urspr�ngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in Windows), perhaps someone of you can give me a hint as to what I'm missing.

If I run SC from the Ant file (rebuild/run), everything is working fine.
I can also start/debug out of Eclipse, but in that case some things aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me an IM (SIP). However, if I open the message window, the message is there.
- Also, if I have already a message window open for a contact, it doesn't update properly when a new message comes in. The message just won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because the system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
n
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
n
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
i
t

(SystrayServiceJdicImpl.java:87)

  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
c
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
o
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just as it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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

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


#7

Hi Yana,

That finally did it, thanks a lot for the hint! :smiley:

Cheers,
Ralph

···

-----Original Message-----

From: Yana Stamcheva [mailto:yana@sip-communicator.org]

Sent: Tuesday, October 16, 2007 3:54 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi Ralph,

ralph.weires@hitec.lu wrote:

Thanks for the input, but unfortunately this also doesn't fix the
problem for me :frowning:

I tried it now in all constellations (VM argument, environment variable, both, ...). It only works when I start SC using the ant file. I do think I got all the dlls in the lib/native/windows directory. There are 26 files: one .gm file, two two .exe and the rest dlls.

I also tried to point the variables to another directory where I had previously installed an older binary SC version, but that didn't work either.

About the problem with the systray I have found this link:
http://www.limewire.org/forum/archive/index.php/t-1007.html, which have pointed me to a solution that have worked for me. Try to remove from your classpath all jdic_stub.jar-s for other operating systems than windows. I should say though, that what Asad Nasir has proposed also worked for me.

Btw: After I execute an "ant rebuild", I also get an exception telling me that the media.jar library can't be found. I solved this by just copying the file from sc-bundles/os-specific/windows directly to sc-bundles. I don't think there is a connection between these two issues, right?

I have also experienced that and I found out that there is an ant target "-deploy-os-specific-bundles", which is called when the "run" target is executed and is charged to copy the right media.jar depending on the OS.
  However the SIPCommunicator main method won't do this preliminary operation. We should either add some code there which discover the operating system and copies the right file, or find another solution implicating ant.

Regards,
Yana

Ralph

-----Original Message-----
From: Asad Nasir [mailto:anasir@istnetworks.com]
Sent: Tuesday, October 16, 2007 1:05 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

I faced the same problem. I fixed it by adding another VM Argument to the Eclipse Run Dialog.

-Djava.library.path=lib\native\windows

Apparently, the environment variable you add to the runtime doesn't work.
This approach is sure to work. Also, make sure you have all the dlls you need under lib\native\windows (assuming you are running on windows).

-----Original Message-----
From: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Sent: Tuesday, 16 October 2007 3:31 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] Problem when starting SC out of Eclipse

Yes, I just double-checked to make sure I entered the path exactly as described on the webpage, but it still doesn't work. I can tell that entering the path makes a difference though, because the stack trace of the error I get looks different with/without the path being set correctly.

Without setting the path, the tray classes can't be found and I get
this
trace:

09:05:18.853 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError: no tray in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
nknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
nown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
ctivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
on.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Having set the path according to the instructions, the trace looks as
follows:

09:07:50.989 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91
Failed to create a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(Ljava
/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNative
(Nativ
e Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(U
nknown
Source)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unk
nown
Source)
  at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<in
>(Sy
strayServiceJdicImpl.java:87)
  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(SystrayA
ctivat
or.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActi
on.jav
a:509)
  at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any other things I might have missed?

Thanks,
Ralph

-----Original Message-----
From: Thomas Hofer [mailto:mailinglisten@familie-hofer.net]
Sent: Tuesday, October 16, 2007 8:12 AM
To: dev@sip-communicator.dev.java.net
Subject: AW: [sip-comm-dev] Problem when starting SC out of Eclipse

Are your sure to have eclipse configured as described in http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew.
The missing icon normally comes from the issue, that some native dlls are not found. The startuppath MUST be %path%;./lib/native/windows or any other place where the native DLLs are located.

-----Ursprüngliche Nachricht-----
Von: ralph.weires@hitec.lu [mailto:ralph.weires@hitec.lu]
Gesendet: Montag, 15. Oktober 2007 16:16
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] Problem when starting SC out of Eclipse

Hi,

I have a problem when running / debugging SC out of Eclipse (in
Windows), perhaps someone of you can give me a hint as to what I'm
missing.

If I run SC from the Ant file (rebuild/run), everything is working
fine.
I can also start/debug out of Eclipse, but in that case some things
aren't working properly:

- The sytem tray icon of SC is not installed
- I don't get any notification if someone in my contact list sends me
an IM (SIP). However, if I open the message window, the message is
there.
- Also, if I have already a message window open for a contact, it
doesn't update properly when a new message comes in. The message just
won't display, until I close the window and re-open it again.

The log shows me one Exception when starting SC, apparently because
the system tray icon can't be initialized:
14:23:43.931 SEVERE:
impl.systray.jdic.SystrayServiceJdicImpl.<init>().91 Failed to create
a systray!
java.lang.UnsatisfiedLinkError:
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNativ
e
(
L
java/lang/String;)V
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.initNativ
e
(
N
ative Method)
  at
org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(
U
n
k
nown Sousiprce)
  at
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Un
k
n
o
wn Source)
  at
org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown
Source)
  at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
  at
net.java.sip.communicator.impl.systray.jdic.SystrayServiceJdicImpl.<i
n
i
t

(SystrayServiceJdicImpl.java:87)

  at
net.java.sip.communicator.impl.systray.SystrayActivator.start(Systray
A
c
t
ivator.java:51)
  at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
i
o
n
..java:509)
  at
org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
  at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:807)
  at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
  at java.lang.Thread.run(Thread.java:619)

Any idea how I can fix this? Btw, I set the Eclipse project up just
as it is described on the webpages.

Thanks a lot,
Ralph Weires

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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

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

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

###########################################
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged.
If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper).
Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.

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


#8

Oh, sorry for that! I forgot the change I did a long time ago in my local
build.xml. You are right, the point is, that -deploy-os-specific-bundles is
not called in the normal run-target. However,

I think we should change this,

as it can cause errors and is not documented (I think) that you have to call
it manually after calling "clean" or calling the first time.

Cheers. thomas

···

-----Original Message-----
From: Yana Stamcheva [mailto:yana@sip-communicator.org]
Sent: Tuesday, October 16, 2007 3:54 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] Problem when starting SC out of Eclipse

I have also experienced that and I found out that there is an ant
target "-deploy-os-specific-bundles", which is called when the "run"
target is executed and is charged to copy the right media.jar depending
on the OS.

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


#9

Hi!

I think I found an issue concerning setting a custom subscription time.
The custom time is set in the wizard:

accountProperties.put(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION,
                registration.getSubscriptionExpiration());

but read in the ProtocolProviderService with
        String expiresStr =
SipActivator.getConfigurationService().getString(
            REGISTRATION_EXPIRATION);

The two values differ. I think the correct line should be:
       String expiresStr = (String) accountID.getAccountProperties()
            .get(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION);
With this fix it works the way I expect.
But is this the behavior it should have?

Cheers, thomas

···

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


#10

Hi Thomas,

Thanks for interesting you in the SIMPLE world :slight_smile:
However, the problem that you've seen isn't really one if I understand you well:
The line you seems quote in the ProtocolProviderService is the line defining the registration expiration value of the sip account which is not related to SIMPLE but to SIP itself.
You perhaps didn't see the lines 672-674 of the same file:
                String subscriptionString = (String) accountID
                    .getAccountProperties().get(ProtocolProviderFactory
                        .SUBSCRIPTION_EXPIRATION);
The lines around this one are related to the SIMPLE initialization and seems quite correct.

Cheers,
Ben.

Hofer Thomas a �crit :

···

Hi!

I think I found an issue concerning setting a custom subscription time.
The custom time is set in the wizard:

accountProperties.put(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION,
                registration.getSubscriptionExpiration());

but read in the ProtocolProviderService with
        String expiresStr =
SipActivator.getConfigurationService().getString(
            REGISTRATION_EXPIRATION);

The two values differ. I think the correct line should be:
       String expiresStr = (String) accountID.getAccountProperties()
            .get(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION);
With this fix it works the way I expect. But is this the behavior it should have?

Cheers, thomas

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

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