FAQ  •  Register  •  Login

Debian 10 install - NullPointer

<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Mon Nov 04, 2019 2:21 pm

Debian 10 install - NullPointer

Followed the instructions for insatll servio on Debian - they are oyut of date and refer to debian 7. So a few things have moved on but all seemed ok.

Can start the service, but if I try and start the console or open the browser it falls over

  Code:
root@GaryDebian10:/opt/serviio-1.9# systemctl status serviio
● serviio.service - Serviio Media Server
   Loaded: loaded (/lib/systemd/system/serviio.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-11-04 14:05:32 GMT; 2s ago
 Main PID: 5894 (java)
    Tasks: 21 (limit: 4689)
   Memory: 50.1M
   CGroup: /system.slice/serviio.service
           └─5894 java -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headle

Nov 04 14:05:32 GaryDebian10 systemd[1]: Started Serviio Media Server.
root@GaryDebian10:/opt/serviio-1.9# systemctl status serviio
● serviio.service - Serviio Media Server
   Loaded: loaded (/lib/systemd/system/serviio.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Mon 2019-11-04 14:05:43 GMT; 12s ago
  Process: 5894 ExecStart=/opt/serviio/bin/serviio.sh (code=exited, status=0/SUCCESS)
  Process: 5975 ExecStop=/opt/serviio/bin/serviio.sh -stop (code=exited, status=0/SUCCESS)
 Main PID: 5894 (code=exited, status=0/SUCCESS)

Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.licensing.LicenseValidator.validateBundledLicense(LicenseValidator.java:124)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.licensing.LicenseValidator.getCurrentLicense(LicenseValidator.java:74)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.licensing.LicensingManager.updateLicense(LicensingManager.java:144)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.licensing.LicensingManager.<init>(LicensingManager.java:118)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.licensing.LicensingManager.getInstance(LicensingManager.java:128)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.MediaServer.printLicenseInformation(MediaServer.java:280)
Nov 04 14:05:39 GaryDebian10 serviio.sh[5894]:         at org.serviio.MediaServer.main(MediaServer.java:131)
Nov 04 14:05:41 GaryDebian10 serviio.sh[5894]: Exception in thread "Thread-29" java.lang.NullPointerException
Nov 04 14:05:41 GaryDebian10 serviio.sh[5894]:         at org.serviio.MediaServer$ShutdownHook.run(MediaServer.java:378)
Nov 04 14:05:43 GaryDebian10 systemd[1]: serviio.service: Succeeded.


the logs shows:

  Code:
2019-11-04 14:05:40,805 INFO  [UpdateChecker] Checking if a new version is available
2019-11-04 14:05:40,962 INFO  [FFMPEGWrapper] Found FFmpeg: ffmpeg
2019-11-04 14:05:40,964 INFO  [FFMPEGWrapper] FFmpeg details: [version=4.1.4-1~deb10u1, libRtpmPresent=false, libAssPresent=true, libShinePresent=true, libMxfPresent=false]
2019-11-04 14:05:40,995 INFO  [AbstractAVTranscodingDeliveryEngine] Cleaning transcode engine and its data
2019-11-04 14:05:41,129 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: javax.xml.soap.SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
        at org.serviio.upnp.webserver.WebServer$RequestListenerThread.<init>(WebServer.java:122)
        at org.serviio.upnp.webserver.WebServer.start(WebServer.java:76)
        at org.serviio.MediaServer.startServer(MediaServer.java:207)
        at org.serviio.MediaServer.main(MediaServer.java:158)
Caused by: java.lang.ClassNotFoundException: javax.xml.soap.SOAPException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 4 more
2019-11-04 14:05:41,160 WARN  [IndexedDiskCache] Region [subtitles] Disk cache not shutdown properly, shutting down now.
2019-11-04 14:05:41,137 WARN  [IndexedDiskCache] Region [tokens] Disk cache not shutdown properly, shutting down now.
2019-11-04 14:05:41,144 WARN  [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2019-11-04 14:05:41,183 WARN  [IndexedDiskCache] Region [subtitles_metadata] Disk cache not shutdown properly, shutting down now.
2019-11-04 14:05:41,191 WARN  [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.
2019-11-04 14:05:41,236 INFO  [TrakttvService] Started trakt.tv sync updater
2019-11-04 14:05:41,237 INFO  [TrakttvService] Started trakt.tv scrobble poster
2019-11-04 14:05:41,265 INFO  [FileDeltaWatcher] Using 'sun.nio.fs.LinuxWatchService' for delta scan
2019-11-04 14:05:41,269 INFO  [LibraryOneTimeScanner] Interrupting library scan
2019-11-04 14:05:41,269 INFO  [PluginCompilerThread] Finished looking for plugins
<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Mon Nov 04, 2019 2:33 pm

Re: Debian 10 install - NullPointer

meant to say, followed this instructions:

https://wiki.serviio.org/doku.php?id=ho ... all:debian

Only change is jdk-8 isn't available on Deb 10 so used jdk 11
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Mon Nov 04, 2019 7:50 pm

Re: Debian 10 install - NullPointer

You have installed serviio version 1.9 , version 1.9 will not work with java 11.
You need serviio version 2.0
Go through the instructions you followed again, change all references to "serviio-1.9" to "serviio-2.0".
<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Mon Nov 04, 2019 8:15 pm

Re: Debian 10 install - NullPointer

Ah - that's because my 'pro' license only works on 1.x
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Mon Nov 04, 2019 9:50 pm

Re: Debian 10 install - NullPointer

You will need to install java 8 then.
<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Wed Nov 06, 2019 9:19 am

Re: Debian 10 install - NullPointer

Ok - so installed V2.0 and the log looks ok, but starting the console still fails:

Log:
  Code:
2019-11-06 09:10:49,515 INFO  [ProfilesDefinitionParser] Added profile 'Chromecast' (id=chromecast)
2019-11-06 09:10:49,515 INFO  [ProfilesDefinitionParser] Added profile 'Alexa' (id=alexa)
2019-11-06 09:10:49,516 INFO  [ProfileManager] User profiles definition (user-profiles.xml) not found, using built-in profiles only
2019-11-06 09:10:49,594 INFO  [PluginCompilerThread] Looking for plugins at /opt/serviio/plugins
2019-11-06 09:10:49,615 INFO  [PluginCompilerThread] Started looking for plugins
2019-11-06 09:10:49,635 INFO  [UpdateChecker] Checking if a new version is available
2019-11-06 09:10:49,782 INFO  [FFMPEGWrapper] Found FFmpeg: ffmpeg
2019-11-06 09:10:49,783 INFO  [FFMPEGWrapper] FFmpeg details: [version=4.1.4-1~deb10u1, libRtpmPresent=false, libAssPresent=true, libShinePresent=true, libMxfPresent=false]
2019-11-06 09:10:49,815 INFO  [AbstractAVTranscodingDeliveryEngine] Cleaning transcode engine and its data
2019-11-06 09:10:49,939 INFO  [TrakttvService] Started trakt.tv sync updater
2019-11-06 09:10:49,940 INFO  [TrakttvService] Started trakt.tv scrobble poster
2019-11-06 09:10:49,951 INFO  [PlaybackProgressUpdater] Started playback progress updater
2019-11-06 09:10:49,992 INFO  [Device] Updated bound IP address of Device with UUID: e725a095-30a9-3fb5-bb6a-e8243923f45f, bound address: 10.0.2.15
2019-11-06 09:10:50,011 INFO  [WebServer] WebServer starting on port 8895
2019-11-06 09:10:50,018 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface enp0s3 (enp0s3) and address 10.0.2.15, timeout = 0
2019-11-06 09:10:50,019 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2019-11-06 09:10:50,019 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2019-11-06 09:10:50,020 INFO  [RendererSearchSender] Starting Renderer searcher process
2019-11-06 09:10:50,019 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2019-11-06 09:10:50,025 INFO  [EventDispatcher] Starting EventDispatcher
2019-11-06 09:11:10,044 INFO  [FeedUpdaterWorker] Started looking for information about online resources
2019-11-06 09:11:10,120 INFO  [FileDeltaWatcher] Using 'sun.nio.fs.LinuxWatchService' for delta scan
2019-11-06 09:11:10,134 INFO  [RepositoriesStatusCoordinator$RepositoriesStatusThread] Started checking repositories status
2019-11-06 09:11:10,200 INFO  [LocalLibraryManager] Starting automatic library scan
2019-11-06 09:11:10,202 INFO  [LibraryDeltaScanner] Starting the library delta scan
2019-11-06 09:11:10,211 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes



  Code:
root@GaryDebian10:/opt/serviio-2.0# systemctl start serviio
root@GaryDebian10:/opt/serviio-2.0# systemctl status serviio
● serviio.service - Serviio Media Server
   Loaded: loaded (/lib/systemd/system/serviio.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-11-06 09:10:41 GMT; 5s ago
 Main PID: 5113 (java)
    Tasks: 38 (limit: 4689)
   Memory: 85.9M
   CGroup: /system.slice/serviio.service
           └─5113 java --add-modules jdk.unsupported -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dorg

Nov 06 09:10:41 GaryDebian10 systemd[1]: Started Serviio Media Server.
Nov 06 09:10:45 GaryDebian10 serviio.sh[5113]: Couldn't create user preferences directory. User preferences are unusable.
Nov 06 09:10:45 GaryDebian10 serviio.sh[5113]: java.io.IOException: No such file or directory
root@GaryDebian10:/opt/serviio-2.0# /opt/serviio-2.0/bin/serviio-console.sh
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:23423/console'


Although going direct to the web page does appear to bring up the console.
<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Wed Nov 06, 2019 10:15 am

Re: Debian 10 install - NullPointer

Forgot to say, Debian 10 doesn't support Java 8
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Wed Nov 06, 2019 11:19 pm

Re: Debian 10 install - NullPointer

  Code:
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 870: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:23423/console'


It looks like there is no default browser set on your computer, so xdg-open doesn't know what to do with the URL.
You can check with this command

  Code:
xdg-settings get default-web-browser


If that returns nothing, you can set the browser with this command.
Change firefox.desktop to [whatever your preferred browser is].desktop

  Code:
xdg-settings set default-web-browser firefox.desktop


If the first command does return your preferred browser and your using LXDE it could be this.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908760

There is a bug in xdg-utils/1.1.3-1

And, you can install openjdk 8 in Debian 10. There are alot of ways, this is probably the easiest.

https://linuxize.com/post/install-java-on-debian-10/
<<

sandyjoshi

Serviio newbie

Posts: 1

Joined: Sat Dec 28, 2019 2:21 pm

Post Sat Dec 28, 2019 2:24 pm

Re: Debian 10 install - NullPointer

Install Java on Debian 10
Java is the popular programming language owned by Oracle. Java is used to build cross-platform applications. Over 3 billion devices run on Java.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 26 guests

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