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 74B68D4CF for ; Tue, 21 May 2013 18:50:17 +0000 (UTC) Received: (qmail 8814 invoked by uid 500); 21 May 2013 18:50:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8626 invoked by uid 500); 21 May 2013 18:50:14 -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 8601 invoked by uid 99); 21 May 2013 18:50:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 18:50:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [76.96.62.64] (HELO qmta07.westchester.pa.mail.comcast.net) (76.96.62.64) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 18:50:02 +0000 Received: from omta11.westchester.pa.mail.comcast.net ([76.96.62.36]) by qmta07.westchester.pa.mail.comcast.net with comcast id ebGv1l0030mv7h057ipMli; Tue, 21 May 2013 18:49:21 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.106.98]) by omta11.westchester.pa.mail.comcast.net with comcast id eipK1l00m27QCxh3XipLdV; Tue, 21 May 2013 18:49:21 +0000 Message-ID: <519BC1B2.9060000@christopherschultz.net> Date: Tue, 21 May 2013 14:49:22 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Apache Tomcat service has been shutting down/stopping randomly. References: <44AFCBE69647314DABFDB0C3F07653C4098B09EA@HNCEXCHANGE01.hbcs.org> <9F9F8729-AD95-4CB2-B942-64FC20284CC1@gopivotal.com> <44AFCBE69647314DABFDB0C3F07653C4098B0E2C@HNCEXCHANGE01.hbcs.org> <44AFCBE69647314DABFDB0C3F07653C4098B186E@HNCEXCHANGE01.hbcs.org> <44AFCBE69647314DABFDB0C3F07653C4098B1954@HNCEXCHANGE01.hbcs.org> <44AFCBE69647314DABFDB0C3F07653C4098B1A12@HNCEXCHANGE01.hbcs.org> <95142FA0-1DB4-4814-A62B-0F6174410FC5@gopivotal.com> <44AFCBE69647314DABFDB0C3F07653C4098B1D15@HNCEXCHANGE01.hbcs.org> <13A5B9F6-5E39-4F4D-8291-107815D386B1@gopivotal.com> <44AFCBE69647314DABFDB0C3F07653C4098B1D83@HNCEXCHANGE01.hbcs.org> <519A7FEA.40604@christopherschultz.net> <44AFCBE69647314DABFDB0C3F07653C4098B26D6@HNCEXCHANGE01.hbcs.org> In-Reply-To: <44AFCBE69647314DABFDB0C3F07653C4098B26D6@HNCEXCHANGE01.hbcs.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1369162161; bh=rruF7JJfIxozxTRFqPsHELZRwkjmMMiP3GcYvuDMAtA=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=ssbwcEmSZbFeiEBvJ0FqtdjGTRVXFNAE1QkOzCG5T6SllInoIYMNgjkA+q5A2yH5e YJ9eJN01pYzxSdQAC/tpTWF+hxaHya1a76S4FPAhWJVMorwpUPZuJaEAmWjKj3zFCP C50yegCWYNZfxl8TcpWgiO7u4j7doqw804p+ZBe27CHewKrTs4FazEtSdhy27VxAxA 3Ir8VNydq2XDSKm+PERawV6+TM3tSyp56CJMGjp/c/aarW8XeHFuHFREyraY53AxAw t4Em3F1hri6NashP/qDwMVGEFXtFswb1bMqhXgzT25U8Fe2Ho9t5LEzCbO3jmcCL2K qC1jiZ9dV5nrA== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 James, On 5/21/13 1:25 PM, James Snider wrote: > Below is the most recent Exception Access Violation tcnative Error > we are receiving. This error log is generated every time the > service randomly stops causing us to believe this to be the > primary catalyst. So now the big question: can you reliably trigger the "primary catalyst"? If so, we can try a few things. First, figure out how to blow-up your application. That shouldn't be that tough: just make sure you exercise the code that uses ImageIO to write directly to a ServletOutputStream. Since you said that you aren't using ImageIO, this might present a challenge.... but you are going to have to find it. Next, implement the OutputStream-wrapper[1] in the code that bombs. Then, try to bomb your webapp again. If it no longer bombs, then you are probably done: congratulations. If it still bombs, you might have missed a use of ImageIO: look again, re-wrap and re-try. If that does not work, we could use some more information about your environment. IIRC, you have installed Tomcat 7.0.40 including the bundled tcnative library, on Microsoft Windows in a directory called "Tomcat 5.5" because of some hard-coded paths. So, everything is TC7.0.40, the library is statically-linked, and the tcnative version is 1.2.27. Can you confirm the above and also confirm the versions of tcnative, APR, and OpenSSL you have? They should all be displayed in your catalina.out log file (or wherever stdout goes when you launch Tomcat) near the beginning of the output after a fresh TC launch. If you are in production and just want to stop crashing, then you should switch connectors: use either the BIO or NIO connectors and you should avoid the fatal crash that occurs when the native stream has (likely) been closed and nulled-out. - -chris [1] http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRm8GxAAoJEBzwKT+lPKRYg6kP/3WHQ6+iWjqxo4VEhKio0vos fvY7YBu3LOGg0Yu0h1Flvl26JNo+iAW4fl+KsAetZVZQFX3GBV7mN4meKh5GuS60 ft3eu9fXL+i0oPQUyy4m4IK2RmuBbMSNp0f9q0MtifRpIOlyW4/XfcLesgiFsOxM dLHoWFYppDwW812x7zdjCzSZxlvNgVhPPnO9UipfM4oGMH5FSqTe/c19Omi7s4gv La2WpRSF2QDAQ5ldEXfblsOd2fSo8nDJEkJ7MwYb60/w6eEmxxJO2Y+NZfesA9wU HXXqUcNevU0CsiEsE4Ji05CzHPgNg+EGsaAYhjeZSVkdmBl6frm40SuKAe5c7rVc mRPgq5TyHnvr46ypar6vWoxaF4HVl0vNRgc1/jGE3y2WdCFBRm3K8wVWFGzrYaRd 1bbeyXxsEsxlkt8YvaL4/IXrvqOV9zhh1N9WuiR2lV5f4rWxwnBzX96J2VhA6/CI JyIeSl+f8G7Bm7H/Ey0Vxz97lq1iDWB6W+V4psKksXzgdghOh5TagnVg1mOW7ZC2 mGuCffu5bQcbW8hwmAZhMBbUujxGOupSAyrlBezFR2iCLOMrMQq38dmHW6juG440 APhCun1hiLENNAFsfmn3YvQXawG30hEs1jdZpJ91iJjHwQkIaKviJEvLkK1svMAt jFIkQ8854CUckhcWLYnS =Uu3w -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org