After upgrading my server to OpenSuSE 13.2 and upgrading to Subsonic 5.2 beta1 with Sonos support, I found that thumbnail rendering was broken.
The error message I am getting is starting with
- Code: Select all
50679 [btpool0-9] ERROR org.mortbay.log - Nested in org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader:
java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
at com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(JPEGImageReaderSpi.java:85)
and I was using
- Code: Select all
server:~ # java -version
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b10)
OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode)
After reading hints that OpenJDK may be problematic, I have been downloading jre-8u31-linux-x64.rpm from Oracle and installed that. I had to edit subsonic.sh to set JAVA_HOME to /usr/java/default and export that in order to make Subsonic use this version of Java, and now it works.
Download Page here: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
In subsonic.sh, add the two JAVA_HOME lines before setting the JAVA variable, or add a JAVA_HOME definition at the top of the file.
- Code: Select all
# Use JAVA_HOME if set, otherwise assume java is in the path.
JAVA_HOME=/usr/java/default
export JAVA_HOME
JAVA=java
if [ -e "${JAVA_HOME}" ]
then
JAVA=${JAVA_HOME}/bin/java
fi