db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Matrigali (JIRA)" <j...@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
Date Tue, 15 Feb 2011 19:18:57 GMT

     [ https://issues.apache.org/jira/browse/DERBY-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Matrigali updated DERBY-1066:
----------------------------------

    Urgency: Normal
     Labels: derby_triage10_8  (was: )

derby 10.8 triage

> 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
>              Labels: derby_triage10_8
>
> 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.<init>(EmbedConnection.jav
> a:224)
>         at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(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.<init>(utilMain.java:149)
>         at org.apache.derby.impl.tools.ij.utilMain14.<init>(utilMain14.java:51)
>         at org.apache.derby.impl.tools.ij.Main14.getutilMain(Main14.java:102)
>         at org.apache.derby.impl.tools.ij.Main.<init>(Main.java:228)
>         at org.apache.derby.impl.tools.ij.Main14.<init>(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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message