Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 3594 invoked from network); 28 Feb 2006 13:53:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Feb 2006 13:53:16 -0000 Received: (qmail 57801 invoked by uid 500); 28 Feb 2006 13:53:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57714 invoked by uid 500); 28 Feb 2006 13:53:01 -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 57683 invoked by uid 99); 28 Feb 2006 13:52:58 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 05:52:37 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B0DBADD for ; Tue, 28 Feb 2006 14:52:05 +0100 (CET) Message-ID: <688642990.1141134725722.JavaMail.jira@ajax.apache.org> Date: Tue, 28 Feb 2006 14:52:05 +0100 (CET) From: "Suresh Thalamati (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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: http://issues.apache.org/jira/browse/DERBY-1066 Project: Derby Type: Bug Components: Security Versions: 10.2.0.0 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. - 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