Page 2 of 3

Re: UMS won't start on Mavericks

Posted: Sat Sep 06, 2014 9:32 am
by mendoza_no
Thanks for trying!
- The command did not return anything
- I don't have a /System/Java/Library/Extensions folder...
- In the /Library/Java/Extensions folder, I have a slf4j link to "/usr/local/xuggler/share/java/jars/slf4j-api.jar"

When I tryed to delete both the slf4j and the link, it did not help to start UMS. I then tried the java launcher of UMS and got the following:

Code: Select all

/Applications/Universal\ Media\ Server.app/Contents/MacOS/JavaAppLauncher ; exit;
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ext/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/xuggler/share/java/jars/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Applications/Universal%20Media%20Server.app/Contents/Java/ums-4.0.3-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
	at net.pms.PMS.<clinit>(PMS.java:91)
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 19 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
	at net.pms.PMS.<clinit>(PMS.java:91)
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 19 more
logout

[Process completed]

Re: UMS won't start on Mavericks

Posted: Sat Sep 06, 2014 10:21 am
by Optimus_prime
Ok, lets try this. Reinstall the latest java, try if you could getting the JDK not the JRE.
Plus grab the latest UMS for Java 8 and try again.

Re: UMS won't start on Mavericks

Posted: Sat Sep 06, 2014 7:47 pm
by mendoza_no
Ok I will try, but I copied the slf4j file back to its folder since it is necessary for another software... will that be a problem?

Re: UMS won't start on Mavericks

Posted: Sat Sep 06, 2014 8:01 pm
by mendoza_no
Just tried:
I installed java 8 jdk

Code: Select all

java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
I also installed the latest UMS for java 8. It still does not start and the java launcher still gives me:

Code: Select all

/Applications/Universal\ Media\ Server.app/Contents/MacOS/JavaAppLauncher ; exit;
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
	at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
	at org.apache.commons.configuration.AbstractFileConfiguration.setFileName(AbstractFileConfiguration.java:588)
	at org.apache.commons.configuration.AbstractFileConfiguration.setFile(AbstractFileConfiguration.java:663)
	at org.apache.commons.configuration.AbstractFileConfiguration.setPath(AbstractFileConfiguration.java:694)
	at net.pms.configuration.PmsConfiguration.<init>(PmsConfiguration.java:494)
	at net.pms.configuration.PmsConfiguration.<init>(PmsConfiguration.java:454)
	at net.pms.PMS.main(PMS.java:1116)
logout

[Process completed]

Re: UMS won't start on Mavericks

Posted: Sun Sep 07, 2014 3:22 am
by Optimus_prime
Ok I will try, but I copied the slf4j file back to its folder since it is necessary for another software... will that be a problem?
Shouldn't be, what software uses a different version?

Re: UMS won't start on Mavericks

Posted: Sun Sep 07, 2014 6:32 pm
by mendoza_no
The software using it is Xuggler. In fact, all 4 items that I have in the /Library/Java/Extensions folder are links to jar files located in a subfolder of this application...

Re: UMS won't start on Mavericks

Posted: Mon Sep 08, 2014 5:19 am
by Optimus_prime
Hmm, give me a few days and i'll try come up with something to fix this :)

Re: UMS won't start on Mavericks

Posted: Sun Oct 05, 2014 6:42 am
by mendoza_no
....so? Any news? :roll:

Re: UMS won't start on Mavericks

Posted: Tue Oct 14, 2014 6:37 am
by duocycle
Want to chime in and say I'm having the same issue.

Tried with Java6 and Java7, with newest UMS as well as earlier versions.
After install I go to open the application and there's no GUI. Just Universal Media Server in the top bar and nothing else.

PS3 Media Server opens without any issue.

Re: UMS won't start on Mavericks

Posted: Fri Oct 17, 2014 10:24 pm
by mendoza_no
Hmm, it might be a bit different in my case because I can't open PMS either...