java.lang.IllegalStateException

null

Samebug tips1

Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1675

  • via GitHub by xeviscc
    , 1 year ago
    null
  • null
  • null
  • Stack trace

    • java.lang.IllegalStateException: null at com.google.common.base.Preconditions.checkState(Preconditions.java:161)[guava-16.0.1.jar:na] at org.sonatype.nexus.capability.support.CapabilitySupport.onCreate(CapabilitySupport.java:138)[nexus-capabilities-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.nexus.plugins.capabilities.internal.DefaultCapabilityReference$NewState.create(DefaultCapabilityReference.java:434)[nexus-capabilities-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.nexus.plugins.capabilities.internal.DefaultCapabilityReference.create(DefaultCapabilityReference.java:250)[nexus-capabilities-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.nexus.plugins.capabilities.internal.DefaultCapabilityRegistry.add(DefaultCapabilityRegistry.java:147)[nexus-capabilities-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilitiesResource.post(CapabilitiesResource.java:171)[nexus-capabilities-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilitiesResource$$EnhancerByGuice$$b602201a.CGLIB$post$6(<generated>)[sisu-guice-3.1.10.jar:na] at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilitiesResource$$EnhancerByGuice$$b602201a$$FastClassByGuice$$5b127b39.invoke(<generated>)[sisu-guice-3.1.10.jar:na] at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)[sisu-guice-3.1.10.jar:3.1.10] at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)[sisu-guice-3.1.10.jar:3.1.10] at org.apache.shiro.guice.aop.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:49)[shiro-guice-1.2.3.jar:1.2.3] at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.guice.aop.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:36)[shiro-guice-1.2.3.jar:1.2.3] at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)[sisu-guice-3.1.10.jar:3.1.10] at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)[sisu-guice-3.1.10.jar:3.1.10] at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilitiesResource$$EnhancerByGuice$$b602201a.post(<generated>)[sisu-guice-3.1.10.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_71] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_71] at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at org.sonatype.sisu.siesta.server.internal.SiestaServlet.service(SiestaServlet.java:121)[nexus-siesta-plugin-2.11.3-SNAPSHOT/:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)[javax.servlet-3.0.0.v201112011016.jar:na] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:288)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:278)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)[guice-servlet-3.1.10.jar:3.1.10] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)[shiro-web-1.2.3.jar:1.2.3] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.sonatype.nexus.analytics.internal.RestRequestCollector.doFilter(RestRequestCollector.java:81)[nexus-analytics-plugin-2.11.3-SNAPSHOT/:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.3.jar:1.2.3] at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:90)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.3.jar:1.2.3] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:135)[nexus-licensing-plugin-2.11.3-SNAPSHOT/:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)[metrics-web-2.2.0.jar:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:70)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56)[nexus-core-2.11.3-SNAPSHOT.jar:2.11.3-SNAPSHOT] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[jetty-security-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200)[metrics-jetty-2.2.0.jar:na] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[jetty-http-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[jetty-http-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[jetty-io-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[jetty-io-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_71]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    84 more bugmates