java.lang.IllegalMonitorStateException: null

Sonatype JIRA | Rich Seddon | 4 years ago
  1. 0

    Saw this in the log after promoting staging repositories on RSO: {quote} 2012-07-30 10:52:47 INFO [119591475-63416] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Task Configuration] made by rseddon... 2012-07-30 10:52:47 INFO [119591475-63416] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Sonatype Private Grid, nexus-004 (u:rseddon, a:66.68.60.139)] made by rseddon... 2012-07-30 10:52:47 INFO [pool-1-thread-2] - org.sonatype.nexus.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) started :: Updating repository index "nexus-004 (u:rseddon, a:66.68.60.139)" from path null and below. 2012-07-30 10:52:47 INFO [pool-1-thread-2] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository nexus-004 2012-07-30 10:52:47 INFO [pool-1-thread-2] - org.apache.maven.index.packer.DefaultIndexPacker - Unable to read properties file, will force index regeneration 2012-07-30 10:52:47 WARN [pool-1-thread-2] - org.sonatype.nexus.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) failed :: Updating repository index "nexus-004 (u:rseddon, a:66.68.60.139)" from path null and below. (started 2012-07-30T10:52:47-05:00, runtime 0:00:00.122) java.lang.IllegalMonitorStateException: null at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:363) ~[na:1.6.0_24] at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1317) ~[na:1.6.0_24] at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:745) ~[na:1.6.0_24] at org.apache.maven.index.context.DefaultIndexingContext.unlock(DefaultIndexingContext.java:193) ~[na:na] at org.apache.maven.index.context.MergedIndexingContext.unlock(MergedIndexingContext.java:270) ~[na:na] at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:212) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1281) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:842) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) ~[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) ~[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158) ~[nexus-app-2.1.jar:na] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) [plexus-task-scheduler-1.6.0.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_24] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_24] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_24] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) [na:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_24] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_24] {quote}

    Sonatype JIRA | 4 years ago | Rich Seddon
    java.lang.IllegalMonitorStateException: null
  2. 0

    Booted up a copy of oss.sonatype.org config. During the lengthy whitelist initialization, noticed a WARN printed that is concerning. {noformat} jvm 1 | 2013-03-11 17:22:19 WARN [y-main-thread-1] - org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl - Problem during white-list initialisation of "net.mikera-336 (u:mikera, a:218.186.132.76)" [id=netmikera-336] jvm 1 | java.lang.IllegalMonitorStateException: null jvm 1 | at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:363) ~[na:1.6.0_41] jvm 1 | at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1317) ~[na:1.6.0_41] jvm 1 | at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:745) ~[na:1.6.0_41] jvm 1 | at org.sonatype.nexus.proxy.item.SimpleLockResource.unlock(SimpleLockResource.java:111) ~[nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.item.DefaultRepositoryItemUidLock.unlock(DefaultRepositoryItemUidLock.java:49) ~[nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.updateGroupWhitelist(WLManagerImpl.java:689) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.updateAndPublishWhitelist(WLManagerImpl.java:523) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.propagateWLUpdateOf(WLManagerImpl.java:1040) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.publish(WLManagerImpl.java:1001) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.doInitializeWhitelist(WLManagerImpl.java:242) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.initializeWhitelist(WLManagerImpl.java:228) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.startup(WLManagerImpl.java:188) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.maven.wl.internal.WLManagerImpl.onNexusStartedEvent(WLManagerImpl.java:1123) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_41] jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_41] jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_41] jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_41] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:69) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.guava.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:304) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:59) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:251) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:96) [goodies-eventbus-1.6.jar:1.6] jvm 1 | at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:507) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:413) [nexus-core-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.start(PlexusLifecycleManager.java:362) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:306) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:151) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1055) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.Scopes$1$1.get(Scopes.java:59) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1002) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1048) [sisu-guice-3.1.2.jar:na] jvm 1 | at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:998) [sisu-guice-3.1.2.jar:na] jvm 1 | at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:82) [sisu-inject-bean-2.3.2.jar:na] jvm 1 | at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:52) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243) [sisu-inject-plexus-2.3.2.jar:na] jvm 1 | at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:41) [nexus-web-utils-2.4-SNAPSHOT.jar:2.4-SNAPSHOT] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) [jetty-servlet-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) [jetty-servlet-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) [jetty-webapp-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) [jetty-webapp-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.server.Server.doStart(Server.java:277) [jetty-server-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.8.v20121106.jar:8.1.8.v20121106] jvm 1 | at org.sonatype.sisu.jetty.Jetty8$JettyWrapperThread.run(Jetty8.java:152) [sisu-jetty8-1.4.2.jar:1.4.2] {noformat}

    Sonatype JIRA | 4 years ago | Peter Lynch
    java.lang.IllegalMonitorStateException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors
    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.IllegalMonitorStateException

      null

      at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared()
    2. Java RT
      ReentrantReadWriteLock$ReadLock.unlock
      1. java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:363)[na:1.6.0_24]
      2. java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1317)[na:1.6.0_24]
      3. java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:745)[na:1.6.0_24]
      3 frames
    3. Maven :: Indexer Core
      DefaultIndexPacker.packIndex
      1. org.apache.maven.index.context.DefaultIndexingContext.unlock(DefaultIndexingContext.java:193)[na:na]
      2. org.apache.maven.index.context.MergedIndexingContext.unlock(MergedIndexingContext.java:270)[na:na]
      3. org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:212)[na:na]
      3 frames
    4. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1281)[na:na]
      2. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:842)[na:na]
      3. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812)[na:na]
      3 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54)[na:na]
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69)[na:na]
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.jar:na]
      3 frames
    6. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na]
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_24]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_24]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[na:1.6.0_24]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[na:1.6.0_24]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_24]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_24]
      7. java.lang.Thread.run(Thread.java:662)[na:1.6.0_24]
      7 frames