archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: 100% CPU on Debian
Date Sat, 12 Apr 2014 00:43:31 GMT
maybe log4j2 async with disruptor.
See http://archiva.apache.org/docs/2.0.2-SNAPSHOT/adminguide/logging.html


On 12 April 2014 00:43,  <ps0411920@gmail.com> wrote:
> Hi,
>
>
>
> I'm attempting to use Archiva on a debian virtualbox and Archiva consumes
> all the CPU.
>
>
>
> I've tested it with several JVM but the problem remain. I've check the linux
> user has access to repository and index folder and I also tries to diagnose
> using jvisualvm but that impossible to see cpu per threads.
>
>
>
> The same 2.0.1 version runs fine on windows 7.
>
>
>
> Log files says that but I don't know if it's the problem:
>
> java.lang.RuntimeException: Unable to update a stale item: item.save()
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1238) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.metadata.repository.RepositorySession.save(RepositorySess
> ion.java:69) ~[metadata-repository-api-2.0.1.jar:2.0.1]
>
>                 at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.proces
> sFile(ArchivaMetadataCreationConsumer.java:204)
> ~[archiva-metadata-consumer-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.proces
> sFile(ArchivaMetadataCreationConsumer.java:229)
> ~[archiva-metadata-consumer-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure.ex
> ecute(ConsumerProcessFileClosure.java:60)
> [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.commons.collections.functors.IfClosure.execute(IfClosure.java:118
> ) [commons-collections-3.2.1.jar:3.2.1]
>
>                 at
> org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java
> :389) [commons-collections-3.2.1.jar:3.2.1]
>
>                 at
> org.apache.archiva.repository.scanner.RepositoryScannerInstance.directoryWal
> kStep(RepositoryScannerInstance.java:163)
> [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:174)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:392)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:345)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultR
> epositoryScanner.java:133) [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultR
> epositoryScanner.java:65) [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.rest.services.DefaultRepositoriesService.scanRepositoryDi
> rectoriesNow(DefaultRepositoriesService.java:1090)
> [archiva-rest-services-2.0.1.jar:?]
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:1.6.0_27]
>
>                 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
> ) ~[?:1.6.0_27]
>
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:43) ~[?:1.6.0_27]
>
>                 at java.lang.reflect.Method.invoke(Method.java:616)
> ~[?:1.6.0_27]
>
>                 at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInv
> oker.java:180) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:9
> 6) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:165)
> [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:89)
> [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInt
> erceptor.java:57) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceIn
> vokerInterceptor.java:93) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:263) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationOb
> server.java:121) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDes
> tination.java:237) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servlet
> Controller.java:239) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:213) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServ
> let.java:131) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractH
> TTPServlet.java:266) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServl
> et.java:191) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
> [javax.servlet-3.0.0.v201112011016.jar:?]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPSer
> vlet.java:242) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
> .java:1496) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
> acterEncodingFilter.java:88) [spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE]
>
>                 at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
> ilter.java:108) [spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
> .java:1476) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137
> ) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> [jetty-security-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java
> :231) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java
> :1086) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
> 193) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
> 1020) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135
> ) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHand
> lerCollection.java:255) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.
> java:154) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 16) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at org.eclipse.jetty.server.Server.handle(Server.java:370)
> [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpCo
> nnection.java:494) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpC
> onnection.java:971) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplet
> e(AbstractHttpConnection.java:1033)
> [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java
> :82) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.
> java:667) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.j
> ava:52) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
> 608) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:5
> 43) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at java.lang.Thread.run(Thread.java:679) [?:1.6.0_27]
>
> Caused by: javax.jcr.InvalidItemStateException: Unable to update a stale
> item: item.save()
>
>                 at
> org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:
> 262) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveO
> peration.java:65) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1234) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 ... 66 more
>
> Caused by: org.apache.jackrabbit.core.state.StaleItemStateException:
> 44513b1d-fbf5-498e-a293-3369fd4b9f72/{}groupId has been modified externally
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedI
> temStateManager.java:679) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedIt
> emStateManager.java:1507) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemSta
> teManager.java:1537) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemState
> Manager.java:400) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManage
> r.java:354) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemState
> Manager.java:375) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemS
> tateManager.java:275) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:
> 258) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveO
> peration.java:65) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1234) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 ... 66 more
>
> 2014-04-11 09:30:05,195 [qtp25174220-26] ERROR
> org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure []
> - Consumer [create-archiva-metadata] had an error when processing file
> [/home/archiva/m2/internal/com/mextor/idea-extensions/12.1.6/idea-extensions
> -12.1.6-sources.jar]: Unable to update a stale item: item.save()
>
> java.lang.RuntimeException: Unable to update a stale item: item.save()
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1238) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.metadata.repository.RepositorySession.save(RepositorySess
> ion.java:69) ~[metadata-repository-api-2.0.1.jar:2.0.1]
>
>                 at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.proces
> sFile(ArchivaMetadataCreationConsumer.java:204)
> ~[archiva-metadata-consumer-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.proces
> sFile(ArchivaMetadataCreationConsumer.java:229)
> ~[archiva-metadata-consumer-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure.ex
> ecute(ConsumerProcessFileClosure.java:60)
> [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.commons.collections.functors.IfClosure.execute(IfClosure.java:118
> ) [commons-collections-3.2.1.jar:3.2.1]
>
>                 at
> org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java
> :389) [commons-collections-3.2.1.jar:3.2.1]
>
>                 at
> org.apache.archiva.repository.scanner.RepositoryScannerInstance.directoryWal
> kStep(RepositoryScannerInstance.java:163)
> [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:174)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:392)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:345)
> [plexus-utils-3.0.15.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultR
> epositoryScanner.java:133) [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultR
> epositoryScanner.java:65) [archiva-repository-scanner-2.0.1.jar:?]
>
>                 at
> org.apache.archiva.rest.services.DefaultRepositoriesService.scanRepositoryDi
> rectoriesNow(DefaultRepositoriesService.java:1090)
> [archiva-rest-services-2.0.1.jar:?]
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:1.6.0_27]
>
>                 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
> ) ~[?:1.6.0_27]
>
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:43) ~[?:1.6.0_27]
>
>                 at java.lang.reflect.Method.invoke(Method.java:616)
> ~[?:1.6.0_27]
>
>                 at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInv
> oker.java:180) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:9
> 6) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:165)
> [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:89)
> [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInt
> erceptor.java:57) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceIn
> vokerInterceptor.java:93) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:263) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationOb
> server.java:121) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDes
> tination.java:237) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servlet
> Controller.java:239) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:213) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServ
> let.java:131) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractH
> TTPServlet.java:266) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServl
> et.java:191) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
> [javax.servlet-3.0.0.v201112011016.jar:?]
>
>                 at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPSer
> vlet.java:242) [cxf-bundle-jaxrs-2.6.13.jar:2.6.13]
>
>                 at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
> .java:1496) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
> acterEncodingFilter.java:88) [spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE]
>
>                 at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
> ilter.java:108) [spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
> .java:1476) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137
> ) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> [jetty-security-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java
> :231) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java
> :1086) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
> 193) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
> 1020) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135
> ) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHand
> lerCollection.java:255) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.
> java:154) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 16) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at org.eclipse.jetty.server.Server.handle(Server.java:370)
> [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpCo
> nnection.java:494) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpC
> onnection.java:971) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplet
> e(AbstractHttpConnection.java:1033)
> [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java
> :82) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.
> java:667) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.j
> ava:52) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
> 608) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:5
> 43) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
>
>                 at java.lang.Thread.run(Thread.java:679) [?:1.6.0_27]
>
> Caused by: javax.jcr.InvalidItemStateException: Unable to update a stale
> item: item.save()
>
>                 at
> org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:
> 262) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveO
> peration.java:65) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1234) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 ... 66 more
>
> Caused by: org.apache.jackrabbit.core.state.StaleItemStateException:
> b0dea27e-f901-4cfc-87fb-714bc64c16cc/{}type has been modified externally
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedI
> temStateManager.java:679) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedIt
> emStateManager.java:1507) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemSta
> teManager.java:1537) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemState
> Manager.java:400) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManage
> r.java:354) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemState
> Manager.java:375) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemS
> tateManager.java:275) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:
> 258) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveO
> peration.java:65) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:21
> 6) ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
> ~[jackrabbit-core-2.6.5.jar:2.6.5]
>
>                 at
> org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.save(JcrMet
> adataRepository.java:1234) ~[metadata-store-jcr-2.0.1.jar:?]
>
>                 ... 66 more
>
>
>
>
>
> Any suggestion ?
>
>
>
> Stephane
>
>
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
View raw message