Description
Add the end of the boostrap process after initializing new content InitializationProcessorImpl.unlock() is called which fails because there are pending changes in the session. This causes the repository to fail to start up.
Full stack trace:
26.05.2015 21:06:51 ERROR [org.hippoecm.repository.RepositoryServlet.init():231] Error while setting up JCR repository: javax.jcr.InvalidItemStateException: Unable to perform operation. Session has pending changes. at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:269) at org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:248) at org.apache.jackrabbit.core.lock.SessionLockManager.unlock(SessionLockManager.java:194) at org.hippoecm.repository.impl.InitializationProcessorImpl.unlock(InitializationProcessorImpl.java:257) at org.hippoecm.repository.LocalHippoRepository.initializeStartup(LocalHippoRepository.java:360) at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:263) at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:178) at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:191) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 26.05.2015 21:36:35 WARN [org.hippoecm.frontend.session.PluginUserSession.getJcrSession():202] Cannot login fallback session: No repository found at: vm:// 26.05.2015 21:36:35 ERROR [org.hippoecm.frontend.RepositoryRuntimeExceptionHandlingRequestCycleListener.createRequestHandler():72] Creating RequestHandler for RepositoryUnavailableException: org.hippoecm.frontend.RepositoryUnavailableException: Repository is not available. org.hippoecm.frontend.RepositoryUnavailableException: Repository is not available.