tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haug Thomas <thomas.h...@siemens.com>
Subject Tomcat 4.1.24 + Security Manager + weird Exceptions
Date Tue, 15 Jul 2003 06:29:31 GMT
Hi everybody,

I am experiencing some strange behaviour with Tomcat 4.1.24 running with a
SecurityManager. The system is running on Solaris 8 using Jdk 1.4.1_02
and/or 1.4.2
Our software seems to use up all available file descriptors. If then tomcat
tries to accept a new request the IO system throws an SocketException
telling us that there are too many files open (see stacktrace below). 
Tomcat seems to reinitialize the ServerSocket but then the whole Tomcat (or
the Coyote HTTP connector) 'breaks down': The securityManager starts to
throw exceptions that class files are not allowed to be loaded, Sockets are
not allowed to be opened (see below), and other strange things. At last we
are not able anymore to request any http page from tomcat.

Has anybody experienced a similar behaviour of tomcat. Or even better does
anybody know how to fix this problem (beside not using all file descriptors
;-) )

Thank you very much,
Thomas



*****************************
StackTrace (in catalina.out)
*****************************


Jul 14, 2003 5:06:32 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: Too many open
 files
java.net.SocketException: Too many open files
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
        at java.net.ServerSocket.implAccept(ServerSocket.java:448)
        at java.net.ServerSocket.accept(ServerSocket.java:419)
        at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:356)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
        at java.lang.Thread.run(Thread.java:534)
Jul 14, 2003 5:06:32 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
Jul 14, 2003 5:06:33 PM org.apache.tomcat.util.net.TcpWorkerThread runIt
SEVERE: Exception in acceptSocket
java.security.AccessControlException: access denied
(java.net.SocketPermission 146.254.108.60:3156 accept,resolve)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:269)
        at
java.security.AccessController.checkPermission(AccessController.java:401)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
        at java.lang.SecurityManager.checkAccept(SecurityManager.java:1149)
        at java.net.ServerSocket.implAccept(ServerSocket.java:452)
        at java.net.ServerSocket.accept(ServerSocket.java:419)
        at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:356)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
        at java.lang.Thread.run(Thread.java:534)
Jul 14, 2003 5:06:33 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@cffe62, terminating thread
java.lang.IllegalStateException: Terminating thread
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:532)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
        at java.lang.Thread.run(Thread.java:534)

... (a whole lot more)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message