[Solved] Java update causes error

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
Jelmer
Posts: 2
Joined: Thu Apr 18, 2013 3:15 am

[Solved] Java update causes error

Post 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]
Attachments
ums_dbg.zip
(3.08 KiB) Downloaded 633 times
suicidesamurai
Posts: 9
Joined: Sat Jan 26, 2013 12:55 pm

Re: Java update causes error

Post 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".
Angelus
Posts: 2
Joined: Fri Apr 19, 2013 10:39 pm

Re: Java update causes error

Post 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^^
Attachments
Screen Shot 2013-04-19 at 6.42.02 PM.png
Screen Shot 2013-04-19 at 6.42.02 PM.png (406.85 KiB) Viewed 24827 times
sx71901
Posts: 2
Joined: Fri Apr 19, 2013 10:58 pm

Re: Java update causes error

Post 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
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java update causes error

Post 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 :)
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
sujayt
Posts: 7
Joined: Wed Mar 06, 2013 11:30 am

Re: Java update causes error

Post 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)
sx71901
Posts: 2
Joined: Fri Apr 19, 2013 10:58 pm

Re: Java update causes error

Post 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
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java update causes error

Post 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
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
Jelmer
Posts: 2
Joined: Thu Apr 18, 2013 3:15 am

Re: Java update causes error

Post 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
megaxpo
Posts: 1
Joined: Sat Apr 20, 2013 11:38 pm

Re: Java update causes error

Post by megaxpo »

The test build works again :) Thank you very much
Post Reply