There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • logmirror.ctrl is getting accessed outside the privileged block when the checkpoint instant is invalid on log factory boot method and cause this failure on boot if the database was not shutdown cleanly. The reproduction (see comment) shows that can happens after database creation. This problem was reported on the derby-dev list by Olav Sandstaa , filing jira entry for it. Olav Sandstaa wrote: > Rick Hillegas <Richard.Hillegas@Sun.COM> wrote: > > java.sql.SQLException: Java exception: 'access denied ( /export/home/tmp/derbyjdbc4/DerbyNetClient/TestConnectionMethods/wombat/log/logmirror.ctrl read):'. > at > at > at java.lang.SecurityManager.checkPermission( > at java.lang.SecurityManager.checkRead( > at > at > at > at > at > at > at > at > at > at > at > at > at > at > at > at > at > at > at org.apache.derby.impl.db.BasicDatabase.bootStore( > at org.apache.derby.impl.db.BasicDatabase.boot( > at > at > at > at > at > at > at > at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase( > at org.apache.derby.impl.jdbc.EmbedConnection.<init>( > at org.apache.derby.impl.jdbc.EmbedConnection30.<init>( > at org.apache.derby.impl.jdbc.EmbedConnection40.<init>( > at org.apache.derby.jdbc.Driver40.getNewEmbedConnection( > at org.apache.derby.jdbc.InternalDriver.connect( > at org.apache.derby.impl.drda.Database.makeConnection( > at org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName( > at org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword( > at org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK( > at org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection( > at org.apache.derby.impl.drda.DRDAConnThread.processCommands( > at > > The security exception is raised when Derby tries to get access to the > log/logmirror.ctrl file during the second startup of the database. I > would have expected that since this file was created earlier during > the initial startup of the test, the test should already have the > required security permissions to access it during the second startup? > > Anyway, the best solution to this problem would be to be able to reuse > functionality that already might exist in the test framework. Any > suggestions are appreciated. > > Regards, > Olav > By looking at the stack it looks like log/logmirror.ctrl is not getting accessed in the privileged block at line 2940 in if (checkpointInstant == LogCounter.INVALID_LOG_INSTANT && getMirrorControlFileName().exists()) Not sure how you got checkpointInstant to be INVALID , may be your test program might have exited before a first valid checkpoint. Any one fixing this bugs should make sure that is the case. In any case call to exists should have been privExists(getMirrorControlFileName()). Please file a Jira entry with information on how to reproduce this bug. Thanks -suresh
    via by Suresh Thalamati,
    • java.lang.NullPointerException at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.impl.drda.Database.makeConnection(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source) at Source)
    No Bugmate found.