jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno CORNOUILLER (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3694) Exception on shutdown when using BindableRepository
Date Sat, 16 Nov 2013 19:23:21 GMT
Bruno CORNOUILLER created JCR-3694:
--------------------------------------

             Summary: Exception on shutdown when using BindableRepository
                 Key: JCR-3694
                 URL: https://issues.apache.org/jira/browse/JCR-3694
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.6.4
            Reporter: Bruno CORNOUILLER


I declare a resource in "context.xml" (of my app) :

<Resource name="jcr/myRepository" auth="Container"
type="javax.jcr.Repository"
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
configFilePath="C:\myapp\conf\repository.xml"
repHomeDir="C:\myapp\repository" />

And then, i call the repository like that :

InitialContext context = new InitialContext();
Repository repository = (Repository) context.lookup("java:comp/env/jcr/myRepository");

I do anything else. And I stop tomcat, and i have this exception :
Exception in thread "Thread-3" java.lang.NullPointerException
	at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1060)
	at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:1048)
	at org.apache.jackrabbit.core.jndi.BindableRepository.shutdown(BindableRepository.java:259)
	at org.apache.jackrabbit.core.jndi.BindableRepository$1.run(BindableRepository.java:120)

The NullPointerException is on this line :
 log.info("Shutting down repository...");





--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message