[ 
https://issues.apache.org/jira/browse/JCR-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174914#comment-13174914
 ] 

Gustavo Orair commented on JCR-3129:
------------------------------------

There is another problem with this patch.

If config is null, it will call the method in line 108:
            config = RepositoryConfig.create(configFile, homeDir);

It will result in an NPE (Null Pointer Exception) on 
org.apache.jackrabbit.core.config.RepositoryConfig line 276:
        URI uri = new File(file).toURI();

Following stack trace is provided:
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at 
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:276)
        at 
org.apache.jackrabbit.jca.JCARepositoryManager.createNonTransientRepository(JCARepositoryManager.java:108)
        at 
org.apache.jackrabbit.jca.JCARepositoryManager.createRepository(JCARepositoryManager.java:77)
        at 
org.apache.jackrabbit.jca.JCAManagedConnectionFactory.getRepository(JCAManagedConnectionFactory.java:205)
        at 
org.apache.jackrabbit.jca.JCAManagedConnection.openSession(JCAManagedConnection.java:100)
        at 
org.apache.jackrabbit.jca.JCAManagedConnection.<init>(JCAManagedConnection.java:85)
        at 
org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createManagedConnection(JCAManagedConnectionFactory.java:174)
        at 
org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createManagedConnection(JCAManagedConnectionFactory.java:166)
        at 
com.sun.enterprise.resource.allocator.ConnectorAllocator.createResource(ConnectorAllocator.java:160)
        at 
com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:907)
        ... 77 more
|#]

                
> It should be possible to create a non-transient Repository inside the 
> JCARepositoryManager
> ------------------------------------------------------------------------------------------
>
>                 Key: JCR-3129
>                 URL: https://issues.apache.org/jira/browse/JCR-3129
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jca
>    Affects Versions: 2.3.1
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.3.4
>
>         Attachments: JCR-3129.patch
>
>
> With JCR-2555 jukka changed the code to create a Repository with the 
> RepositoryFactory mechanism.
> It should be possible to create a non-transient Repository

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to