Spark does not start on Ubuntu 13.10 64Bit

I do not get any error or other things i could report, i do only get no Spark.

check that you have java installed on your system, and that the startup shell scripts are executable/non-modified.

Iā€™m wondering if the latest noobuntuā€¦ uh, I mean Ubuntu (hehe ) is using Mir? I think Canonical is pushing Mir for some bizzare reason (instead of Wayland)ā€¦ and itā€™s possible the current versions of Java Swing and AWT are expecting X11 instead (and Mir doesnā€™t have some interface to capture the X11 calls and handle them appropriately).

If so, there wouldnā€™t be much we could do since this would be a bug in Mir imho, not Java since any new windowing environment should retain backwards compatibility at least to some extent.

Can others test the latest Ubuntu release and possibly confirm?

@Nico perhaps try a ā€œfallbackā€ mode if there is one to fallback to X11 or something and try running Spark again. Also dig around for some logs from Sparkā€¦ at the very least it should be genearteing a large stacktrace when it refuses to startup (check in ~/.Spark/logs/ )

Dug around the interwebs a little bit ā€“ this is starting to smell like a Mir problemā€¦

https://code.google.com/p/java-swing-ayatana/issues/detail?id=19

http://askubuntu.com/questions/349801/running-netbeans-on-ubuntu-13-10-with-xmir -enabled

Bravo Canonical!

@Nico ā€“ some of those posts seem to suggest itā€™s a conflict with Swing and AWT (Javaā€™s built-in GUI toolkits) and Ubuntu running in xmir mode. This seems to suggest there may be some other ā€œmodeā€ to run 13.10 in, such as using X instead.

Confirming via logs is still needed though.

i checked now ~/.Spark/logs/ but there is nothing in the folder.

About ā€œMIRā€, i do not use it, iā€™m using X11 with mate because of my slow graphics card which is not working smoothly with the ubuntu-crap.

X.Org X Server 1.14.3

Release Date: 2013-09-12

[ 52.032] X Protocol Version 11, Revision 0

[ 52.032] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu

Java is running, because i use SAPGUI for Java which has no problem at all, but ofcourse i do not know if spark is using some APIā€™s which SAPGUI does not.

Any ideas how to get spark to tell me whats going on?

Thanks

Nico

Try at the terminal:

~]# java -version

paste the output here

~$ java -version

java version ā€œ1.7.0_45ā€

Javaā„¢ SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpotā„¢ 64-Bit Server VM (build 24.45-b08, mixed mode)

Hello there,

Check your error log file in [Spark directory]/logs/error.log. If you have something like that complaining about missing libXtst.so.6, just install i386 version of libxtst6 :

Caused by: java.lang.UnsatisfiedLinkError: [ā€¦]/Spark/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

then :

sudo apt-get install libxtst6:i386

and itā€™s done :wink:

Running Ubuntu 13.10 64 bits,

java version ā€œ1.8.0-eaā€

Javaā„¢ SE Runtime Environment (build 1.8.0-ea-b111)

Java HotSpotā„¢ 64-Bit Server VM (build 25.0-b53, mixed mode).

Hope it will help you.

:~$ /opt/Spark/Spark

:~$ less .Spark/

bin/ logs/ plugins/ resources/ spark.properties user/ xtra/

:~$ less .Spark/logs/

.Spark/logs/ is a directory

:~$ ls -ahl .Spark/logs/

total 8,0K

drwxr-xr-x 2 4,0K Okt 23 08:56 .

drwxr-xr-x 8 4,0K Okt 28 13:16 ā€¦

:~$ /opt/Spark/starter

:~$ ls -ahl .Spark/logs/

total 8,0K

drwxr-xr-x 2 4,0K Okt 23 08:56 .

drwxr-xr-x 8 4,0K Okt 28 13:16 ā€¦

:~$ sudo apt-get install libxtst6:i386

[sudo] password for :

Reading package listsā€¦ Done

Building dependency tree

Reading state informationā€¦ Done

libxtst6:i386 is already the newest version.

libxtst6:i386 set to manually installed.

The following package was automatically installed and is no longer required:

libqt4-qt3support

Use ā€˜apt-get autoremoveā€™ to remove it.

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

nothing changed,ā€¦

any idea how to get Spark to give me any error?

Hmmm ok, Can you post the content of your /opt/Spark/logs/error.log ?

/opt/Spark/logs$ cat error.log

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jivesoftware.launcher.Startup.start(Startup.java:94)

at org.jivesoftware.launcher.Startup.main(Startup.java:44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

Caused by: java.lang.UnsatisfiedLinkError: /opt/Spark/jre/lib/i386/xawt/libmawt.so: libXi.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.load0(Unknown Source)

at java.lang.System.load(Unknown Source)

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at sun.security.action.LoadLibraryAction.run(Unknown Source)

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

at java.awt.Toolkit.loadLibraries(Unknown Source)

at java.awt.Toolkit.(Unknown Source)

at com.jtattoo.plaf.JTattooUtilities.(Unknown Source)

at com.jtattoo.plaf.AbstractLookAndFeel.(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at javax.swing.SwingUtilities.loadSystemClass(Unknown Source)

at javax.swing.UIManager.setLookAndFeel(Unknown Source)

at org.jivesoftware.Spark.loadLookAndFeel(Spark.java:271)

at org.jivesoftware.Spark.startup(Spark.java:186)

ā€¦ 12 more

Ok, it seems libXi.so.6 is missing. This file is contained in libxi6 package. As Spark is searching in /jre/lib/i386, i suppose you need to install libxi6:i386 package :wink:

sudo apt-get install libxi6:i386

In Austria we say ā€œKaum mochst as richtig, gehts a gleiā€ which means ā€œif you do it right, it worksā€

Thanks a lot!

1 Like