org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I recently upgraded from 2.0.7 to 2.1.3 and copied the data and etc directories are per the upgrade guide. We have decided not to run it on the default port of 8081 anymore, so I changed it in bin/jetty.xml. However I now get the following Stacktrace on startup... 2010-02-02 09:42:06,097 [pool-1-thread-1] [WARN ] (o.a.j.JcrSession :278) - Failed to return jcr session to pool. org.artifactory.api.repo.exception.RepositoryRuntimeException: javax.jcr.RepositoryException: this session has been closed at org.artifactory.jcr.JcrSession.refresh(JcrSession.java:177) [artifactory-core-2.1.3.jar:na] at org.artifactory.jcr.JcrSession.logout(JcrSession.java:274) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:183) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364) [artifactory-core-2.1.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_18] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_18] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122) [artifactory-core-2.1.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_18] at java.lang.Thread.run(Unknown Source) [na:1.6.0_18] Caused by: javax.jcr.RepositoryException: this session has been closed at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.SessionImpl.refresh(SessionImpl.java:923) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.artifactory.jcr.JcrSession.refresh(JcrSession.java:175) [artifactory-core-2.1.3.jar:na] ... 17 common frames omitted 2010-02-02 09:42:06,099 [pool-1-thread-1] [ERROR] (o.a.s.a.AsyncAdvice :125) - Could not execute async method: 'public abstract void org.artifactory.api.search.SearchService.indexMarkedArchives()'. org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:181) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364) [artifactory-core-2.1.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_18] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_18] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122) [artifactory-core-2.1.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_18] at java.lang.Thread.run(Unknown Source) [na:1.6.0_18] Caused by: javax.jcr.RepositoryException: this session has been closed at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:136) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1287) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:171) [artifactory-core-2.1.3.jar:na] ... 15 common frames omitted
    via by James Baxter,
  • I recently upgraded from 2.0.7 to 2.1.3 and copied the data and etc directories are per the upgrade guide. We have decided not to run it on the default port of 8081 anymore, so I changed it in bin/jetty.xml. However I now get the following Stacktrace on startup... 2010-02-02 09:42:06,097 [pool-1-thread-1] [WARN ] (o.a.j.JcrSession :278) - Failed to return jcr session to pool. org.artifactory.api.repo.exception.RepositoryRuntimeException: javax.jcr.RepositoryException: this session has been closed at org.artifactory.jcr.JcrSession.refresh(JcrSession.java:177) [artifactory-core-2.1.3.jar:na] at org.artifactory.jcr.JcrSession.logout(JcrSession.java:274) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:183) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364) [artifactory-core-2.1.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_18] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_18] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122) [artifactory-core-2.1.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_18] at java.lang.Thread.run(Unknown Source) [na:1.6.0_18] Caused by: javax.jcr.RepositoryException: this session has been closed at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.SessionImpl.refresh(SessionImpl.java:923) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.artifactory.jcr.JcrSession.refresh(JcrSession.java:175) [artifactory-core-2.1.3.jar:na] ... 17 common frames omitted 2010-02-02 09:42:06,099 [pool-1-thread-1] [ERROR] (o.a.s.a.AsyncAdvice :125) - Could not execute async method: 'public abstract void org.artifactory.api.search.SearchService.indexMarkedArchives()'. org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:181) [artifactory-core-2.1.3.jar:na] at org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364) [artifactory-core-2.1.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_18] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_18] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_18] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122) [artifactory-core-2.1.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.6.0_18] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_18] at java.lang.Thread.run(Unknown Source) [na:1.6.0_18] Caused by: javax.jcr.RepositoryException: this session has been closed at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:136) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1287) [jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:171) [artifactory-core-2.1.3.jar:na] ... 15 common frames omitted
    via by James Baxter,
  • JCR Re-opening Connections
    via Stack Overflow by Steve
    ,
    • org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:181)[artifactory-core-2.1.3.jar:na] at org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364)[artifactory-core-2.1.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_18] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_18] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_18] at java.lang.reflect.Method.invoke(Unknown Source)[na:1.6.0_18] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.6.jar:2.5.6] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122)[artifactory-core-2.1.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[na:1.6.0_18] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)[na:1.6.0_18] at java.util.concurrent.FutureTask.run(Unknown Source)[na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)[na:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.6.0_18] at java.lang.Thread.run(Unknown Source)[na:1.6.0_18] Caused by: javax.jcr.RepositoryException: this session has been closed at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:136)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1287)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0] at org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:171)[artifactory-core-2.1.3.jar:na] ... 15 more
    No Bugmate found.