java.lang.RuntimeException: Failed to index repository 'third-party'.

JFrog JIRA | Craig | 8 years ago
  1. 0

    I just installed artifactory 1.3.0 beta 6 and set up a local repository called "third-party." I was able to deploy a SNAPSHOT artifact to it (using mvn deploy). The two deployed artifacts are com.molecular.logger:loggerMaster and com.molecular.logger:logger. Then I attempting to build another project which depended on this SNAPSHOT and got this error from maven: [INFO] Error building POM (may not be this project's POM). Project ID: com.molecular.logger:logger:jar:1.0-SNAPSHOT Reason: Cannot find parent: com.molecular.logger:loggerMaster for project: com.molecular.logger:logger:jar:1.0-SNAPSHOT for project com.molecular.logger:logger:jar:1.0-SNAPSHOT So I looked in the artifactory logs, and saw this: 2008-11-22 06:01:29,630 [ERROR] (o.a.r.i.IndexerManagerImpl:176) - Fetching index files failed. java.lang.RuntimeException: Failed to index repository 'third-party'. at org.artifactory.repo.index.RepoIndexerData.createIndex(RepoIndexerData.java:133) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.IndexerManagerImpl.findOrCreateIndex(IndexerManagerImpl.java:204) [artifactory-core-1.3.0-beta-6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_0] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [na:1.6.0_0] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.6.0_0] at java.lang.reflect.Method.invoke(Method.java:616) [na:1.6.0_0] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.5.jar:2.5.5] at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) [artifactory-core-1.3.0-beta-6.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.5.jar:2.5.5] at $Proxy16.findOrCreateIndex(Unknown Source) [na:na] at org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:174) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:166) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43) [artifactory-core-1.3.0-beta-6.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.2.jar:1.6.2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_0] at java.lang.Thread.run(Thread.java:636) [na:1.6.0_0] Caused by: java.lang.RuntimeException: Indexing failed. at org.artifactory.repo.index.RepoIndexer.index(RepoIndexer.java:129) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.RepoIndexerData.createIndex(RepoIndexerData.java:123) [artifactory-core-1.3.0-beta-6.jar:na] ... 20 common frames omitted Caused by: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultArtifactContextProducer.getArtifactContext(DefaultArtifactContextProducer.java:84) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.processFile(DefaultScanner.java:131) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:113) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scan(DefaultScanner.java:46) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:261) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:155) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.artifactory.repo.index.RepoIndexer.index(RepoIndexer.java:117) [artifactory-core-1.3.0-beta-6.jar:na] ... 21 common frames omitted This error is completely fatal - I cannot use artifactory as is, and unfortunately had to revert to 1.2.5.

    JFrog JIRA | 8 years ago | Craig
    java.lang.RuntimeException: Failed to index repository 'third-party'.
  2. 0

    I just installed artifactory 1.3.0 beta 6 and set up a local repository called "third-party." I was able to deploy a SNAPSHOT artifact to it (using mvn deploy). The two deployed artifacts are com.molecular.logger:loggerMaster and com.molecular.logger:logger. Then I attempting to build another project which depended on this SNAPSHOT and got this error from maven: [INFO] Error building POM (may not be this project's POM). Project ID: com.molecular.logger:logger:jar:1.0-SNAPSHOT Reason: Cannot find parent: com.molecular.logger:loggerMaster for project: com.molecular.logger:logger:jar:1.0-SNAPSHOT for project com.molecular.logger:logger:jar:1.0-SNAPSHOT So I looked in the artifactory logs, and saw this: 2008-11-22 06:01:29,630 [ERROR] (o.a.r.i.IndexerManagerImpl:176) - Fetching index files failed. java.lang.RuntimeException: Failed to index repository 'third-party'. at org.artifactory.repo.index.RepoIndexerData.createIndex(RepoIndexerData.java:133) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.IndexerManagerImpl.findOrCreateIndex(IndexerManagerImpl.java:204) [artifactory-core-1.3.0-beta-6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_0] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [na:1.6.0_0] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.6.0_0] at java.lang.reflect.Method.invoke(Method.java:616) [na:1.6.0_0] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.5.jar:2.5.5] at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) [artifactory-core-1.3.0-beta-6.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.5.jar:2.5.5] at $Proxy16.findOrCreateIndex(Unknown Source) [na:na] at org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:174) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:166) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43) [artifactory-core-1.3.0-beta-6.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.2.jar:1.6.2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_0] at java.lang.Thread.run(Thread.java:636) [na:1.6.0_0] Caused by: java.lang.RuntimeException: Indexing failed. at org.artifactory.repo.index.RepoIndexer.index(RepoIndexer.java:129) [artifactory-core-1.3.0-beta-6.jar:na] at org.artifactory.repo.index.RepoIndexerData.createIndex(RepoIndexerData.java:123) [artifactory-core-1.3.0-beta-6.jar:na] ... 20 common frames omitted Caused by: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultArtifactContextProducer.getArtifactContext(DefaultArtifactContextProducer.java:84) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.processFile(DefaultScanner.java:131) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:113) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.scan.DefaultScanner.scan(DefaultScanner.java:46) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:261) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:155) [nexus-indexer-1.0-beta-3.1.1.jar:na] at org.artifactory.repo.index.RepoIndexer.index(RepoIndexer.java:117) [artifactory-core-1.3.0-beta-6.jar:na] ... 21 common frames omitted This error is completely fatal - I cannot use artifactory as is, and unfortunately had to revert to 1.2.5.

    JFrog JIRA | 8 years ago | Craig
    java.lang.RuntimeException: Failed to index repository 'third-party'.
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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. java.lang.NullPointerException

      No message provided

      at org.sonatype.nexus.index.DefaultArtifactContextProducer.getArtifactContext()
    2. Sonatype Nexus Indexer
      DefaultArtifactContextProducer.getArtifactContext
      1. org.sonatype.nexus.index.DefaultArtifactContextProducer.getArtifactContext(DefaultArtifactContextProducer.java:84)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      1 frame
    3. org.sonatype.nexus
      DefaultScanner.scan
      1. org.sonatype.nexus.index.scan.DefaultScanner.processFile(DefaultScanner.java:131)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      2. org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:113)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      3. org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      4. org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      5. org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      6. org.sonatype.nexus.index.scan.DefaultScanner.scanDirectory(DefaultScanner.java:74)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      7. org.sonatype.nexus.index.scan.DefaultScanner.scan(DefaultScanner.java:46)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      7 frames
    4. Sonatype Nexus Indexer
      DefaultNexusIndexer.scan
      1. org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:261)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      2. org.sonatype.nexus.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:155)[nexus-indexer-1.0-beta-3.1.1.jar:na]
      2 frames
    5. org.artifactory.repo
      IndexerManagerImpl.findOrCreateIndex
      1. org.artifactory.repo.index.RepoIndexer.index(RepoIndexer.java:117)[artifactory-core-1.3.0-beta-6.jar:na]
      2. org.artifactory.repo.index.RepoIndexerData.createIndex(RepoIndexerData.java:123)[artifactory-core-1.3.0-beta-6.jar:na]
      3. org.artifactory.repo.index.IndexerManagerImpl.findOrCreateIndex(IndexerManagerImpl.java:204)[artifactory-core-1.3.0-beta-6.jar:na]
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_0]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.6.0_0]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.6.0_0]
      4. java.lang.reflect.Method.invoke(Method.java:616)[na:1.6.0_0]
      4 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.5.jar:2.5.5]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.5.jar:2.5.5]
      3 frames
    8. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)[spring-tx-2.5.5.jar:2.5.5]
      1 frame
    9. org.artifactory.jcr
      LockingAdvice.invoke
      1. org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79)[artifactory-core-1.3.0-beta-6.jar:na]
      1 frame
    10. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-2.5.5.jar:2.5.5]
      2 frames
    11. Unknown
      $Proxy16.findOrCreateIndex
      1. $Proxy16.findOrCreateIndex(Unknown Source)[na:na]
      1 frame
    12. org.artifactory.repo
      IndexerManagerImpl$FindOrCreateIndexJob.onExecute
      1. org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:174)[artifactory-core-1.3.0-beta-6.jar:na]
      2. org.artifactory.repo.index.IndexerManagerImpl$FindOrCreateIndexJob.onExecute(IndexerManagerImpl.java:166)[artifactory-core-1.3.0-beta-6.jar:na]
      2 frames
    13. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43)[artifactory-core-1.3.0-beta-6.jar:na]
      1 frame
    14. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.2.jar:1.6.2]
      1 frame
    15. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[na:1.6.0_0]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[na:1.6.0_0]
      3. java.lang.Thread.run(Thread.java:636)[na:1.6.0_0]
      3 frames