Spark

System tray not appearing on certain users computers.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.5.4
  • Fix Version/s: 2.5.7
  • Component/s: General
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

Some users have reported that the system tray no longer shows up on their system. The only change was a move to the JNIWrapper, so I'm guessing that is the culprit. Will need to find and fix.

Activity

Hide
Aaron D Johnson added a comment -

I cannot find a re-open button, but this is not fixed on my system where 2.5.5 was just installed. After installing 2.5.4 and not having a system tray icon, I found the issue already reported and downgraded to 2.5.3. Now that 2.5.5 has been released, the system tray icon is still missing.

Installed versions:

  • Java J2SE Runtime Environment 5.0 Update 11
  • Java SE Runtime Environment 6 Update 1
  • Spark 2.5.5
  • Windows XP Professional SP 1
Show
Aaron D Johnson added a comment - I cannot find a re-open button, but this is not fixed on my system where 2.5.5 was just installed. After installing 2.5.4 and not having a system tray icon, I found the issue already reported and downgraded to 2.5.3. Now that 2.5.5 has been released, the system tray icon is still missing. Installed versions:
  • Java J2SE Runtime Environment 5.0 Update 11
  • Java SE Runtime Environment 6 Update 1
  • Spark 2.5.5
  • Windows XP Professional SP 1
Hide
Anselm McClain added a comment -

I am also not seeing the system tray icon in 2.5.5. Similar configuration. We have seen this with several users in our environment. Agreed that there seems to still be a problem with the icon.

Show
Anselm McClain added a comment - I am also not seeing the system tray icon in 2.5.5. Similar configuration. We have seen this with several users in our environment. Agreed that there seems to still be a problem with the icon.
Hide
Alex Kelly added a comment -

I rebuilt our skinned version using 2.5.5 and the systray icon is NOT working in either windows or linux. I have downloaded the non-skinned version for linux and it also is NOT working.

Show
Alex Kelly added a comment - I rebuilt our skinned version using 2.5.5 and the systray icon is NOT working in either windows or linux. I have downloaded the non-skinned version for linux and it also is NOT working.
Hide
Anselm McClain added a comment -

For me it turned out to be a permissions issue in the spark application directory - users run as non-admins, and so couldn't create new directories underneath c:\program files\spark. When Spark went to expand the plugin JARs, it couldn't, so the JNI wrapper jar never blew up and didn't work.

Adding a post install step to open up the ACLs on this directory before Spark is launched for the first time solved it.

Cheers - ATM

Show
Anselm McClain added a comment - For me it turned out to be a permissions issue in the spark application directory - users run as non-admins, and so couldn't create new directories underneath c:\program files\spark. When Spark went to expand the plugin JARs, it couldn't, so the JNI wrapper jar never blew up and didn't work. Adding a post install step to open up the ACLs on this directory before Spark is launched for the first time solved it. Cheers - ATM
Hide
R. van Zantvoort added a comment -

I agree with Anselm.

The issue (
java.lang.NoClassDefFoundError: java/awt/TrayIcon
at com.jivesoftware.plugin.jniwrapper.NativeSystemTray.<init>(NativeSystemTray.java:102)
at com.jivesoftware.plugin.jniwrapper.JNIWrapperPlugin.initialize(JNIWrapperPlugin.java:40)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:398)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
)

Was resolved when running Spark once with full write rights on the plugin directory. This is because the jniwrapper.jar apparently needs to unpack there.
Once it's unpacked, you don't even need the write rights on the plugins directory anymore, and Spark runs fine.

On Linux, the problem should be the same, as the solution.

Show
R. van Zantvoort added a comment - I agree with Anselm. The issue ( java.lang.NoClassDefFoundError: java/awt/TrayIcon at com.jivesoftware.plugin.jniwrapper.NativeSystemTray.<init>(NativeSystemTray.java:102) at com.jivesoftware.plugin.jniwrapper.JNIWrapperPlugin.initialize(JNIWrapperPlugin.java:40) at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:398) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ) Was resolved when running Spark once with full write rights on the plugin directory. This is because the jniwrapper.jar apparently needs to unpack there. Once it's unpacked, you don't even need the write rights on the plugins directory anymore, and Spark runs fine. On Linux, the problem should be the same, as the solution.
Hide
Szabolcs Illes added a comment -

I have the same problem:

Kubuntu 9.04 32 bit with KDE 4.3.1

user owns the folder so has permission to write to folder

Show
Szabolcs Illes added a comment - I have the same problem: Kubuntu 9.04 32 bit with KDE 4.3.1 user owns the folder so has permission to write to folder
Hide
Tunc Gercek added a comment -

I'm running Spark 2.5.8 on Linux (Fedora 11 and Fedora 12), and it consistently fails to display a system tray icon when I close the main window. I have to "kill" the process in order to terminate Spark.

I've tried Java 1.5 and Java 1.6, and also pointed Spark to use its own "jre" directory, the problem is still the same.

There are no file permission issues:

  • I opened up the whole directory structure to everyone on the computer
  • When that didn't work, I moved the whole directory into the user's home directory

...same problem. No system tray icon.

What am I missing, or is this bug still not fixed?

Show
Tunc Gercek added a comment - I'm running Spark 2.5.8 on Linux (Fedora 11 and Fedora 12), and it consistently fails to display a system tray icon when I close the main window. I have to "kill" the process in order to terminate Spark. I've tried Java 1.5 and Java 1.6, and also pointed Spark to use its own "jre" directory, the problem is still the same. There are no file permission issues:
  • I opened up the whole directory structure to everyone on the computer
  • When that didn't work, I moved the whole directory into the user's home directory
...same problem. No system tray icon. What am I missing, or is this bug still not fixed?

People

Vote (4)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: