FAQ  •  Register  •  Login

Serviio gives error when attempting to start

<<

RossE

Serviio newbie

Posts: 3

Joined: Thu Sep 29, 2011 7:35 am

Post Thu Sep 29, 2011 8:02 am

Serviio gives error when attempting to start

I have just downloaded the MAC version and unzipped. When I run the Server or console I get an error.

The error disappears too quickly to read when running the server. This is in the log:

2011-09-29 15:44:06,418 INFO [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-09-29 15:44:06,418 INFO [MediaServer] Petr Nejedly 2009-2011
2011-09-29 15:44:06,418 INFO [MediaServer] http://www.serviio.org
2011-09-29 15:44:06,418 INFO [MediaServer]
2011-09-29 15:44:06,418 INFO [MediaServer] Java 1.6.0_26-Apple Inc.
2011-09-29 15:44:06,418 INFO [MediaServer] OS Mac OS X x86_64 10.6.8
2011-09-29 15:44:06,418 INFO [MediaServer] File encoding: UTF-8
2011-09-29 15:44:06,419 INFO [MediaServer] Headless mode enabled: true
2011-09-29 15:44:06,419 INFO [MediaServer] User home dir: /Users/rosselliot1
2011-09-29 15:44:06,419 INFO [MediaServer] Temp dir: /var/folders/xl/xl1TUYDCFdeJjFMW8gHcAk+++TM/-Tmp-/
2011-09-29 15:44:06,419 INFO [MediaServer] ------------------------------------------------------------------------
2011-09-29 15:44:06,500 INFO [RestletServer] Starting Restlet server exposed on port 23423

For the console, the error is:

Cannot launch Java application
Uncaught exception in main method
java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/
Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V

In the Console log I get this:
2011-09-29 15:50:19,034 DEBUG [ServiioConsole] Initializing Serviio Console
2011-09-29 15:50:19,042 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44332
2011-09-29 15:50:19,043 INFO [ServiioConsole] Starting Serviio Console
2011-09-29 15:50:19,090 DEBUG [SwingHelper] Choosing java look and feel: com.apple.laf.AquaLookAndFeel
2011-09-29 15:50:19,143 INFO [ServiioConsole] Connecting to Serviio REST on localhost:23423

Any advice would be appreciated.

Thanks
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Sep 29, 2011 8:50 am

Re: Serviio gives error when attempting to start

not sure, it looks like corrupted installaltion
<<

RossE

Serviio newbie

Posts: 3

Joined: Thu Sep 29, 2011 7:35 am

Post Thu Sep 29, 2011 9:07 am

Re: Serviio gives error when attempting to start

I tried downloading again and re-installing but still the same.
Also tried another Mac and the same.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Sep 29, 2011 9:09 am

Re: Serviio gives error when attempting to start

can you post your whole serviio.log for the server? attach it.
<<

RossE

Serviio newbie

Posts: 3

Joined: Thu Sep 29, 2011 7:35 am

Post Thu Sep 29, 2011 9:20 am

Re: Serviio gives error when attempting to start

Here it is
Attachments
serviio.log
(3.25 KiB) Downloaded 372 times
<<

quelg

Serviio newbie

Posts: 3

Joined: Tue Feb 14, 2012 10:57 pm

Post Tue Feb 14, 2012 11:09 pm

Re: Serviio gives error when attempting to start

Hi, I have just downloaded Serviio and am receiving exactly the same error as the previous poster.

Some Google searching indicates it is something to do with mismatched versions between slf4j and slf4jbridgehandler, where developers issue packages containing older versions or something?

There's obviously something afoot given the same error is occurring on different systems.

I tried downloading version 0.6, 0.6.1 and 0.6.2 and they all crash with exactly the same error.

I reinstalled Java 1.6.029 from Apple's website - no change.

I am running Mac OS X Server version 10.7.3 on an iMac i7, 64 bit kernel

Any help appreciated.



15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: [LaunchRunner Error] org.serviio.MediaServer.main(String[]) threw an exception:
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:192)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:267)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at java.util.logging.Logger.log(Logger.java:478)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at java.util.logging.Logger.doLog(Logger.java:500)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at java.util.logging.Logger.log(Logger.java:523)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at java.util.logging.Logger.info(Logger.java:1042)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.restlet.engine.http.connector.HttpServerHelper.start(HttpServerHelper.java:66)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.restlet.Server.start(Server.java:585)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.restlet.Component.startServers(Component.java:601)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.restlet.Component.start(Component.java:528)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.serviio.ui.restlet.RestletServer.runServer(RestletServer.java:78)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at org.serviio.MediaServer.main(MediaServer.java:100)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at java.lang.reflect.Method.invoke(Method.java:597)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
15/02/12 9:58:52.775 AM [0x0-0x1017016].Serviio: at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 14, 2012 11:19 pm

Re: Serviio gives error when attempting to start

might be that some other application installed a different version of the logger package on your system and it's on the classpath... I have no idea.
<<

quelg

Serviio newbie

Posts: 3

Joined: Tue Feb 14, 2012 10:57 pm

Post Tue Feb 14, 2012 11:34 pm

Re: Serviio gives error when attempting to start

Thanks for the quick response, Zip.

Any ideas where I could start in trying to isolate the problem classpath? I've only got rudimentary knowledge of Java, so any pointers as to where the files are located etc. would be handy.

Is it the case that system-wide classpath will override that of Serviio's?

If I find anything, I'll post a comprehenisve response in case others encounter the same problem.

Cheers
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Feb 15, 2012 6:15 am

Re: Serviio gives error when attempting to start

2011-09-29 15:44:06,418 INFO [MediaServer] Java 1.6.0_26-Apple Inc.


update java to 1.6.0._30
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 15, 2012 11:52 am

Re: Serviio gives error when attempting to start

I aume it would be a jar file inside the Java installation (no idea where it's on a Mac). Might be inside a lib folder under Java or similar.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Feb 15, 2012 12:49 pm

Re: Serviio gives error when attempting to start

sorry just reread your post above what you need to do is uninstall java completely and then reinstall it, there was a bug in java 2* version that in some cases caused it not to upate properly
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed Feb 15, 2012 12:59 pm

Re: Serviio gives error when attempting to start

could you execute "echo $CLASSPATH" in a terminal and post here the result?
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

quelg

Serviio newbie

Posts: 3

Joined: Tue Feb 14, 2012 10:57 pm

Post Fri Feb 17, 2012 1:05 am

Re: Serviio gives error when attempting to start

Thanks for the tips.

It's now working! For anyone else having similar problems on a Mac, it's to do with jar files in /Library/Java/Extensions (on Lion - I believe it's somewhere else in earlier OS X versions) :

ls /Library/Java/Extensions
-rwxr-xr-x 1 cerebus wheel 103515 12 Aug 2010 jaxb-api.jar
-rwxr-xr-x 1 cerebus wheel 866992 12 Aug 2010 jaxb-impl.jar
-rwxr-xr-x 1 cerebus wheel 46047 12 Aug 2010 jsr173_1.0_api.jar
-rwxr-xr-x 1 cerebus staff 326432 22 Feb 2006 librxtxSerial.jnilib
-rwxr-xr-x 1 cerebus wheel 391834 12 Aug 2010 log4j-1.2.15.jar
-rwxr-xr-x 1 cerebus wheel 434812 12 Aug 2010 mail.jar
-rwxr-xr-x 1 cerebus wheel 23445 12 Aug 2010 slf4j-api-1.5.8.jar
-rwxr-xr-x 1 cerebus wheel 9679 12 Aug 2010 slf4j-log4j12-1.5.8.jar
-rwxr-xr-x 1 cerebus wheel 7056159 12 Aug 2010 tools.jar

I simply deleted the slf4* jar files and it started working (brilliantly I might add, as the Samsung BD D5500 player I recently purchased seems to be completely incompatible with all the other DLNA servers I've tried).

Thanks to all the developers at Serviio for providing such a great product!
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Feb 17, 2012 9:44 am

Re: Serviio gives error when attempting to start

Your welcome but I'm not a dev, zip is the only dev, the rest of us are only helpers :)
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Feb 17, 2012 1:16 pm

Re: Serviio gives error when attempting to start

@ Rosse : Could you check this tips, so we could close the topic ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Mendoza

Serviio newbie

Posts: 6

Joined: Sat Feb 25, 2012 3:33 pm

Post Wed Mar 28, 2012 4:25 am

Re: Serviio gives error when attempting to start

Hello, I have exactly the same problem as the one described in this thread. Unfortunately I know nothing about Java and I can't solve it based on these posts, could you please help me out?
I have checked the Java Extension folder (MacOS Lion) but there are no files there.
<<

Mendoza

Serviio newbie

Posts: 6

Joined: Sat Feb 25, 2012 3:33 pm

Post Thu Mar 29, 2012 6:38 pm

Re: Serviio gives error when attempting to start

hmmm, nobody? :roll:
<<

Capitrium

Streaming enthusiast

Posts: 20

Joined: Wed Mar 21, 2012 10:17 pm

Post Thu Mar 29, 2012 11:19 pm

Re: Serviio gives error when attempting to start

Hello, I have exactly the same problem as the one described in this thread. Unfortunately I know nothing about Java and I can't solve it based on these posts, could you please help me out?
I have checked the Java Extension folder (MacOS Lion) but there are no files there.
Try accessing the Java Extensions folder from a command line.

Open a Terminal window, and type
  Code:
ls /System/Library/Java/Extensions
You should see a list of all the files in the folder as the output, even the ones that may be hidden in a Finder window. If you see any slf4* jar files then delete them - as quelg noted earlier - by typing
  Code:
sudo rm <filename>
into your Terminal window.

I don't have any of these files myself as Serviio is installed on one of my other machines, but I couldn't see any files when I opened the Java Extensions folder in my Finder either so I figured I'd help out with that :P
<<

Mendoza

Serviio newbie

Posts: 6

Joined: Sat Feb 25, 2012 3:33 pm

Post Fri Mar 30, 2012 12:17 pm

Re: Serviio gives error when attempting to start

Thank you for your help :-)

I tried it and there was one similink to a slf4j-api.jar file. But even after removing it I could still not open Serviio.

Since this only seems to happen to a few Mac users something must be messed up with my Java installation. I tried removing the Java manually and reinstalled it from the file downloaded on Apple website but the problem is still there... :-(
<<

Capitrium

Streaming enthusiast

Posts: 20

Joined: Wed Mar 21, 2012 10:17 pm

Post Fri Mar 30, 2012 9:40 pm

Re: Serviio gives error when attempting to start

I tried it and there was one similink to a slf4j-api.jar file. But even after removing it I could still not open Serviio.
I think you only deleted a symlink to the file. See the explanation below for a brief description of symlinks. To make a long story short, you need to delete the original slf4j-api.jar file. Try looking for it by typing this command in a Terminal window:
  Code:
find / -name 'slf4j-api.jar' -print
and then 'sudo rm' the file it returns.

Symlinks explained (taken from http://hints.macworld.com/article.php?story=2001110610290643:
What is a Symbolic Link?
If you've ever made an "Alias" to a file in classic Mac OS, or a "Shortcut" to a file in Windows, you will easily be able to understand the UNIX equivalent (where "aliases" and "shortcuts" came from in the first place!), called a "Symbolic Link". The easiest definition to understand is directly from the man page, "[A Link] is useful for maintaining multiple copies of a file in many places at once without using up storage for the 'copies'; instead, a link 'points' to the original copy." (If you want to read more about it, type man ln in the Terminal.)
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 61 guests

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