FAQ  •  Register  •  Login

java.lang.nullpointerexception encountered on Mac

<<

ivysashar

Serviio newbie

Posts: 3

Joined: Mon Sep 02, 2013 3:08 pm

Post Mon Sep 02, 2013 3:52 pm

java.lang.nullpointerexception encountered on Mac

I have Serviio installed on my Synology NAS DS412+, installed with JAVA Embedded 6.

I then installed JAVA 7 on my macbook air, and downloaded the Serviio console. I added the required remotehost key & string to the plist file, and launched the console. The serviio icon appeared on the active application bar for a few seconds then disappeared. Please help. Plist script and logs are below.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Serviio-Console</string>
<key>CFBundleShortVersionString</key>
<string>1.3.1</string>
<key>CFBundleGetInfoString</key>
<string>1.3.1 (c) 2009 - 2013 Petr Nejedly</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIconFile</key>
<string>serviio.icns</string>
<key>CFBundleIdentifier</key>
<string>org.serviio.serviio-console</string>
<key>CFBundleURLTypes</key>
<array> <dict> <key>CFBundleURLName</key> <string>org.serviio.url</string> <key>CFBundleURLSchemes</key> <array> <string>serviio</string> </array> </dict> </array>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>org.serviio.console.ServiioConsole</string>
<key>JVMVersion</key>
<string>1.6+</string>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/commons-codec.jar</string>
<string>$JAVAROOT/jul-to-slf4j.jar</string>
<string>$JAVAROOT/log4j.jar</string>
<string>$JAVAROOT/org.restlet.ext.net.jar</string>
<string>$JAVAROOT/org.restlet.ext.xstream.jar</string>
<string>$JAVAROOT/org.restlet.jar</string>
<string>$JAVAROOT/serviio-client.jar</string>
<string>$JAVAROOT/serviio.jar</string>
<string>$JAVAROOT/slf4j-api.jar</string>
<string>$JAVAROOT/slf4j-log4j12.jar</string>
<string>$JAVAROOT/xstream.jar</string>
<string>$JAVAROOT/config</string>
</array>
<key>VMOptions</key>
<string>-Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10</string>
<key>Properties</key>
<dict>
<key>serviio.home</key>
<string>$JAVAROOT</string>
<key>java.net.preferIPv4Stack</key>
<string>true</string>
<key>serviio.remoteHost</key>
<string>192.168.1.141</string>
</dict>
</dict>
</dict>
</plist>


2/9/13 11:56:47.968 PM [0x0-0x24024].org.serviio.serviio-console: Exception in thread "Thread-3"
2/9/13 11:56:47.968 PM [0x0-0x24024].org.serviio.serviio-console: java.lang.NullPointerException
2/9/13 11:56:47.968 PM [0x0-0x24024].org.serviio.serviio-console: at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:324)
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Sep 02, 2013 5:40 pm

Re: java.lang.nullpointerexception encountered on Mac

You will need to download the 1.2.1 console until the synology version is updated
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

ivysashar

Serviio newbie

Posts: 3

Joined: Mon Sep 02, 2013 3:08 pm

Post Mon Sep 02, 2013 6:41 pm

Re: java.lang.nullpointerexception encountered on Mac

Thanks for the reply. Do you have a link to the console for mac? I have searched everywhere in the forums and the site, but there's no download site for older versions!
<<

ivysashar

Serviio newbie

Posts: 3

Joined: Mon Sep 02, 2013 3:08 pm

Post Mon Sep 02, 2013 6:48 pm

Re: java.lang.nullpointerexception encountered on Mac

Oh, found it! I just changed the download link. Thanks!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Sep 02, 2013 6:49 pm

Re: java.lang.nullpointerexception encountered on Mac

Copy the link for 1.3.1 and change the version in the url to 1.2.1

So

http://download.serviio.org/releases/se ... osx.tar.gz
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.