Page 1 of 1

Java Exception in 2.5.0

Posted: Sun Mar 10, 2013 10:31 pm
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

Re: Java Exception in 2.5.0

Posted: Mon Mar 11, 2013 12:39 am
by ExSport
Did you read that new version needs Java v7?

Re: Java Exception in 2.5.0

Posted: Mon Mar 11, 2013 1:04 am
by kuroukage
You can download the latest version of Java 7 here.

Re: Java Exception in 2.5.0

Posted: Mon Mar 11, 2013 8:19 pm
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.

Re: Java Exception in 2.5.0

Posted: Tue Mar 12, 2013 11:19 am
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.

Re: Java Exception in 2.5.0

Posted: Tue Mar 12, 2013 9:32 pm
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.

Re: Java Exception in 2.5.0

Posted: Tue Mar 12, 2013 10:00 pm
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....

Re: Java Exception in 2.5.0

Posted: Wed Mar 20, 2013 9:42 pm
by orgon3
It hasn't occurred since the first time, with no change in settings.