Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21240 invoked from network); 10 Sep 2007 16:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 16:22:55 -0000 Received: (qmail 39464 invoked by uid 500); 10 Sep 2007 16:22:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39438 invoked by uid 500); 10 Sep 2007 16:22:45 -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 39400 invoked by uid 99); 10 Sep 2007 16:22:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 09:22:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 16:22:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4CD73714218 for ; Mon, 10 Sep 2007 09:22:30 -0700 (PDT) Message-ID: <17009812.1189441350310.JavaMail.jira@brutus> Date: Mon, 10 Sep 2007 09:22:30 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Issue Comment Edited: (DERBY-1272) Change sysinfo to print to error log (derby.log) on boot of derby if derby.stream.error.logSeverityLevel=0 In-Reply-To: <32673282.1146540046419.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 [ https://issues.apache.org/jira/browse/DERBY-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526182 ] kmarsden edited comment on DERBY-1272 at 9/10/07 9:21 AM: ---------------------------------------------------------------- Hi Ramin, Thanks for bringing this issue back to life. It will surely be very helpful to users and support folks. I looked at the patch and tried it out and it all seemed to work fine. A few comments. - I am concerned about adding $derby.tools.src.dir to the build.xml. Sysinfo is available in derby.jar, but the other tools classes are not. Adding derby.tools.src.dir allows access to all the tools classes, which is not ideal. I wonder if using reflection can avoid the need to change the build.xml. - Sysinfo prints security exceptions for information it can't access. e.g. Java user name: Security Exception: java.security.AccessControlException: Access denied (java.util.PropertyPermission user.name read) I am concerned that this might become a red herring for those debugging a problem and thinking this might be the root of it. DERBY-1273 is filed to improve the message though and I think we can handle that as a separate issue. I asked for some feedback from some support people to get an additional opinion. I'll let you know what I hear. - The test doesn't seem to actually test that sysinfo printed. It would be good to have a test that tests that. Kathey was (Author: kmarsden): Hi Raman, Thanks for bringing this issue back to life. It will surely be very helpful to users and support folks. I looked at the patch and tried it out and it all seemed to work fine. A few comments. - I am concerned about adding $derby.tools.src.dir to the build.xml. Sysinfo is available in derby.jar, but the other tools classes are not. Adding derby.tools.src.dir allows access to all the tools classes, which is not ideal. I wonder if using reflection can avoid the need to change the build.xml. - Sysinfo prints security exceptions for information it can't access. e.g. Java user name: Security Exception: java.security.AccessControlException: Access denied (java.util.PropertyPermission user.name read) I am concerned that this might become a red herring for those debugging a problem and thinking this might be the root of it. DERBY-1273 is filed to improve the message though and I think we can handle that as a separate issue. I asked for some feedback from some support people to get an additional opinion. I'll let you know what I hear. - The test doesn't seem to actually test that sysinfo printed. It would be good to have a test that tests that. Kathey > Change sysinfo to print to error log (derby.log) on boot of derby if derby.stream.error.logSeverityLevel=0 > ----------------------------------------------------------------------------------------------------------- > > Key: DERBY-1272 > URL: https://issues.apache.org/jira/browse/DERBY-1272 > Project: Derby > Issue Type: Improvement > Components: Tools > Affects Versions: 10.1.2.1, 10.1.3.1, 10.2.1.6 > Reporter: Kathey Marsden > Assignee: Ramin Moazeni > Priority: Minor > Attachments: derby-1272-pre.diff, derby-1272-pre2.diff, derby-1272-pre3.diff, derby-1272-v4.diff, DERBY-1272v5.diff > > > It is often very difficult to collect correct sysinfo output from user environments because sysinfo run from the commandline does not have the same classpath as the jvm that started Derby or Derby was loaded with a custom classloader. > It would be very helpful in assisting users in diagnosing their issues if sysinfo dumped to the error log if derby.stream.error.logSeverityLevel=0 or even by default. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.