java.lang.RuntimeException

Could not copy XML streams due to:Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web25639

  • via JFrog JIRA by qxo, 10 months ago
    Could not copy XML streams due to:Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1)
  • via JFrog JIRA by qxo, 1 year ago
    Could not copy XML streams due to:Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1)
  • com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0xfc at [Source: [B@66f3256e; line: 1, column: 80]
  • Stack trace

    • java.lang.RuntimeException: Could not copy XML streams due to:Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1) at org.artifactory.p2.transformer.XmlStreamTransformer.writeAll(XmlStreamTransformer.java:72) at org.artifactory.p2.P2Interceptor.transformAndSave(P2Interceptor.java:210) at org.artifactory.p2.P2Interceptor.interceptGetInfo(P2Interceptor.java:179) at org.artifactory.repo.virtual.VirtualRepo.interceptGetInfo(VirtualRepo.java:459) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfoFromSearchableRepositories(VirtualRepoDownloadStrategy.java:182) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:106) at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:595) at org.artifactory.p2.generator.CompositeP2Repository.findReposContainingResource(CompositeP2Repository.java:80) at org.artifactory.p2.P2Interceptor.getRootCompositeInfo(P2Interceptor.java:289) at org.artifactory.p2.P2Interceptor.interceptGetInfo(P2Interceptor.java:162) at org.artifactory.repo.virtual.VirtualRepo.interceptGetInfo(VirtualRepo.java:459) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfoFromSearchableRepositories(VirtualRepoDownloadStrategy.java:182) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:106) at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:595) at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:49) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy58.getInfo(Unknown Source) at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:510) at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy58.process(Unknown Source) at org.artifactory.webapp.servlet.RepoFilter.doDownload(RepoFilter.java:202) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:130) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:87) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:276) at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:252) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:181) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:148) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:55) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:68) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:424) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:246) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:337) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1005) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:560) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:222) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:417) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:474) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909) at java.lang.Thread.run(Thread.java:662) Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1) at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:625) at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:994) at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:754) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1980) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1117) at org.artifactory.p2.transformer.XmlStreamTransformer.writeAll(XmlStreamTransformer.java:67) at org.artifactory.p2.P2Interceptor.transformAndSave(P2Interceptor.java:210) at org.artifactory.p2.P2Interceptor.interceptGetInfo(P2Interceptor.java:179) at org.artifactory.repo.virtual.VirtualRepo.interceptGetInfo(VirtualRepo.java:459) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfoFromSearchableRepositories(VirtualRepoDownloadStrategy.java:182) at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:106) at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:595) at org.artifactory.p2.generator.CompositeP2Repository.findReposContainingResource(CompositeP2Repository.java:80) at org.artifactory.p2.P2Interceptor.getRootCompositeInfo(P2Interceptor.java:288) at org.artifactory.p2.P2Interceptor.interceptGetInfo(P2Interceptor.java:162) at org.artifactory.repo.virtual.VirtualRepo.interceptGetInfo(VirtualRepo.java:459)

    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, 11 months ago
    Unknown user
    Once, 1 year ago