org.sonatype.nexus.repository.IllegalOperationException: Repository does not allow updating assets.

Sonatype JIRA | Tamás Cservenák | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While the policy is enforced, the log gets an ugly stack-trace and response code of 500 Internal Error which is not acceptable. {noformat} 2015-05-15 12:57:40,456+0200 WARN [qtp725114275-51] admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Service failure org.sonatype.nexus.repository.IllegalOperationException: Repository does not allow updating assets. at org.sonatype.nexus.repository.storage.StorageTxImpl.setBlob(StorageTxImpl.java:431) [na:na] at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497) [na:1.8.0_45] at org.sonatype.nexus.common.stateguard.SimpleMethodInvocation.proceed(SimpleMethodInvocation.java:53) [na:na] at org.sonatype.nexus.common.stateguard.StateGuardAspect$1.invoke(StateGuardAspect.java:65) [na:na] at com.sun.proxy.$Proxy160.setBlob(Unknown Source) [na:na] at org.sonatype.nexus.repository.raw.internal.RawContentFacetImpl.put(RawContentFacetImpl.java:149) [na:na] at org.sonatype.nexus.repository.raw.internal.RawContentHandler.handle(RawContentHandler.java:73) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [na:na] at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:46) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [na:na] at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [na:na] at org.sonatype.nexus.repository.partial.PartialFetchHandler.handle(PartialFetchHandler.java:60) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [na:na] at org.sonatype.nexus.repository.view.Context.start(Context.java:112) [na:na] at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58) [na:na] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:45) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:177) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:164) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:121) [na:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api:3.1.0] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287) [com.google.inject:4.0.0] ... {noformat} Response should be 400 Bad Request.

    Sonatype JIRA | 2 years ago | Tamás Cservenák
    org.sonatype.nexus.repository.IllegalOperationException: Repository does not allow updating assets.

    Root Cause Analysis

    1. org.sonatype.nexus.repository.IllegalOperationException

      Repository does not allow updating assets.

      at org.sonatype.nexus.repository.storage.StorageTxImpl.setBlob()
    2. org.sonatype.nexus
      StorageTxImpl.setBlob
      1. org.sonatype.nexus.repository.storage.StorageTxImpl.setBlob(StorageTxImpl.java:431)[na:na]
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_45]
      3. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_45]
      3 frames
    4. org.sonatype.nexus
      StateGuardAspect$1.invoke
      1. org.sonatype.nexus.common.stateguard.SimpleMethodInvocation.proceed(SimpleMethodInvocation.java:53)[na:na]
      2. org.sonatype.nexus.common.stateguard.StateGuardAspect$1.invoke(StateGuardAspect.java:65)[na:na]
      2 frames
    5. com.sun.proxy
      $Proxy160.setBlob
      1. com.sun.proxy.$Proxy160.setBlob(Unknown Source)[na:na]
      1 frame
    6. org.sonatype.nexus
      ViewServlet.service
      1. org.sonatype.nexus.repository.raw.internal.RawContentFacetImpl.put(RawContentFacetImpl.java:149)[na:na]
      2. org.sonatype.nexus.repository.raw.internal.RawContentHandler.handle(RawContentHandler.java:73)[na:na]
      3. org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)[na:na]
      4. org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:46)[na:na]
      5. org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)[na:na]
      6. org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46)[na:na]
      7. org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)[na:na]
      8. org.sonatype.nexus.repository.partial.PartialFetchHandler.handle(PartialFetchHandler.java:60)[na:na]
      9. org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)[na:na]
      10. org.sonatype.nexus.repository.view.Context.start(Context.java:112)[na:na]
      11. org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58)[na:na]
      12. org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:45)[na:na]
      13. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:177)[na:na]
      14. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:164)[na:na]
      15. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:121)[na:na]
      15 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api:3.1.0]
      1 frame
    8. Guice - Servlet
      ServletDefinition.doServiceImpl
      1. com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)[com.google.inject:4.0.0]
      1 frame