Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC4306D2E for ; Tue, 12 Jul 2011 22:36:57 +0000 (UTC) Received: (qmail 67516 invoked by uid 500); 12 Jul 2011 22:36:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67322 invoked by uid 500); 12 Jul 2011 22:36:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 67313 invoked by uid 99); 12 Jul 2011 22:36:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 22:36:53 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.25.134.21] (HELO mailout10.t-online.de) (194.25.134.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 22:36:45 +0000 Received: from fwd12.aul.t-online.de (fwd12.aul.t-online.de ) by mailout10.t-online.de with smtp id 1QglZ2-0001Pd-3T; Wed, 13 Jul 2011 00:36:24 +0200 Received: from Preissa (V+XqSOZSwhWEB3d2-EWLFAEMaar3htk+w5-vTaHh0orAUZjFzn-bk5VEwS3yiKcQRw@[217.95.91.219]) by fwd12.t-online.de with esmtp id 1QglYs-0u2Owa0; Wed, 13 Jul 2011 00:36:14 +0200 From: "eurotrans-Verlag" To: "'Tomcat Users List'" , "'Tomcat Users List'" References: <002d01cc3f3c$b1e208b0$15a61a10$@preisser@t-online.de> <004f01cc40c6$fdf8b920$f9ea2b60$@preisser@t-online.de> <4E1C9F73.4000702@ice-sa.com> In-Reply-To: <4E1C9F73.4000702@ice-sa.com> Subject: RE: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32 Date: Wed, 13 Jul 2011 00:36:08 +0200 Message-ID: <000301cc40e4$17c7e840$4757b8c0$@preisser@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxAyXRCacT9x1XzRsChpN+qBBvl7gAF+kOQ Content-Language: de X-ID: V+XqSOZSwhWEB3d2-EWLFAEMaar3htk+w5-vTaHh0orAUZjFzn-bk5VEwS3yiKcQRw X-TOI-MSGID: 0ae12923-7187-4ce5-8099-fe91bef0d710 Hi Andr=E9, > -----Original Message----- > From: Andr=E9 Warnier [mailto:aw@ice-sa.com] > Sent: Tuesday, July 12, 2011 9:25 PM >=20 > Can you take a part of this setup out of the equation ? >=20 > For example, at the moment you have >=20 > browser <-> IIS <-> isapi_redir. <-> AJP Connector:8019 <-> > Tomcat+webapp >=20 > Could you eliminate the IIS + Isapi_redir part, having Tomcat listen = on > port 80/HTTP, like > this : >=20 > browser <-> HTTP Connector:80 <-> Tomcat+webapp >=20 > ? >=20 > or like this, by using Apache httpd instead of IIS : >=20 > browser <-> Apache <-> mod_jk <-> AJP Connector:8019 <-> Tomcat+webapp >=20 > This may help pinpointing where the problem is, since you mentioned > earlier that you can > reproduce the problem by pressing F5 in Firefox. >=20 Unfortunately, I can't replace IIS with Apache or direct Tomcat HTTP connector, as that webapp is on a public server where also other = websites are hosted, using IIS. But perhaps I can see if I can reproduce the problem in a virtual = machine. Please note that I could only reproduce the problems that occurred = before switching from AJP-APR to AJP-BIO. There I could reproduce them by = pressing and holding F5 in Firefox for some seconds, but after I switched to = AJP-BIO, that didn't worked. The error message I wrote in the last mail did I see when I read the isapi logs today. Today I also got another strange exception in Tomcat (I don't know if it = has anything to do with the AJP errors): 13.07.2011 00:13:51 org.apache.catalina.core.StandardWrapperValve invoke SCHWERWIEGEND: Servlet.service() for servlet [hauptSeite.HauptServlet] = in context with path [] threw exception java.lang.IllegalStateException: Cannot create a session after the = response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2734) at org.apache.catalina.connector.Request.getSession(Request.java:2244) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java= :89 9) at common.Common2.getSession(Common2.java:102) at hauptSeite.HauptServlet.doThings(HauptServlet.java:136) at hauptSeite.HauptServlet.doGet(HauptServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat= ion FilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= rCh ain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= .ja va:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve= .ja va:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB= ase .java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:= 164 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 100 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j= ava :118) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessi= onM anagerValve.java:172) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:40= 3) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:292) at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtoco= l.j ava:143) at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtoco= l.j ava:129) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.ja= va: 309) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor= .ja va:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:9 08) at java.lang.Thread.run(Thread.java:662) This appeared some minutes ago. I also have seen this Exception some = times on JSP pages, but not on a normal Servlet (for JSP pages, the stack = trace contained "at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.ja= va: 65)" and that was before any custom JSP code). This above error is from a WebApp that I use for hosting images. The = stack trace seems to indicate that a response has been committed before a = session is created, however I absolutely never send any response before creating = a session in that Servlet (I call response.getWriter() or response.getOutputStream several lines after I call = request.getSession(true) ).=20 Hmm, could it be that the Java ImageIO is re-using OutputStreams after calling ImageIO.write(img, "PNG", out), so that I'm getting such a IllegalStateException? (I think I read somewhere that Tomcat is = recycling OutputStream objects) Maybe that could also explain the AJP errors I got. Regards, Konstantin Prei=DFer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org