Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4875992B6 for ; Thu, 29 Sep 2011 16:51:07 +0000 (UTC) Received: (qmail 27660 invoked by uid 500); 29 Sep 2011 16:51:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27638 invoked by uid 500); 29 Sep 2011 16:51:07 -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 27627 invoked by uid 99); 29 Sep 2011 16:51:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 16:51:07 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 16:51:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 98A0A2A0579 for ; Thu, 29 Sep 2011 16:50:45 +0000 (UTC) Date: Thu, 29 Sep 2011 16:50:45 +0000 (UTC) From: "Dag H. Wanvik (Closed) (JIRA)" To: derby-dev@db.apache.org Message-ID: <582035523.8134.1317315045627.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <187235456.30342.1316082008958.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (DERBY-5413) NetworkServerControl#main can exit with status 1 without printing an error message to console MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik closed DERBY-5413. -------------------------------- > NetworkServerControl#main can exit with status 1 without printing an error message to console > --------------------------------------------------------------------------------------------- > > Key: DERBY-5413 > URL: https://issues.apache.org/jira/browse/DERBY-5413 > Project: Derby > Issue Type: Bug > Components: Network Server > Affects Versions: 10.8.1.2 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Fix For: 10.8.2.2, 10.9.0.0 > > Attachments: derby-5413.diff > > > Cf this piece of code in main > catch (Exception e) > { > //if there was an error, exit(1) > if ((e.getMessage() == null) || > !e.getMessage().equals(NetworkServerControlImpl.UNEXPECTED_ERR) || > printErrors > ) > { > if (server != null) > server.consoleExceptionPrint(e); > else > e.printStackTrace(); // default output stream is System.out > } > // else, we've already printed a trace, so just exit. > System.exit(1); > The call "server.consoleExceptionPrint(e)" will actually *not* print anything unless the debug flag "NetworkServerControlImpl#debugOutput" has ben set to true which it isn't a priori. > I think it should be replaced by a call to server.consoleExceptionPrintTrace(e), which will print unconditionally. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira