Socket exceptions using jdk1.7 OS X Leopard
Hi there, I am seeing some errors like the one below when trying to start tomcat. It works using the Apple 1.6_03 version, but not this version. It also works with the soylatte (1.6.0_03-p3) version as well. Any ideas? Thanks Nick Shanny jdk version having the issue: openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal- landonf_2008_08_20_14_13-b00) OpenJDK Server VM (build 14.0-b01, mixed mode) Aug 21, 2008 1:12:10 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 21, 2008 1:12:10 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: Invalid argument java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java: 358) at java.net.ServerSocket.implAccept(ServerSocket.java:501) at java.net.ServerSocket.accept(ServerSocket.java:469) at org .apache .tomcat .util .net .DefaultServerSocketFactory .acceptSocket(DefaultServerSocketFactory.java:61) at org .apache .tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:408) at org .apache .tomcat .util .net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: 71) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:674)
On Aug 21, 2008, at 10:18 AM, Nicholas Shanny wrote:
Hi there,
I am seeing some errors like the one below when trying to start tomcat. It works using the Apple 1.6_03 version, but not this version. It also works with the soylatte (1.6.0_03-p3) version as well.
I'm super busy and I haven't had time to track down the issue, but the reproduction case is pretty simple: import java.net.ServerSocket; public class Socket { public static void main (String args[]) throws Exception { ServerSocket s = new ServerSocket(8080); s.accept(); } } DTrace output (see attached dtrace -s script): CPU ID FUNCTION:NAME 1 17804 listen:entry listen(11, 50) 1 17805 listen:return ret: 0 errno: 0 1 17778 select:entry select(12, b00508e0, 0, 0) 1 17779 select:return ret: -1 errno: 22
participants (2)
-
Landon Fuller
-
Nicholas Shanny