Page 1 of 2

[Solved] Java update causes error

Posted: Thu Apr 18, 2013 3:29 am
by Jelmer
Hello, first of all thanks for this great software, always worked perfect with my smarttv.
Until today I'm afraid.
Today my MAC updated java and now UMS can't make a connection anymore.

This is what I get in the log file.

4-17 17:20:07 UPNP network exception
java.net.SocketException: Can't assign requested address
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) ~[na:1.6.0_45]
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:309) ~[na:1.6.0_45]
at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:536) ~[na:1.6.0_45]
at net.pms.network.UPNPHelper$2.run(UPNPHelper.java:341) ~[ums-2.6.1.jar:na]
at java.lang.Thread.run(Thread.java:680) [na:1.6.0_45]

I've also tested an other MAC which didn't had the java update yet, running UMS 2.4.2, this still works like a charm.
I'm hoping this is a minor problem that can be fixed by myself, but your help would be very appreciated.

Thanks, Jelmer

Edit:

I also tried an older version of UMS (2.4.2) to see if there is a difference. The error code looks a little different, but the outcome is the same:

04-18 15:43:05 A serious error occurred during PMS init
java.net.SocketException: Can't assign requested address
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) ~[na:1.6.0_45]
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:309) ~[na:1.6.0_45]
at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:536) ~[na:1.6.0_45]
at net.pms.network.UPNPHelper.getNewMulticastSocket(UPNPHelper.java:145) ~[ums-2.4.2.jar:na]
at net.pms.network.UPNPHelper.sendAlive(UPNPHelper.java:116) ~[ums-2.4.2.jar:na]
at net.pms.PMS.init(PMS.java:565) [ums-2.4.2.jar:na]
at net.pms.PMS.createInstance(PMS.java:840) [ums-2.4.2.jar:na]
at net.pms.PMS.main(PMS.java:921) [ums-2.4.2.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45]
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116) [na:na]
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51) [na:na]
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52) [na:na]

Re: Java update causes error

Posted: Fri Apr 19, 2013 6:59 pm
by suicidesamurai
I had this problem for a short while to fix it I went and checked "Force networking on the server en1(192.168.x.xx)

I left out the last digits for privacy sake. However you should be able to force networking on "en1".

Re: Java update causes error

Posted: Fri Apr 19, 2013 10:49 pm
by Angelus
got the same error... after java security updata....

Code: Select all

ERROR 2013-04-19 16:08:39.591 [UPNPHelper] UPNP network exception
java.net.SocketException: Can't assign requested address
	at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) ~[na:1.6.0_45]
	at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:309) ~[na:1.6.0_45]
	at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:536) ~[na:1.6.0_45]
	at net.pms.network.UPNPHelper$2.run(UPNPHelper.java:363) ~[pms-1.80.0.jar:na]
	at java.lang.Thread.run(Thread.java:680) [na:1.6.0_45]

btw, Force networking on the server en1xxx.xx.xx.xx not working for me ^^;

plz fix it and sorry for my bad english^^

Re: Java update causes error

Posted: Fri Apr 19, 2013 11:23 pm
by sx71901
The Same for me:
UMS or PMS (all Versions) doesn't work anymore exactly since Apples Java-Update to Version 7 Update 21.
My Log has the same Problem-Entries as posted initially from Jelmer.
My Java-Version prior to this Update was Version 7 Update 7....and everything worked fine.

I tried to restore to a prior Java-Version http://support.apple.com/kb/HT5559?viewlocale=de_DE
and afterwards to remove java completely....no chance. :cry:

Is there anyone out there, who also made this update and UMS still works?
Please leave your comments! :)

Also i would appreciate help from our specialists in this matter :mrgreen:


Thanx so far!! :)

My System Info:
NFO 2013-04-19 13:05:55.010 [main] Java: 1.6.0_45-Apple Inc.
INFO 2013-04-19 13:05:55.011 [main] OS: Mac OS X 64-bit 10.8.3

Re: Java update causes error

Posted: Sat Apr 20, 2013 2:03 am
by Optimus_prime
Ok firstly UMS doesn't use java 7, Only java 6 (in OS-X that is). I'm not sure what the problem is but let me have a look and get back to you with an update :)

Re: Java update causes error

Posted: Sat Apr 20, 2013 2:46 am
by sujayt
People using PS3MediaServer were having luck by restoring the previous version of /System/Library/Java/JavaVirtualMachines through Time Machine. This worked for me too. Not a solution, but a temporary fix for the time being.

(http://www.ps3mediaserver.org/forum/vie ... =7&t=16638)

Re: Java update causes error

Posted: Sat Apr 20, 2013 7:52 pm
by sx71901
..thanx, sujayt. Used the Backup-Directory from monday and now UMS works again. :D

I also updated Java 7 Update 21 manually from the Java-Website, afterwards UMS still worked.. :o
Seems, as if Apple built their own special Update-Version...once again :x

Nevertheless i would be interesting, what optimus_prime eventually digs up :)

Thank you all for your help! :D

Re: Java update causes error

Posted: Sat Apr 20, 2013 10:26 pm
by Optimus_prime
Hi all, Just would like to clear a few things up. Apple releases there own java 6 updates that contain there own code as well as oracles(sun). UMS at this stage will only utilize java 6 and never uses java 7 as it's compiled for java 6. At this stage we cannot move across to java 7 until we find a way to let UMS run in 10.8 OS-X Builds. Apple's new build for java 1.6.0_45 has networking issues with UMS. You can test a new version of UMS from this link https://sourceforge.net/projects/unimed ... %20Builds/ that should fix UMS working with apples new java update. Any issues please post with a debug log so i can look into it.
EDIT: the more testers the better

Re: Java update causes error

Posted: Sat Apr 20, 2013 11:21 pm
by Jelmer
Hello Optimus_prime,

Thank you for looking into this, your test build is working perfect for me!
Some hidden folders show up on my SmartTV now, but that's not a problem for me.

Thanks again from one happy UMS user,

Jelmer

Re: Java update causes error

Posted: Sat Apr 20, 2013 11:40 pm
by megaxpo
The test build works again :) Thank you very much