Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 32709 invoked from network); 30 Jun 2009 14:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 14:50:01 -0000 Received: (qmail 17127 invoked by uid 500); 30 Jun 2009 14:50:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 17068 invoked by uid 500); 30 Jun 2009 14:50:11 -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 17060 invoked by uid 99); 30 Jun 2009 14:50:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 14:50:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 14:50:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C52B234C044 for ; Tue, 30 Jun 2009 07:49:47 -0700 (PDT) Message-ID: <1453855738.1246373387311.JavaMail.jira@brutus> Date: Tue, 30 Jun 2009 07:49:47 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1066) database creation with log device as relative path under security manager throws NULL pointer excetpton if there is NO acess permission for user.dir In-Reply-To: <688642990.1141134725722.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-1066: --------------------------------- Component/s: Services > database creation with log device as relative path under security manager throws NULL pointer excetpton if there is NO acess permission for user.dir > ------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1066 > URL: https://issues.apache.org/jira/browse/DERBY-1066 > Project: Derby > Issue Type: Bug > Components: Services > Affects Versions: 10.2.1.6 > Reporter: Suresh Thalamati > Priority: Minor > > To reproduce this : > run store/logDevice.sql with jars under the security manager. > and other tests in store which tests with logDeivice. > ---- I think user.dir permissions are must if logDevice is specified as relative path becuase the full path has to be stored in the databases. > ---- We might need to add a special policy with user.dir permission for atleast one tests and convert the other tests to use absolute path if that solves the problem. > . > --- Even if there is no permissions , error should reflect that not an NPE. > Stack: from logDevice.sql test > 2006-02-28 12:57:53.300 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - 10.2.0.0 > alpha - (381484M): instance c013800d-0109-b0bc-70fe-ffffd467c511 > on database directory C:\suresht\p4clients\ts_main\systest\out\storemore\storemo > re\logDevice\wombat > 2006-02-28 12:57:53.330 GMT: > Shutting down instance c013800d-0109-b0bc-70fe-ffffd467c511 > ---------------------------------------------------------------- > 2006-02-28 12:57:53.340 GMT Thread[main,5,main] Cleanup action starting > java.lang.NullPointerException > at org.apache.derby.impl.store.raw.log.LogToFile.stop(LogToFile.java:318 > 9) > at org.apache.derby.impl.services.monitor.TopService.stop(TopService.jav > a:404) > at org.apache.derby.impl.services.monitor.TopService.shutdown(TopService > .java:348) > at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMo > nitor.java:1853) > at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentSe > rvice(BaseMonitor.java:1013) > at org.apache.derby.iapi.services.monitor.Monitor.createPersistentServic > e(Monitor.java:587) > at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnec > tion.java:1513) > at org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.jav > a:224) > at org.apache.derby.impl.jdbc.EmbedConnection30.(EmbedConnection30 > .java:72) > at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73 > ) > at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:187) > at java.sql.DriverManager.getConnection(DriverManager.java:512) > at java.sql.DriverManager.getConnection(DriverManager.java:140) > at org.apache.derby.impl.tools.ij.util.startJBMS(util.java:493) > at org.apache.derby.impl.tools.ij.util.startJBMS(util.java:573) > at org.apache.derby.impl.tools.ij.ConnectionEnv.init(ConnectionEnv.java: > 62) > at org.apache.derby.impl.tools.ij.utilMain.(utilMain.java:149) > at org.apache.derby.impl.tools.ij.utilMain14.(utilMain14.java:51) > at org.apache.derby.impl.tools.ij.Main14.getutilMain(Main14.java:102) > at org.apache.derby.impl.tools.ij.Main.(Main.java:228) > at org.apache.derby.impl.tools.ij.Main14.(Main14.java:68) > at org.apache.derby.impl.tools.ij.Main14.getMain(Main14.java:91) > at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:166) > at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55) > at org.apache.derby.tools.ij.main(ij.java:60) > Cleanup action completed > ~ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.