powered by Jive Software

Linux + spark: no open links

Hello,

I’m using spark with Fedora core 5 and when a user send a web link in a window chat, it can’t be opened. Any ideas?

Thanks.

Looking through source code i have found that “netscape” its hardcoded into the sources. Is there anyway to launch firefox without recompilation?

You could create an alias or symlink that points to firefox as quick test to verify that the hardcoded entry is causing your issue.

Hello, I have tried with a symbolic link to firefox and it doesn’t work. Although it works with konqueror and for the moment it is enough for me.

Thanks for the answer.

I had this problem for a while as well and finally looked around and found this post…

Here is what worked for me…

as root:

ln -s /usr/bin/firefox-3.0 /usr/bin/netscape

and worked perfectly by opening a test link from a previous chat in a new tab in my open firefox session.

Hope that helps!

Thanks! This fixes for me in ubuntu 8.04

This bug has been fixed in Spark 2.6.0 (SVN)

I am using Spark 2.6.3 and it does not work for me.

This seems to be fixed in the trunk.

However the same is not available in the latest stable build -2.6.3 that is available for use.

The workaround did not work for us, hence we had to go the length.

Spark 2.7.5 on Ubuntu 15.10 - Problem is still there. Clicking on a link does nothing.

Seems to be working for me. What format of link? Both http://www.example.com and www.example.com worked for me.

Both. Spark shows the links properly in Blue and with an underline. But clicking on it invokes nothing. How do I troubleshoot this?

EDIT: Also, when receiving a file, clicking on “Open” or “Open Folder” does nothing.

From the log:

Feb 16, 2016 3:48:56 PM org.jivesoftware.spark.util.log.Log error

SEVERE: Error launching browser:

java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform

at java.awt.Desktop.getDesktop(Desktop.java:144)

at org.jivesoftware.spark.util.BrowserLauncher.openURL(BrowserLauncher.java:37)

at org.jivesoftware.spark.ui.ChatArea.mouseClicked(ChatArea.java:506)

at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)

at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)

at java.awt.Component.processMouseEvent(Component.java:6538)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6300)

at java.awt.Container.processEvent(Container.java:2236)

at java.awt.Component.dispatchEventImpl(Component.java:4891)

at java.awt.Container.dispatchEventImpl(Container.java:2294)

at java.awt.Component.dispatchEvent(Component.java:4713)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)

at java.awt.Container.dispatchEventImpl(Container.java:2280)

at java.awt.Window.dispatchEventImpl(Window.java:2750)

at java.awt.Component.dispatchEvent(Component.java:4713)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:86)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.awt.EventQueue$4.run(EventQueue.java:729)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

at org.jivesoftware.sparkimpl.plugin.idle.UserIdlePlugin$1.dispatchEvent(UserIdleP lugin.java:182)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:20 1)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:10 5)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Well, i have Ubuntu 15.10 and Xubuntu 15.10 virtual machines, so i’m testing sending messages between them (32-bit btw). I use tar.gz archive of Spark which has Java bundled with (actually it is a bit newer build, but i don’t think it should affect this, as it worked with 2.7.2 also). I have Firefox as my browser in both.

With files i can Open Folder on both machines. But pressing Open on Xubuntu gives Error (no such folder or file) and on Ubuntu it does nothing. Filing as [SPARK-1698] Can’t open received file on Ubuntu - Jive Software Open Source

You can try looking into Spark\logs\error.log

I’ve found this about that API error (you are using gnome classic instead of Unity?) http://stackoverflow.com/questions/18004150/desktop-api-is-not-supported-on-the- current-platform

sudo apt-get install libgnome2-0

error.log is empty

Running latest Google chrome and 64bit OS.

Spark 2.7.5

Build: 752

Ignite Realtime

Apache License, Version 2.0

www.igniterealtime.org

Smack Version: 3.3.1

JRE Version: 1.8.0_66

Running Unity. libgnome2-0 is installed.

Can’t suggest anything else. Filed as [SPARK-1699] Can’t open URL links on some linux systems - Jive Software Open Source

A patch has been applied to fix this issue. Please, try the latest build http://bamboo.igniterealtime.org/artifact/SPARK-INSTALL4J/shared/build-792/Insta ll4j/spark_2_7_6_792.tar.gz

The patch did not fix the issue.

SEVERE: Error launching browser:

java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform

at java.awt.Desktop.getDesktop(Desktop.java:144)

at org.jivesoftware.spark.util.BrowserLauncher.openURL(BrowserLauncher.java:37)

at org.jivesoftware.MainWindow$9.actionPerformed(MainWindow.java:614)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.ja va:877)

at java.awt.Component.processMouseEvent(Component.java:6535)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6300)

at java.awt.Container.processEvent(Container.java:2236)

at java.awt.Component.dispatchEventImpl(Component.java:4891)

at java.awt.Container.dispatchEventImpl(Container.java:2294)

at java.awt.Component.dispatchEvent(Component.java:4713)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)

at java.awt.Container.dispatchEventImpl(Container.java:2280)

at java.awt.Window.dispatchEventImpl(Window.java:2750)

at java.awt.Component.dispatchEvent(Component.java:4713)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:86)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.awt.EventQueue$4.run(EventQueue.java:729)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

at org.jivesoftware.sparkimpl.plugin.idle.UserIdlePlugin$1.dispatchEvent(UserIdleP lugin.java:241)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:20 1)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:10 5)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)