Spark won't start

I have a Windows 7 machine that I can not get spark to work. It was working fine then suddenly the exe will just start then close without an error or any message. The only thing I can find is this in the error.log file. Does anyone have an idea?

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.ExceptionInInitializerError

at org.jivesoftware.resource.Default.getImageIcon(Default.java:98)

at org.jivesoftware.spark.SparkManager.getApplicationImage(SparkManager.java:402)

at org.jivesoftware.LoginDialog.invoke(LoginDialog.java:138)

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

… 12 more

Caused by: java.nio.channels.OverlappingFileLockException

at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(Unknown Source)

at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(Unknown Source)

at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)

at java.nio.channels.FileChannel.tryLock(Unknown Source)

at java.util.logging.FileHandler.openFiles(Unknown Source)

at java.util.logging.FileHandler.(Unknown Source)

at org.jivesoftware.spark.util.log.Log.(Log.java:52)

… 16 more

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.ExceptionInInitializerError

at org.jivesoftware.resource.Default.getImageIcon(Default.java:98)

at org.jivesoftware.spark.SparkManager.getApplicationImage(SparkManager.java:402)

at org.jivesoftware.LoginDialog.invoke(LoginDialog.java:138)

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

… 12 more

Caused by: java.nio.channels.OverlappingFileLockException

at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(Unknown Source)

at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(Unknown Source)

at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)

at java.nio.channels.FileChannel.tryLock(Unknown Source)

at java.util.logging.FileHandler.openFiles(Unknown Source)

at java.util.logging.FileHandler.(Unknown Source)

at org.jivesoftware.spark.util.log.Log.(Log.java:52)

… 16 more

Not a Java programmer but maye you can try to uninstall Spark, reboot your box, and install again???

Yea, I’ve tried everything like that. What else is weird is I was running 2.5.8 and it did this. I downloaded the 2.6 RC1 and it started working for about 2 weeks and now it’s back to not loading. I’m totally out of ideas on what to try next.

did you try latest build of Spark as well?

http://bamboo.igniterealtime.org/browse/SPARK-INSTALL4J-54/artifact/Install4j

I had not but that didn’t work either.

Well. I can’t read those errors either. Though this line

Caused by: java.nio.channels.OverlappingFileLockException

Makes me think, that maybe there is some conflict with some Spark files already being used by some process. You can try using Process Monitor and filter to only Spark.exe and then launch Spark and see if you get eny insight on what is happening.

Was considering that too, that’s why was asking Ron to recycle box. Unfortunately did not help.

If you look at description of that class it makes sense:

__* Unchecked exception thrown when an attempt is made to acquire a lock on a

  • region of a file that overlaps a region already locked by the same Java
  • virtual machine, or when another thread is already waiting to lock an
  • overlapping region of the same file.__

http://download.oracle.com/javase/1.4.2/docs/api/java/nio/channels/OverlappingFi leLockException.html

But that is as far as my Java knowledge goes.

Some posts are referring to:

  • file system where Spark is installed (I think you have it on local disk)
  • some bugs in JRE/JDK (maybe you can send us what you have installed)

I finally figured out it’s some kind of rights issue with my damn NAS device. I am redirecting the application data files to a network share. If I run spark as administrator it will load properly. Is there someway to configure where spark stores it’s data files? Redirecting these to a local drive I feel will correct the problem.

There you go. Regarding location - I assume it uses default Windows’ configuration for Application Data folder for the user, but will check in registry.

There is no way in Spark to change its appdata folder location. Nad it is usually User\AppData\Spark (in Vista/win7 it is User\Appdata\Roaming\Spark

Suppose the only solution in this case is:

  1. recompile Spark to reflect different location

or

  1. stop using NAS for the profile