com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xfc (at char #3468912, byte #3468393)

Atlassian JIRA | Przemek Bruski | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Axis2-user - Connection reset

    nabble.com | 1 year ago
    com.ctc.wstx.exc.WstxIOException: Connection reset
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    {code} 2012-05-11 15:22:11,469 [pool-1-thread-2] [INFO ] (o.a.r.HttpRepo :297) - eclipse-p2-mylyn: Downloaded 'http://download.eclipse.org/releases/indigo/compositeContent.jar' with return code: 200. 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) {code}

    JFrog JIRA | 5 years ago | qxo
    java.lang.RuntimeException: Could not copy XML streams due to:Invalid UTF-8 middle byte 0x65 (at char #10, byte #-1)
  4. 0

    I attempted export / re-import to switch DB type from HSQL to MySQL. Import failed. Logs reveal the cause is invalid characters improperly escaped in the export XML: {noformat} 2012-05-10 15:31:57,613 WARN [qtp582642819-12] [BambooStAXMappingHelperAbstractImpl] Exception during processing testCaseResultErrors.error #1069 com.ctc.wstx.exc.WstxIOException: Invalid character 0x7f, can only be included in xml 1.1 using character entities (at char #3078549, byte #3078764) 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.loadMore(StreamScanner.java:1033) at com.ctc.wstx.sr.BasicStreamReader.readCDataSecondary(BasicStreamReader.java:4310) at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4120) at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:675) at org.codehaus.staxmate.in.SMInputCursor.getElemStringValue(SMInputCursor.java:1331) at com.atlassian.bamboo.resultsummary.tests.TestCaseResultErrorMapper.importProperties(TestCaseResultErrorMapper.java:86) at com.atlassian.bamboo.resultsummary.tests.TestCaseResultErrorMapper.importProperties(TestCaseResultErrorMapper.java:21) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:167) at com.atlassian.bamboo.migration.BambooStAXListImportStrategy.importListItemXml(BambooStAXListImportStrategy.java:268) at com.atlassian.bamboo.migration.BambooStAXListImportStrategy.access$100(BambooStAXListImportStrategy.java:17) at com.atlassian.bamboo.migration.BambooStAXListImportStrategy$3.importListItems(BambooStAXListImportStrategy.java:103) at com.atlassian.bamboo.migration.BambooStAXListImportStrategy.importListXml(BambooStAXListImportStrategy.java:235) at com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.importListXml(BambooStAXMappingListHelperAbstractImpl.java:179) at com.atlassian.bamboo.resultsummary.tests.TestCaseResultErrorMapper.importData(TestCaseResultErrorMapper.java:143) at com.atlassian.bamboo.migration.XmlMigrator.importData(XmlMigrator.java:360) at com.atlassian.bamboo.migration.XmlMigrator.importFile(XmlMigrator.java:329) at com.atlassian.bamboo.migration.XmlMigrator.loadXmlData(XmlMigrator.java:285) at com.atlassian.bamboo.migration.XmlMigrator.importXml(XmlMigrator.java:180) at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629) at com.atlassian.bamboo.migration.XmlMigrator$$EnhancerByCGLIB$$204e6f8b.importXml(<generated>) at com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooImport(ImportExportManagerImpl.java:113) at com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooImport(ImportExportManagerImpl.java:91) at com.atlassian.bamboo.ww2.actions.setup.SetupImportDataAction.execute(SetupImportDataAction.java:53) ........ Caused by: java.io.CharConversionException: Invalid character 0x7f, can only be included in xml 1.1 using character entities (at char #3078549, byte #3078764) at com.ctc.wstx.io.BaseReader.reportInvalidXml11(BaseReader.java:222) at com.ctc.wstx.io.BambooUTF8Reader.read(BambooUTF8Reader.java:140) at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:87) at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:988) {noformat} The problem XML in question is where binary data was printed in JUnit test output, and that's in a /bamboo/testCaseResultErrors/error/content XML element. h5. Workaround # Use {{tail -c +#### fileName|head -c 1024}} to get the section of the file where the offending character is located at. ### being the byte number as reported in the error. Experiment with reducing a few bytes before the offending character to get the ID of the error. # After getting the ID, manually edit the contents of the error through the database to remove the offending characters: {code:SQL}UPDATE test_error SET error_content='Removed' WHERE error_id=<ID>; {code} Replace <ID> with the error ID you found from the text. # Take the export again and import it into the new instance.

    Atlassian JIRA | 5 years ago | Max Bowsher
    com.ctc.wstx.exc.WstxIOException: Invalid character 0x7f, can only be included in xml 1.1 using character entities (at char #3078549, byte #3078764)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.ctc.wstx.exc.WstxIOException

      Invalid UTF-8 start byte 0xfc (at char #3468912, byte #3468393)

      at com.ctc.wstx.sr.StreamScanner.constructFromIOE()
    2. Woodstox
      StreamScanner.constructFromIOE
      1. com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:599)
      1 frame