UMS 6.1.0 java 8 doesn't work on os x 10.11.3

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
mitchde
Posts: 5
Joined: Tue Jan 12, 2016 8:52 pm

Re: UMS 6.1.0 java 8 doesn't work on os x 10.11.3

Post by mitchde »

For me 6.2.1 (Java 8) works! (as 6.2.0 also)

Image

DEBUG 2016-03-30 16:45:31.654 [main] Base path set to file:///Users/andreasm/Library/Application%20Support/UMS/UMS.conf
DEBUG 2016-03-30 16:45:31.673 [main] FileName set to UMS.conf
DEBUG 2016-03-30 16:45:31.673 [main] Base path set to /Users/andreasm/Library/Application Support/UMS
DEBUG 2016-03-30 16:45:31.699 [main] Reading log_level: "INFO" (default: "DEBUG")
INFO 2016-03-30 16:45:32.599 [main] Starting Universal Media Server 6.2.1
INFO 2016-03-30 16:45:32.600 [main] Based on PS3 Media Server by shagrath, copyright 2008-2014
INFO 2016-03-30 16:45:32.600 [main] http://www.universalmediaserver.com
INFO 2016-03-30 16:45:32.600 [main]
INFO 2016-03-30 16:45:32.601 [main] Build: 783862a96 (2016-03-28)
INFO 2016-03-30 16:45:32.601 [main] Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0_77 64-bit by Oracle Corporation
INFO 2016-03-30 16:45:32.601 [main] OS: Mac OS X 64-bit 10.11.4
INFO 2016-03-30 16:45:32.601 [main] Encoding: UTF-8
INFO 2016-03-30 16:45:32.601 [main] Memory: 683 MB
INFO 2016-03-30 16:45:32.609 [main] Language: German
net.ricky
Posts: 4
Joined: Sat Feb 27, 2016 12:22 am

Re: UMS 6.1.0 java 8 doesn't work on os x 10.11.3

Post by net.ricky »

xabizq wrote:Same problem.
UMS 6.2.1 java 8 doesn't work on os x 10.11.4 either. (using latest java 8 update 77 build 03)

Interesting that no one, moderators, UMS techie people have not really replied in these forums concerning this issue.
I totally agree. I expected more help from UMS expert either.

Anyway I found the solution for me and now it's working :mrgreen:

I investigated deeper in the log, the problem is not in the java version, but in the slf4j version. That's because OSX has its own version of slf4j already loaded in the classpath, that is older than the one used by UMS. The problem I had was a slf4j conflict as described here: http://stackoverflow.com/questions/5403 ... this-error

If you read the link, you can check your java extension library path
If you are running OSX you might find this is because the following files are included as java extensions:

/Library/Java/Extensions

Here I had an old slf4j verion:

Code: Select all

Bundle-Description: The slf4j API
Bundle-Version: 1.5.6


Instead the one used by UMS is

Code: Select all

#Generated by Maven
#Thu Mar 26 21:53:18 CET 2015
version=1.7.12
groupId=org.slf4j
So I downloaded the latest version of slf4j from here:
http://www.slf4j.org/download.html

The problem is that slf4j comes bind with the logback library so you need to download this too:
http://logback.qos.ch/
(you need both logback-classic and logback-core).

At the end your Java Extension path should looks like this:

Code: Select all

ls /Library/Java/Extensions/
RXTXcomm.jar              logback-classic-1.1.7.jar slf4j-api-1.7.20.jar
librxtxSerial.jnilib      logback-core-1.1.7.jar    xuggle-xuggler.jar
Pay attention that the jars are symbolic link to this path:

Code: Select all

slf4j-api-1.7.20.jar -> /usr/local/xuggler/share/java/jars/slf4j-api-1.7.20.jar
logback-classic-1.1.7.jar -> /usr/local/xuggler/share/java/jars/logback-classic-1.1.7.jar
logback-core-1.1.7.jar -> /usr/local/xuggler/share/java/jars/logback-core-1.1.7.jar
I tried again and... it works!!!

As we said in Italy... chi fa da se fa per tre! :lol:
xabizq
Posts: 2
Joined: Tue Mar 29, 2016 10:54 am

Re: UMS 6.1.0 java 8 doesn't work on os x 10.11.3

Post by xabizq »

Thank you NET.RICKY!
Your help has been very rapid. Already is solved!
Regards
Post Reply