You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Cook, Levi" <le...@kraft.com> on 2001/06/26 23:58:00 UTC

ServerSocket exception (HPUX)

Searching the mail-archive, I found the following message, which describes
my problem exactly:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg23066.html

Unfortunately, I cannot find a corresponding solution :(

Has anyone else encountered this problem?? 
Does anyone have any possible solutions??

Here's some reference info. on my system config. just in case it helps..
I've tried both VM's listed below but each has equivalant results. 

ships@gvtrns04[/opt/ships]:/opt/java1.2/jre/bin/java -version
java version "1.2.2.08"
HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.08-01/03/29-PA_RISC2.0)

ships@gvtrns04[/opt/ships]:/opt/java1.3/jre/bin/java -version
java version "JavaVM-1.3.0.00"
Java(TM) 2 Runtime Environment, Standard Edition (build
jinteg:11/28/00-11:08)
HotSpot VM (build 1.0.1fcs jinteg:11/28/00-13:54 PA2.0, mixed mode)

ships@gvtrns04[/opt/ships]:uname -all
HP-UX gvtrns04 B.11.00 U 9000/800 117901517 unlimited-user license

ships@gvtrns04[/opt/ships]:echo $JAVA_HOME
/opt/java1.2/jre

ships@gvtrns04[/opt/ships]:tomcat run
Guessing TOMCAT_HOME from tomcat.sh to ./jakarta-tomcat-3.2.2/bin/..
Setting TOMCAT_HOME to ./jakarta-tomcat-3.2.2/bin/..
Using classpath:
./jakarta-tomcat-3.2.2/bin/../lib/ant.jar:./jakarta-tomcat-3.2.2/bin/../lib/
jasper.jar:./jakarta-tomcat-3.2.2/bin/../lib/jaxp.jar:./jakarta-tomcat-3.2.2
/bin/../lib/parser.jar:./jakarta-tomcat-3.2.2/bin/../lib/servlet.jar:./jakar
ta-tomcat-3.2.2/bin/../lib/test:./jakarta-tomcat-3.2.2/bin/../lib/webserver.
jar
2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /examples )
2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages 
2001-06-26 04:40:58 - ContextManager: Adding context Ctx(  )
2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /test )
2001-06-26 04:40:59 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-06-26 04:40:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-06-26 04:41:04 - PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception:
java.net.SocketException: Socket closed - java.net.SocketException: Socket
closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
        at java.net.ServerSocket.implAccept(ServerSocket.java:240)
        at java.net.ServerSocket.accept(ServerSocket.java:224)
        at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:
286)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:479)

2001-06-26 04:41:07 - PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception:
java.net.SocketException: No buffer space available -
java.net.SocketException: No buffer space available
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
        at java.net.ServerSocket.implAccept(ServerSocket.java:240)
        at java.net.ServerSocket.accept(ServerSocket.java:224)
        at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:
286)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:479)


Any feedback is greatly appreciated

Levi Cook
Consultant
Greenbrier & Russel, Inc.
8383 Greenway Blvd., Suite 200
Middleton, WI  53562
email: lcook@gr.com    
web  : www.gr.com


RE: ServerSocket exception (HPUX)

Posted by Filip Hanik <ma...@filip.net>.
why is it trying to open a socket on address 0.0.0.0.
are you sure your machine is configured properly? ie, can you open up a
server socket from your own java program?

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
filip@filip.net
www.filip.net

>-----Original Message-----
>From: Cook, Levi [mailto:levi.cook@kraft.com]
>Sent: Tuesday, June 26, 2001 2:58 PM
>To: 'tomcat-user@jakarta.apache.org'
>Cc: 'lcook@gr.com'
>Subject: ServerSocket exception (HPUX)
>
>
>Searching the mail-archive, I found the following message, which describes
>my problem exactly:
>http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg23066.html
>
>Unfortunately, I cannot find a corresponding solution :(
>
>Has anyone else encountered this problem??
>Does anyone have any possible solutions??
>
>Here's some reference info. on my system config. just in case it helps..
>I've tried both VM's listed below but each has equivalant results.
>
>ships@gvtrns04[/opt/ships]:/opt/java1.2/jre/bin/java -version
>java version "1.2.2.08"
>HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.08-01/03/29-PA_RISC2.0)
>
>ships@gvtrns04[/opt/ships]:/opt/java1.3/jre/bin/java -version
>java version "JavaVM-1.3.0.00"
>Java(TM) 2 Runtime Environment, Standard Edition (build
>jinteg:11/28/00-11:08)
>HotSpot VM (build 1.0.1fcs jinteg:11/28/00-13:54 PA2.0, mixed mode)
>
>ships@gvtrns04[/opt/ships]:uname -all
>HP-UX gvtrns04 B.11.00 U 9000/800 117901517 unlimited-user license
>
>ships@gvtrns04[/opt/ships]:echo $JAVA_HOME
>/opt/java1.2/jre
>
>ships@gvtrns04[/opt/ships]:tomcat run
>Guessing TOMCAT_HOME from tomcat.sh to ./jakarta-tomcat-3.2.2/bin/..
>Setting TOMCAT_HOME to ./jakarta-tomcat-3.2.2/bin/..
>Using classpath:
>./jakarta-tomcat-3.2.2/bin/../lib/ant.jar:./jakarta-tomcat-3.2.2/bi
>n/../lib/
>jasper.jar:./jakarta-tomcat-3.2.2/bin/../lib/jaxp.jar:./jakarta-tom
>cat-3.2.2
>/bin/../lib/parser.jar:./jakarta-tomcat-3.2.2/bin/../lib/servlet.ja
>r:./jakar
>ta-tomcat-3.2.2/bin/../lib/test:./jakarta-tomcat-3.2.2/bin/../lib/w
>ebserver.
>jar
>2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /examples )
>2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /admin )
>Starting tomcat. Check logs/tomcat.log for error messages
>2001-06-26 04:40:58 - ContextManager: Adding context Ctx(  )
>2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /test )
>2001-06-26 04:40:59 - PoolTcpConnector: Starting HttpConnectionHandler on
>8080
>2001-06-26 04:40:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
>8007
>2001-06-26 04:41:04 - PoolTcpEndpoint: Endpoint
>ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception:
>java.net.SocketException: Socket closed - java.net.SocketException: Socket
>closed
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:240)
>        at java.net.ServerSocket.accept(ServerSocket.java:224)
>        at
>org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpo
>int.java:
>286)
>        at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
>        at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>        at java.lang.Thread.run(Thread.java:479)
>
>2001-06-26 04:41:07 - PoolTcpEndpoint: Endpoint
>ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception:
>java.net.SocketException: No buffer space available -
>java.net.SocketException: No buffer space available
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:240)
>        at java.net.ServerSocket.accept(ServerSocket.java:224)
>        at
>org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpo
>int.java:
>286)
>        at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
>        at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>        at java.lang.Thread.run(Thread.java:479)
>
>
>Any feedback is greatly appreciated
>
>Levi Cook
>Consultant
>Greenbrier & Russel, Inc.
>8383 Greenway Blvd., Suite 200
>Middleton, WI  53562
>email: lcook@gr.com
>web  : www.gr.com
>
>