Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61328 invoked from network); 24 Jul 2006 10:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 10:02:37 -0000 Received: (qmail 9069 invoked by uid 500); 24 Jul 2006 10:02:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 8794 invoked by uid 500); 24 Jul 2006 10:02:36 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 8773 invoked by uid 99); 24 Jul 2006 10:02:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 03:02:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 03:02:34 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D06E714283 for ; Mon, 24 Jul 2006 10:00:17 +0000 (GMT) Message-ID: <23520138.1153735217116.JavaMail.jira@brutus> Date: Mon, 24 Jul 2006 03:00:17 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1571) NetworkServerControlImpl.consoleExceptionPrintTrace() prints stack trace even when logWriter is null In-Reply-To: <4806160.1153599614202.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1571?page=all ] Knut Anders Hatlen updated DERBY-1571: -------------------------------------- Attachment: 1571.diff 1571.diff changes NetworkServerControlImpl so that it doesn't print stack traces when logWriter is null. Derbyall runs cleanly (modulo the noise seen in Ole's testing), and I have not been able to reproduce the failure in testProperties.java with the patch applied. > NetworkServerControlImpl.consoleExceptionPrintTrace() prints stack trace even when logWriter is null > ---------------------------------------------------------------------------------------------------- > > Key: DERBY-1571 > URL: http://issues.apache.org/jira/browse/DERBY-1571 > Project: Derby > Issue Type: Bug > Components: Network Server, Newcomer, Regression Test Failure > Affects Versions: 10.2.0.0 > Reporter: Knut Anders Hatlen > Assigned To: Knut Anders Hatlen > Priority: Minor > Attachments: 1571.diff > > > NetworkServerControlImpl.consoleExceptionPrintTrace() prints the stack > trace to System.err if logWriter is null. This has occasionally caused > errors in the regression tests. See > http://www.multinet.no/~solberg/public/Apache/10.2.0.3_Snapshot/jvm1.5/testlog/sparc_zone3/412239-derbyall_diff.txt > for an example. > The test failure happens when NetworkServerControlImpl.shutdown() has > sent the shutdown command and starts a loop calling ping() until it > gets an error. Since it expects ping() to fail, it sets logWriter to > null to avoid getting error messages printed on the console. > In most cases, the network server is already stopped before the first > call to ping(). Then ping() fails when calling setUpSocket(), and no > message is printed. On the other hand, if the server is stopped while > ping() is being executed, the error might occur other places. For > instance, it might fail with a SocketException in > fillReplyBuffer(). fillReplyBuffer() then calls clientSocketError(), > which in turn calls consolePropertyMessage() and > consoleExceptionPrintTrace(). consolePropertyMessage() correctly > suppresses the error message, but consoleExceptionPrintTrace() prints > the stack trace. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira