[
https://issues.apache.org/jira/browse/DERBY-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782180#comment-13782180
]
Mamta A. Satoor commented on DERBY-6350:
----------------------------------------
If I give incorrect value for
derby.stream.error.style=rollingFile1
I get NPE when connecting to a database through ij
$ java -Dderby.language.logQueryPlan=true
-Dderby.system.home="C:\p4clients\svnmain\client3\trunk\systest\out142"
-Dij.exceptionTrace=true org.apache.derby.tools.ij
ij version 10.11
ij> connect 'jdbc:derby:db1;create=true';
Mon Sep 30 13:18:12 PDT 2013 Thread[main,5,main]
java.lang.IllegalArgumentException: unknown derby.stream.error.style:
rollingFile1
----------------------------------------------------------------
Mon Sep 30 13:18:12 PDT 2013:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.11.0.0
alpha - (1): instance a816c00e-0141-7085-65ee-000073edb42f
on database directory C:\p4clients\svnmain\client3\trunk\systest\out142\db1
with class loader sun.misc.Launcher$AppClassLoader@538b538b
Loaded from file:/C:/p4clients/svnmain/client3/trunk/classes/
java.vendor=IBM Corporation
java.runtime.version=pwi3260sr14-20130705_01 (SR14)
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32
jvmwi3260sr14-20130704_155156 (JIT enabled, AOT enabled)
J9VM - 20130704_155156
JIT - r9_20130517_38390
GC - GA24_Java6_SR14_20130704_1138_B155156
user.dir=C:\p4clients\svnmain\client3\trunk\systest\out142
os.name=Windows 7
os.arch=x86
os.version=6.1 build 7601 Service Pack 1
derby.system.home=C:\p4clients\svnmain\client3\trunk\systest\out142
derby.stream.error.style=rollingFile1
Database Class Loader started - derby.database.classpath=''
WARNING 01J01: Database 'db1' not created, connection made to existing database
instead.
ij> exit;
----------------------------------------------------------------
Mon Sep 30 13:18:35 PDT 2013: Shutting down Derby engine
----------------------------------------------------------------
Mon Sep 30 13:18:35 PDT 2013:
Shutting down instance a816c00e-0141-7085-65ee-000073edb42f on database
directory C:\p4clients\svnmain\client3\trunk\systest\out142\db1 with class
loader sun.misc.Launcher$AppClassLoader@538b538b
----------------------------------------------------------------
> Provide a rolling file implementation of derby.log
> --------------------------------------------------
>
> Key: DERBY-6350
> URL: https://issues.apache.org/jira/browse/DERBY-6350
> Project: Derby
> Issue Type: Improvement
> Components: Miscellaneous
> Reporter: Brett Bergquist
> Priority: Minor
> Labels: features
> Attachments: rollingfilelog.patch.txt, rollingfilelog.patch.txt,
> rolling_file_patch_5.txt, rolling_file_patch_6.txt
>
>
> By default, derby.log grows without bounds if the derby.infolog.append
> property is set to "true". Setting this to "true" helps in a hands off
> production environment to ensure that if Derby restarts, the derby.log which
> might contain important information is not lost. On the other hand, when set
> the "true" the derby.log grows without bounds. This is problematic in a long
> running system.
> What is really needed is the ability to have a rolling derby.log file support
> where the maximum file size and maximum number of files can be specified.
> Derby has the ability to configure the location of the log file (ie.
> derby.stream.error.file) and also two methods of redirecting the error stream
> (.ie derby.stream.error.method and derby.stream.error.field). There is no
> standard implementation that supports a rolling derby.log however.
> This facility should be part of the core Derby system so that it works in
> both embedded and network server models.
--
This message was sent by Atlassian JIRA
(v6.1#6144)