Details
Description
A staging move operation may return a 500 status code:
"POST /nexus/service/rest/beta/staging/move/master-mvn?repository=example&group=com.example.example HTTP/1.1" 500 172 71 "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
2019-02-03 21:55:20,697-0500 WARN [qtp1804378469-300335] user@example.com org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID 42d9271b-cd9c-4378-bdc5-771c38162111) Unexpected exception: java.lang.IllegalStateException: Unable to find component by id: DetachedEntityId{value='2b06d2fa2e1b42a4b489e1eb8a382549'} java.lang.IllegalStateException: Unable to find component by id: DetachedEntityId{value='2b06d2fa2e1b42a4b489e1eb8a382549'} at com.sonatype.nexus.staging.internal.StagingComponentManager.lambda$2(StagingComponentManager.java:133) at java.util.Optional.orElseThrow(Optional.java:290) at com.sonatype.nexus.staging.internal.StagingComponentManager.getComponent(StagingComponentManager.java:133) at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56) at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54) at com.sonatype.nexus.staging.internal.StagingComponentManager.verifyMove(StagingComponentManager.java:104) at com.sonatype.nexus.staging.internal.StagingService.checkAllowMoveTo(StagingService.java:331) at com.sonatype.nexus.staging.internal.StagingService.move(StagingService.java:167) at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270) at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) at com.sonatype.nexus.staging.internal.StagingResource.move(StagingResource.java:86) at org.apache.shiro.guice.aop.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:49) at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68) at org.apache.shiro.guice.aop.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:294) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:248) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:235) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:402) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:209) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at org.sonatype.nexus.siesta.internal.resteasy.ComponentContainerImpl.service(ComponentContainerImpl.java:106) at org.sonatype.nexus.siesta.SiestaServlet.service(SiestaServlet.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276) 2019-02-03 21:55:20,698-0500 WARN [qtp1804378469-300335] user@example.com org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID 42d9271b-cd9c-4378-bdc5-771c38162111) Response: [500] 'ERROR: (ID 42d9271b-cd9c-4378-bdc5-771c38162111) java.lang.IllegalStateException: Unable to find component by id: DetachedEntityId{value='2b06d2fa2e1b42a4b489e1eb8a382549'}'; mapped from: java.lang.IllegalStateException: Unable to find component by id: DetachedEntityId{value='2b06d2fa2e1b42a4b489e1eb8a382549'}
Reporter that experienced the issue claims this happens when trying to move 5000 components at once. When the move attempts to move less than 500 components at one time, it succeeded.
Attachments
Issue Links
- causes
-
NEXUS-19181 staging NullPointerException when moving docker assets via DockerComponentDirector.maybeCopyAssets
-
- Closed
-