Problem on 5.2-RC2 but not 4.9-RELEASE with jdk-1.4.2p5
Panagiotis Astithas
past at noc.ntua.gr
Tue Jan 13 00:22:21 PST 2004
On Tuesday 13 January 2004 05:12, David Sayed wrote:
> I recently moved to FreeBSD 5.2-RC2 because it supports my chipset better
> than 4.9-RELEASE.
>
> I use a Java server based on a customised version of Tomcat for my Prismiq
> media player. It ran OK under 4.9 with jdk-1.4.2p5 but throws the following
> exception under 5.2-RC2:
>
> Adding engine (org.apache.catalina.core.StandardEngine/1.0)
> Exception in thread "main" java.lang.IllegalArgumentException: Port value
> out of range: 65536 at java.net.ServerSocket.<init>(ServerSocket.java:180)
> at java.net.ServerSocket.<init>(ServerSocket.java:97)
> at com.oxygnet.mediaserver.util.PortFinder.testPort(PortFinder.java:121)
> at
> com.oxygnet.mediaserver.util.PortFinder.findFreePort(PortFinder.java:103)
>
> at com.oxygnet.mediaserver.util.PortFinder.findPort(PortFinder.java:64)
> at com.oxygnet.mediaserver.util.PortFinder.findPort(PortFinder.java:45)
> at Tomcat.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:124)
> at Tomcat.EmbeddedTomcat.main(EmbeddedTomcat.java:252)
>
> As far as I am aware, the highest port number should be 65535, however,
> changing the program isn't an option for me (since I don't have the source)
> and the port number doesn't seem to be set in a config file.
>
> Any ideas?
Just a wild guess:
sysctl net.inet.ip.portrange.first=1024
sysctl net.inet.ip.portrange.last=30000
(or the exact values you had on your 4.x system)
Cheers,
--
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece
More information about the freebsd-java
mailing list