jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo Orair (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3217) NPE when getting the repository using JCA
Date Mon, 23 Jan 2012 14:26:40 GMT
NPE when getting the repository using JCA
-----------------------------------------

                 Key: JCR-3217
                 URL: https://issues.apache.org/jira/browse/JCR-3217
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jca
    Affects Versions: 2.3.4
            Reporter: Gustavo Orair
            Priority: Blocker


https://issues.apache.org/jira/browse/JCR-3129 seems to open a new bug.

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
|#] 

--
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

        

Mime
View raw message