java.lang.Exception: null

Sonatype JIRA | Peter Lynch | 4 years ago
  1. 0

    1) Unpack Nexus with default config and start it 2) Execute the attached JMeter binary using {{jmeter/bin/jmeter}} 3) open and run the attached plan file. The test plan creates a hosted repo, adds it to a group, removes it from a group and deletes the original repo repeatedly for 10 seconds. This can corrupt the search indexes and running repair index task will not recover it. If a keyword search is performed, it can return 500 status from Nexus. Selecting a node in browse storage for an existing artifact ( if you download one before running test ) can cause 500 error in UI. The only recovery for search seems to be to stop nexus, delete the indexer directory and run a publish indexes task on all repos to regenerate the indexes. In one case, I noticed an indexer/hosted-1-ctx directory failed to be created but the storage repo does. When publish indexes task is run in this case, it fails since hosted-1-ctx directory does not exist and lock cannot be obtained. Examples: {noformat} jvm 1 | 2013-04-14 22:06:08 ERROR [tp1113757163-71] - org.sonatype.nexus.events.IndexingRepositoryRegistryRepositoryEventInspector - Could not maintain indexing contexts! jvm 1 | org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/app/nexus-testing/2.3.1-01/nexus-professional-2.3.1-01-bundle-2/sonatype-work/nexus/indexer/hosted-1-ctx/write.lock jvm 1 | at org.apache.lucene.store.Lock.obtain(Lock.java:84) ~[lucene-core-3.6.1.jar:3.6.1 1362471 - thetaphi - 2012-07-17 12:40:12] jvm 1 | at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1098) ~[lucene-core-3.6.1.jar:3.6.1 1362471 - thetaphi - 2012-07-17 12:40:12] jvm 1 | at org.apache.maven.index.context.NexusIndexWriter.<init>(NexusIndexWriter.java:53) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.apache.maven.index.context.DefaultIndexingContext.openAndWarmup(DefaultIndexingContext.java:473) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.apache.maven.index.context.DefaultIndexingContext.prepareCleanIndex(DefaultIndexingContext.java:238) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.apache.maven.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:216) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:147) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:167) ~[indexer-core-5.1.1-d928049c927da992071a6c6bba892568dbcf27a3.jar:5.1.1-d928049c927da992071a6c6bba892568dbcf27a3] jvm 1 | at org.sonatype.nexus.index.NexusIndexingContext.<init>(NexusIndexingContext.java:45) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.addRepositoryIndexContext(DefaultIndexerManager.java:465) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.access$000(DefaultIndexerManager.java:186) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager$1.run(DefaultIndexerManager.java:430) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.exclusiveSingle(DefaultIndexerManager.java:2538) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.addRepositoryIndexContext(DefaultIndexerManager.java:424) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.addRepositoryIndexContext(DefaultIndexerManager.java:402) ~[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.events.IndexingRepositoryRegistryRepositoryEventInspector.inspectForIndexerManager(IndexingRepositoryRegistryRepositoryEventInspector.java:96) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.events.IndexingRepositoryRegistryRepositoryEventInspector.inspect(IndexingRepositoryRegistryRepositoryEventInspector.java:81) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:131) [nexus-app-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:104) [nexus-app-2.3.1-01.jar:2.3.1-01] jvm {noformat} {noformat} jvm 1 | 2013-04-14 22:08:34 WARN [ool-1-thread-20] - org.sonatype.nexus.index.DefaultIndexerManager - Could not perform index operation on repository hosted-1 jvm 1 | java.lang.Exception: null jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager$18.run(DefaultIndexerManager.java:2483) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.exclusiveSingle(DefaultIndexerManager.java:2538) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.temporary(DefaultIndexerManager.java:2466) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1044) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:915) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:41) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:73) [nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:166) [nexus-app-2.3.1-01.jar:2.3.1-01] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) [sisu-task-scheduler-1.7.jar:na] {noformat} State reproduced in 2.2.1, 2.3.1-01 and 2.4.0-09.

    Sonatype JIRA | 4 years ago | Peter Lynch
    java.lang.Exception: null
  2. 0

    Issue in Installing Oracle EPM 11.1.1

    Oracle Community | 8 years ago | Nra
    java.lang.Exception: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Oracle Hyperion System 11 - Installation on win xp pro

    Oracle Community | 7 years ago | 712632
    java.lang.Exception: null
  5. 0

    Excessive threads

    Google Groups | 3 years ago | Jake Pearson
    java.lang.Exception: null

    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.Exception

      null

      at org.sonatype.nexus.index.DefaultIndexerManager$18.run()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultIndexerManager$18.run(DefaultIndexerManager.java:2483)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      2. org.sonatype.nexus.index.DefaultIndexerManager.exclusiveSingle(DefaultIndexerManager.java:2538)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      3. org.sonatype.nexus.index.DefaultIndexerManager.temporary(DefaultIndexerManager.java:2466)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      4. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1044)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      5. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:915)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      5 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:41)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:73)[nexus-indexer-lucene-plugin-2.3.1-01.jar:2.3.1-01]
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:166)[nexus-app-2.3.1-01.jar:2.3.1-01]
      3 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[sisu-task-scheduler-1.7.jar:na]
      1 frame