Spark does not start

I have installed Openfire and 9 clients succesfully. My latest installation on 10th workstation went in the same way as previous installations, but Spark does not start for some reason. I don’t get any error messages to screen.

Here is what i found from log directory (error file):

java.io.IOException: Couldn’t get lock for C:\Documents and Settings\user\spark\logs\errors.log
at java.util.logging.FileHandler.openFiles(Unknown Source)
at java.util.logging.FileHandler.(Unknown Source)
at org.jivesoftware.spark.util.log.Log.(Log.java:49)
at org.jivesoftware.sparkimpl.settings.local.SettingsManager.saveSettings(Settings Manager.java:76)
at org.jivesoftware.sparkimpl.settings.local.SettingsManager.getLocalPreferences(S ettingsManager.java:54)
at org.jivesoftware.Spark.loadLanguage(Spark.java:373)
at org.jivesoftware.Spark.startup(Spark.java:105)
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:83)
at org.jivesoftware.launcher.Startup.main(Startup.java:33)
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.exe4j.runtime.WinLauncher.main(Unknown Source)
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:83)
at org.jivesoftware.launcher.Startup.main(Startup.java:33)
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.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jivesoftware.spark.util.log.Log.error(Log.java:74)
at org.jivesoftware.sparkimpl.settings.local.SettingsManager.saveSettings(Settings Manager.java:76)
at org.jivesoftware.sparkimpl.settings.local.SettingsManager.getLocalPreferences(S ettingsManager.java:54)
at org.jivesoftware.Spark.loadLanguage(Spark.java:373)
at org.jivesoftware.Spark.startup(Spark.java:105)
… 12 more

What could be the reason for this?

Spark doe not have permissions to the folders it needs to run properly. Re-install the application, delete the existing spark folder from the user profile having the issue, and try to run it again.

My bad! I created silent install script which had a bug. It created file named as “spark” to C:\Documents and Settings\user\ and prevented Spark to create correct directory structure. I tried silent install script first and tested it on this workstation. It did not work so I tried to install it as usual… but damage was already done and I missed it. Now I fixed what I messed up and Spark works.