db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piet Blok" <pbh...@wanadoo.nl>
Subject derby.system.bootAll
Date Sat, 10 Sep 2005 13:43:56 GMT
In the Derby Developer's Guide, on top of page 12, I see a sentence: "see derby.system.bootAll
in the Tuning Derby Guide". However, a find on "bootAll" in the Tuning Guide delivers no hits.

So, to give it a try, I created a derby.properties file with this property set to true. That
results in an Exception. When set to false, everything seems normal. 

The following code demonstrates this behaviour:

public class BootAll {
    private static final String DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver";

    static {

        try {
            System.out.println("registered " + DRIVER_NAME);
        } catch (ClassNotFoundException e) {
            System.out.println(" failed to register " + DRIVER_NAME);

    public static void main(String[] args) {
        new BootAll();


With a property derby.system.bootAll=false, the result is:

C:\Documents and Settings\Piet\test>java BootAll
registered org.apache.derby.jdbc.EmbeddedDriver

C:\Documents and Settings\Piet\test>

And with the property derby.system.bootAll=true, the result is:

C:\Documents and Settings\Piet\test>java BootAll
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at BootAll.<clinit>(BootAll.java:8)
Caused by: java.lang.NullPointerException
        at org.apache.derby.impl.services.monitor.BaseMonitor.bootProviderServic
es(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.bootPersistentServ
ices(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
wn Source)
        at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Sou
        at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
        at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
        ... 3 more

C:\Documents and Settings\Piet\test>


C:\Documents and Settings\Piet\test>java org.apache.derby.tools.sysinfo
------------------ Java Information ------------------
Java Version:    1.5.0_04
Java Vendor:     Sun Microsystems Inc.
Java home:       C:\Program Files\Java\jre1.5.0_04
Java classpath:  .;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\l
ib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;C:\WINDOWS\java\classes;C:\WorkSpace\PB 3.
0\bin;C:\WorkSpace\Filipe\bin;C:\Documents and Settings\Piet\My Documents\Resour
ces\Jars\ImgrRdr130.jar;C:\Documents and Settings\Piet\My Documents\Resources\Ja
rs\lucene-1.4.1.jar;C:\Documents and Settings\Piet\My Documents\Resources\Jars\M
OS name:         Windows XP
OS architecture: x86
OS version:      5.1
Java user name:  Piet
Java user home:  C:\Documents and Settings\Piet
Java user dir:   C:\Documents and Settings\Piet\test
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[/org/apache/derby/info/DBMS.properties] - (208786)
[/org/apache/derby/info/tools.properties] - (208786)
[/org/apache/derby/info/net.properties] - (208786)
[/org/apache/derby/info/dnc.properties] - (208786)
----------------- Locale Information -----------------
Current Locale :  [Nederlands/Nederland [nl_NL]]
Found support for locale: [de_DE]
         version: - (208786)
Found support for locale: [es]
         version: - (208786)
Found support for locale: [fr]
         version: - (208786)
Found support for locale: [it]
         version: - (208786)
Found support for locale: [ja_JP]
         version: - (208786)
Found support for locale: [ko_KR]
         version: - (208786)
Found support for locale: [pt_BR]
         version: - (208786)
Found support for locale: [zh_CN]
         version: - (208786)
Found support for locale: [zh_TW]
         version: - (208786)

C:\Documents and Settings\Piet\test>

Piet Blok

View raw message