db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1272) Change sysinfo to print to error log (derby.log) on boot of derby if derby.stream.error.logSeverityLevel=0
Date Sat, 08 Jul 2006 06:30:30 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1272?page=comments#action_12419839 ] 

Andrew McIntyre commented on DERBY-1272:
----------------------------------------

Here's the full stack for the SecurityException found by the errorStream test with the -v4
patch applied:

Test errorStream failed: access denied (java.io.FilePermission C:\derby-trunk\classes read)

        at java.security.AccessController.checkPermission(AccessController.java:401)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
        at java.io.File.exists(File.java:678)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:360)
        at java.io.File.getCanonicalPath(File.java:513)
        at org.apache.derby.impl.tools.sysinfo.Main.formatURL(Main.java:1206)
        at org.apache.derby.impl.tools.sysinfo.Main.loadZipFromResource(Main.java:831)
        at org.apache.derby.impl.tools.sysinfo.Main.getAllInfo(Main.java:735)
        at org.apache.derby.impl.tools.sysinfo.Main.reportDerby(Main.java:212)
        at org.apache.derby.impl.tools.sysinfo.Main.getMainInfo(Main.java:119)
        at org.apache.derby.tools.sysinfo.getInfo(sysinfo.java:200)
        at org.apache.derby.impl.services.monitor.BaseMonitor.dumpTempWriter(BaseMonitor.java:1949)
        at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(BaseMonitor.java:383)
        at org.apache.derby.impl.services.monitor.FileMonitor.<init>(FileMonitor.java:59)
        at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Monitor.java:288)
        at org.apache.derby.iapi.jdbc.JDBCBoot.boot(JDBCBoot.java:68)
        at org.apache.derby.jdbc.EmbeddedDriver.boot(EmbeddedDriver.java:178)


> Change sysinfo to print to error log (derby.log) on boot of derby  if derby.stream.error.logSeverityLevel=0
> -----------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1272
>          URL: http://issues.apache.org/jira/browse/DERBY-1272
>      Project: Derby
>         Type: Improvement

>   Components: Tools
>     Versions: 10.2.0.0, 10.1.2.1, 10.1.3.0
>     Reporter: Kathey Marsden
>     Priority: Minor
>  Attachments: derby-1272-pre.diff, derby-1272-pre2.diff, derby-1272-pre3.diff, derby-1272-v4.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.
-
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


Mime
View raw message