FAQ  •  Register  •  Login

serviio isn't able to find org.serviio.Mediaserver

<<

osbrusve

Serviio newbie

Posts: 2

Joined: Thu Mar 28, 2013 7:52 am

Post Thu Mar 28, 2013 8:05 am

serviio isn't able to find org.serviio.Mediaserver

I tried to install serviio 1.21 on my opensuse 12.3-system with Yast, onklick-installation, zypper.
Always installation was confirmed.
When i try to start the server with /bin/serviio.sh, i get the message:
"Fehler: Hauptklasse org.serviio.MediaServer konnte nicht gefunden oder geladen werden"
Sorry, i'm german.
In english that means something like: can't find org.serviio.Mediaserver.class

Any suggestions.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 28, 2013 9:28 am

Re: serviio isn't able to find org.serviio.Mediaserver

probably the java on your system doesn't support the way classpath is defined in serviio.sh (via asterisk), or the jar files in lib folder is missing/not readable. Do you have anything in serviio.log?
<<

osbrusve

Serviio newbie

Posts: 2

Joined: Thu Mar 28, 2013 7:52 am

Post Thu Mar 28, 2013 10:10 am

Re: serviio isn't able to find org.serviio.Mediaserver

the serviio.sh is at /usr/bin,

here ist my serviio.log:
----------------------------------------------------------------------------------------------------
013-03-27 23:25:33,100 ERROR [ApplicationInstanceManager] linux-njrc.site: linux-njrc.site
java.net.UnknownHostException: linux-njrc.site: linux-njrc.site
at java.net.InetAddress.getLocalHost(InetAddress.java:1438)
at org.serviio.console.ApplicationInstanceManager.registerInstance(ApplicationInstanceManager.java:69)
at org.serviio.console.ServiioConsole.checkForRunningInstances(ServiioConsole.java:236)
at org.serviio.console.ServiioConsole.main(ServiioConsole.java:86)
Caused by: java.net.UnknownHostException: linux-njrc.site
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getLocalHost(InetAddress.java:1434)
... 3 more
2013-03-27 23:25:33,106 INFO [ServiioConsole] Starting Serviio Console
2013-03-27 23:25:34,674 INFO [ServiioConsole] Connecting to Serviio REST on localhost:23423
2013-03-27 23:25:38,080 ERROR [ApplicationInstanceManager] linux-njrc.site: linux-njrc.site
java.net.UnknownHostException: linux-njrc.site: linux-njrc.site
at java.net.InetAddress.getLocalHost(InetAddress.java:1438)
at org.serviio.ApplicationInstanceManager.registerInstance(ApplicationInstanceManager.java:68)
at org.serviio.MediaServer.checkForRunningInstances(MediaServer.java:242)
at org.serviio.MediaServer.main(MediaServer.java:93)
Caused by: java.net.UnknownHostException: linux-njrc.site
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getLocalHost(InetAddress.java:1434)
... 3 more
2013-03-27 23:25:38,101 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-27 23:25:38,101 INFO [MediaServer] Serviio DLNA media streaming server v 0.6.2 (rev. 6a61243292ee)
2013-03-27 23:25:38,101 INFO [MediaServer] Petr Nejedly 2009-2011
2013-03-27 23:25:38,101 INFO [MediaServer] http://www.serviio.org
2013-03-27 23:25:38,101 INFO [MediaServer]
2013-03-27 23:25:38,101 INFO [MediaServer] Java 1.7.0_17-Oracle Corporation
2013-03-27 23:25:38,101 INFO [MediaServer] OS Linux i386 3.7.10-1.1-default
2013-03-27 23:25:38,101 INFO [MediaServer] File encoding: UTF-8
2013-03-27 23:25:38,102 INFO [MediaServer] Headless mode enabled: true
2013-03-27 23:25:38,102 INFO [MediaServer] User home dir: /root
2013-03-27 23:25:38,102 INFO [MediaServer] Temp dir: /tmp
2013-03-27 23:25:38,102 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-27 23:25:38,259 INFO [RestletServer] Starting Restlet server exposed on port 23423
2013-03-27 23:25:38,321 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2013-03-27 23:25:46,556 INFO [DBSchemaUpdateExecutor] Updating DB schema
2013-03-27 23:25:58,659 WARN [ProfilesDefinitionParser] Cannot get name of the local computer: linux-njrc.site: linux-njrc.site
2013-03-27 23:25:58,945 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-03-27 23:25:59,149 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: replacement
java.lang.NullPointerException: replacement
at java.util.regex.Matcher.replaceFirst(Matcher.java:950)
at java.lang.String.replaceFirst(String.java:2119)
at org.serviio.profile.ProfilesDefinitionParser.getDeviceDescription(ProfilesDefinitionParser.java:331)
at org.serviio.profile.ProfilesDefinitionParser.processProfileNode(ProfilesDefinitionParser.java:194)
at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:143)
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
at org.serviio.MediaServer.main(MediaServer.java:105)
2013-03-27 23:26:03,570 WARN [ServiioConsole] Cannot connect to the server to get DB initialization info
2013-03-27 23:26:07,723 WARN [ServiioConsole] Cannot connect to server: Connection Error (1000) - Verbindungsaufbau abgelehnt
2013-03-27 23:26:07,735 INFO [Messages] Loaded console message bundle for locale: en
2013-03-27 23:26:11,880 WARN [ServiioConsole] Cannot connect to server: Connection Error (1000) - Verbindungsaufbau abgelehnt
2013-03-27 23:31:19,101 INFO [ServiioConsole] Leaving Serviio Console
------------------------------------------------------------------------------------------------------

after that, here is my derby.log
-----------------------------------------------------------------------------------------------------
----------------------------------------------------------------
Wed Mar 27 23:25:39 CET 2013:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.2.2 - (1181258): instance a816c00e-013d-adf4-dd4b-00003b606bb2
on database directory /usr/share/java/serviio/library/db with class loader sun.misc.Launcher$AppClassLoader@1a0353d
Loaded from file:/usr/share/java/serviio/lib/derby.jar
java.vendor=Oracle Corporation
java.runtime.version=1.7.0_17-b02
user.dir=/usr/share/java/serviio/lib
derby.system.home=/usr/share/java/serviio/library
derby.stream.error.file=../log/derby.log
Database Class Loader started - derby.database.classpath=''
--------------------------------------------------------------------------------------------------

My system put all serviio-files into: /usr/share/java/serviio/
In there, there are the folders "config", "lib", "libary" "log" and "plugins", and in the folder "lib" there are the jar-files.
I also put the serviio.sh and the serviio-console.sh in there, but there is no differenz between starting this tools from here or somewhere else.
My java-version is java-1_7_0-openjdk
I hope, this will help to solve the problem.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 28, 2013 11:15 am

Re: serviio isn't able to find org.serviio.Mediaserver

I will let someone with more linux skills answer that. But there are a few issues, one being the inability to work out IP address of your box (probably hosts file issue).
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 29, 2013 11:44 am

Re: serviio isn't able to find org.serviio.Mediaserver


Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 17 guests

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