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

JFrog JIRA | James Baxter | 7 years ago
  1. 0

    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

    JFrog JIRA | 7 years ago | James Baxter
    org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives
  2. 0

    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

    JFrog JIRA | 7 years ago | James Baxter
    org.artifactory.api.repo.exception.RepositoryRuntimeException: Could not index marked archives
  3. 0

    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

    JFrog JIRA | 7 years ago | James Baxter
    org.artifactory.api.repo.exception.RepositoryRuntimeException: javax.jcr.RepositoryException: this session has been closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apache Jackrabbit: RepositoryException: This session has been closed

    Stack Overflow | 3 years ago | devnull
    javax.jcr.RepositoryException: This session has been closed.
  6. 0

    Apache Jackrabbit: RepositoryException: This session has been closed

    Stack Overflow | 3 years ago | devnull
    javax.jcr.RepositoryException: This session has been closed.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.jcr.RepositoryException

      this session has been closed

      at org.apache.jackrabbit.core.SessionImpl.sanityCheck()
    2. Jackrabbit Core
      ItemImpl.getPath
      1. org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:397)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0]
      2. org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:136)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0]
      3. org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1287)[jackrabbit-core-jfrog-1.6.0.jar:1.6.0]
      3 frames
    3. org.artifactory.search
      SearchServiceImpl.indexMarkedArchives
      1. org.artifactory.search.archive.ArchiveIndexer.indexMarkedArchives(ArchiveIndexer.java:171)[artifactory-core-2.1.3.jar:na]
      2. org.artifactory.search.SearchServiceImpl.indexMarkedArchives(SearchServiceImpl.java:364)[artifactory-core-2.1.3.jar:na]
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_18]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_18]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_18]
      4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.6.0_18]
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)[spring-aop-2.5.6.jar:2.5.6]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.6.jar:2.5.6]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.6.jar:2.5.6]
      3 frames
    6. org.artifactory.schedule
      AsyncAdvice$1.run
      1. org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:122)[artifactory-core-2.1.3.jar:na]
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[na:1.6.0_18]
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)[na:1.6.0_18]
      3. java.util.concurrent.FutureTask.run(Unknown Source)[na:1.6.0_18]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)[na:1.6.0_18]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.6.0_18]
      6. java.lang.Thread.run(Unknown Source)[na:1.6.0_18]
      6 frames