You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Bruno CORNOUILLER (JIRA)" <ji...@apache.org> on 2013/11/16 20:23:21 UTC
[jira] [Created] (JCR-3694) Exception on shutdown when using
BindableRepository
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)