Java Exception in 2.5.0

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
Post Reply
orgon3
Posts: 33
Joined: Fri Jun 15, 2012 7:12 pm

Java Exception in 2.5.0

Post by orgon3 »

Pretty self explanatory. I am just reporting an exception being thrown, that was not intended to be thrown. Included are my debug files. Please let me know if I can help with this any further.

Code: Select all

03-08 19:37:22  Disconnecting HTTP server from renderers
03-08 19:37:26  Stopping server on host 192.168.0.119 and port 6001...
03-08 19:37:26  Exception in thread "UPNP-AliveMessageSender" java.lang.NullPointerException
03-08 19:37:26  	at net.pms.network.UPNPHelper.buildMsg(UPNPHelper.java:327)
03-08 19:37:26  	at net.pms.network.UPNPHelper.sendMessage(UPNPHelper.java:173)
03-08 19:37:26  	at net.pms.network.UPNPHelper.sendAlive(UPNPHelper.java:116)
03-08 19:37:26  	at net.pms.network.UPNPHelper$1.run(UPNPHelper.java:206)
03-08 19:37:26  	at java.lang.Thread.run(Unknown Source)
03-08 19:37:27  Using address /192.168.0.119 found on network interface: name:eth4 (Intel(R) 82579V Gigabit Network Connection)
03-08 19:37:27  Created socket: /192.168.0.119:6001
Attachments
ums_dbg.zip
(12.84 KiB) Downloaded 447 times
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: Java Exception in 2.5.0

Post by ExSport »

Did you read that new version needs Java v7?
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Java Exception in 2.5.0

Post by kuroukage »

You can download the latest version of Java 7 here.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
orgon3
Posts: 33
Joined: Fri Jun 15, 2012 7:12 pm

Re: Java Exception in 2.5.0

Post by orgon3 »

Are you guys being serious right now? Before posting, why not look at my logs? The seventh line in,

Code: Select all

INFO  2013-03-08 19:37:10.058 [main] Java: 1.7.0_17-Oracle Corporation
Please do not post useless posts here. I know you're trying to help, but at least look at what you're helping with beforehand if you want to help.
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: Java Exception in 2.5.0

Post by ExSport »

On my mobile display I saw

Code: Select all

 window only.
The uploaded log link is so small that I overlooked it:-)
Do you have IP address forced? If yes, are you using dhcp?
Maybe I saw similar errors when IP was manually forced to one which was different from one dhcp gave to my network interface.... still I haven't opened your log due to small display, sorry.
orgon3
Posts: 33
Joined: Fri Jun 15, 2012 7:12 pm

Re: Java Exception in 2.5.0

Post by orgon3 »

It's no worries ExSport. I understand that 99% of the Java related issues on the forums since 2.5.0 were due to Java 7 not being installed. In any case, my computer's IP is static via reservation table on the router. Windows is set up to use DHCP, it's just that DHCP will always return the same IP for the MAC address associated with this computer.
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: Java Exception in 2.5.0

Post by SharkHunter »

This is the line that causes the crash:

Code: Select all

sb.append("LOCATION: http://").append(PMS.get().getServer().getHost()).append(":").append(PMS.get().getServer().getPort()).append("/description/fetch" + CRLF);
Now the only reason for this can be a lot of course. My guess would be inline with ExSport and I suspect that you try to use some exotic address/port combination.

We could add detection for this error but the only thing it can do is till to just ignore the request.
DHCP should (according to the RFCs) ALWAYS return the same address for the same client(=mac) if it can.

Try and use out-of-the box settings one time....
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
orgon3
Posts: 33
Joined: Fri Jun 15, 2012 7:12 pm

Re: Java Exception in 2.5.0

Post by orgon3 »

It hasn't occurred since the first time, with no change in settings.
Post Reply