Re: java.net.SocketException: Invalid argument

2007-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aaron,

Don't hijack threads. Please post a new question to the list.

- -chris

Aaron wrote:
 I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly 
 seeing the following error show up in the catalina.log:
 
 WARNING: Exception executing accept
 java.net.SocketException: Invalid argument
 at java.net.PlainSocketImpl.socketSetOption(Native Method)
 at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
 at java.net.Socket.setSoLinger(Socket.java:826)
 at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
 at 
 org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
 at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
 Is this something that I should be concerned with? I don't see any glaring 
 performance issues with my site, but I still don't like the fact that my logs 
 are filling up with errors. Thanks for your help and input.
 
 Aaron Steele
 Technology Manager
  
 Natural Wellness USA, Inc.
 http://www.veria.com
 701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
 p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGztI09CaO5/Lv0PARAg+cAJ0WeOt4LshS8E7L44QqR4KA1QFF4ACeLxrb
aiGKTdwz1ofr0nGVLrV3PLk=
=KeHT
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.net.SocketException: Invalid argument

2007-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aaron,

Aaron wrote:
 Sun v245 running Solaris 10

I think this might have been covered before, but I'm not entirely sure.
You'd have to check the circumstances. Search the archives for
SocketException, socketSetOption, and IPv6. I think that you might need
to change the format of your IP address in order to avoid (or require?)
the use of IPv6 addresses.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGztR29CaO5/Lv0PARAteGAJ46wocZI4k+iaxrDdddRM8SNKTFkwCgsZX4
voYRKKXjbY0dwn2y6H2iLus=
=ZFSr
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.net.SocketException: Invalid argument

2007-08-24 Thread Filip Hanik - Dev Lists

try adding
|-Djava.net.preferIPv4Stack=true

to your startup script

Filip
|
Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aaron,

Aaron wrote:
  

Sun v245 running Solaris 10



I think this might have been covered before, but I'm not entirely sure.
You'd have to check the circumstances. Search the archives for
SocketException, socketSetOption, and IPv6. I think that you might need
to change the format of your IP address in order to avoid (or require?)
the use of IPv6 addresses.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGztR29CaO5/Lv0PARAteGAJ46wocZI4k+iaxrDdddRM8SNKTFkwCgsZX4
voYRKKXjbY0dwn2y6H2iLus=
=ZFSr
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
What's your server  OS?


In Response To: 

I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly seeing 
the following error show up in the catalina.log:

WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setSoLinger(Socket.java:826)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at 
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

Is this something that I should be concerned with? I don't see any glaring 
performance issues with my site, but I still don't like the fact that my logs 
are filling up with errors. Thanks for your help and input.

Aaron Steele
Technology Manager
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: java.net.SocketException: Invalid argument

2007-08-23 Thread Aaron
Sun v245 running Solaris 10

Aaron Steele
Technology Lead
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 9:51 PM
To: users@tomcat.apache.org
Subject: Re: java.net.SocketException: Invalid argument
Importance: High

What's your server  OS?


In Response To: 

I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly
seeing the following error show up in the catalina.log:

WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setSoLinger(Socket.java:826)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)

Is this something that I should be concerned with? I don't see any glaring
performance issues with my site, but I still don't like the fact that my
logs are filling up with errors. Thanks for your help and input.

Aaron Steele
Technology Manager
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum:
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
By looking at the stack trace it looks like setsockopt() is trying to set an 
option on the underlying socket that's not supported by your TCP/IP 
implementation. It probably is some performance related option that's being 
ignored. You could turn up the logging level by setting JkLogLevel debug.

You could also run truss against the jvm process to see what the socket option 
is.

In Response To: 

Sun v245 running Solaris 10

Aaron Steele
Technology Lead
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 9:51 PM
To: [EMAIL PROTECTED]
Subject: Re: java.net.SocketException: Invalid argument
Importance: High

What's your server  OS?


In Response To: 

I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly
seeing the following error show up in the catalina.log:

WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setSoLinger(Socket.java:826)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)

Is this something that I should be concerned with? I don't see any glaring
performance issues with my site, but I still don't like the fact that my
logs are filling up with errors. Thanks for your help and input.

Aaron Steele
Technology Manager
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum:
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
Looks like the SO_LINGER option isn't being set. I would look into that.

In Response To: 

By looking at the stack trace it looks like setsockopt() is trying to set an 
option on the underlying socket that's not supported by your TCP/IP 
implementation. It probably is some performance related option that's being 
ignored. You could turn up the logging level by setting JkLogLevel debug.

You could also run truss against the jvm process to see what the socket option 
is.

 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]