Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 75681 invoked from network); 30 Oct 2006 14:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 14:06:28 -0000 Received: (qmail 33840 invoked by uid 500); 30 Oct 2006 14:06:35 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 33617 invoked by uid 500); 30 Oct 2006 14:06:35 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 33606 invoked by uid 99); 30 Oct 2006 14:06:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 06:06:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [206.123.111.90] (HELO mail.loukasmgmt.com) (206.123.111.90) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 06:06:21 -0800 Received: (qmail 16386 invoked by uid 510); 30 Oct 2006 08:08:02 -0600 Received: from unknown (HELO ?192.168.0.100?) (smtp@loukasmgmt.com@71.240.163.22) by mail.loukasmgmt.com with SMTP; 30 Oct 2006 08:08:02 -0600 Message-ID: <4546066F.1070807@hanik.com> Date: Mon, 30 Oct 2006 08:04:31 -0600 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: It seems that Http11NioProtocol handler not working at mac os x 10.4.8 ppc References: <9C2AE6CA-573F-41B4-97FC-9B3163E9288D@objektpark.de> In-Reply-To: <9C2AE6CA-573F-41B4-97FC-9B3163E9288D@objektpark.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org try to set the property socket.soTrafficClass to some other value, if it's not working, what JDK are you running, here is the flag described by SUN http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#setTrafficClass(int) Peter Rossbach wrote: > Hi Filip, > > I am starting testing your new NioProtocol handler, but I got > following exception: > > 30.10.2006 13:37:24 org.apache.tomcat.util.net.NioEndpoint > setSocketOptions > SCHWERWIEGEND: > java.net.SocketException: Invalid argument > at sun.nio.ch.Net.setIntOption0(Native Method) > at sun.nio.ch.Net.setIntOption(Net.java:152) > at > sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372) > at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46) > at > sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249) > at > sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158) > at > sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:320) > at > org.apache.tomcat.util.net.SocketProperties.setProperties(SocketProperties.java:107) > > at > org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:742) > > at > org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1423) > at java.lang.Thread.run(Thread.java:613) > > > == > > My connector config is: > > maxThreads="150" connectionTimeout="20000" > redirectPort="8443" > protocol="org.apache.coyote.http11.Http11NioProtocol" /> > > After some google search I found that soTrafficClass are not supported > at mac os x :-( > s. http://jira.safehaus.org/browse/PENROSE-71 > > I comment out L 106 at class o.a.t.util.net.SocketProperties. > > // socket.setTrafficClass(soTrafficClass); > > Before I did this: I check starting connector with some different > values without success > > ex. > maxThreads="150" connectionTimeout="20000" > redirectPort="8443" > protocol="org.apache.coyote.http11.Http11NioProtocol" > socket.soTrafficClass="2" /> > > After that patch the Connector work, but with the comet style chat > example I have more trouble: > > INFO: Server startup in 3025 ms > Exception in thread "http-8080-1" java.lang.NullPointerException > at > org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1441) > at java.lang.Thread.run(Thread.java:613) > Exception in thread "http-8080-2" java.lang.NullPointerException > at > org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1441) > at java.lang.Thread.run(Thread.java:613) > > -- > Chat example really working? I see the posted messages only after > socket is closed (with Firefox 1.5)... > > Next I test the chat example with APR handler, again. > > Regards > Peter Ro�bach > pr@objektpark.de > > > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org