java.io.IOException: Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence.

Atlassian JIRA | Partha Kamal [Atlassian] | 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

    When you have customfields with utf-8 characters, for example Dérivés, then in the xml file that is created: E.g. [http://localhost:8080/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?query=Donner+AND+GP+&summary=true&tempMax=1000] We see the following: {code:xml} </customfield> <customfield id="customfield_10083" key="com.atlassian.jira.plugin.system.customfieldtypes:select"> <customfieldname>P&#233;rim&#232;tre</customfieldname> <customfieldvalues> <customfieldvalue><![CDATA[Dérivés]]></customfieldvalue> </customfieldvalues> {code} The value is wrapped in CDATA and not encoded. This causes confluence jiraissues macro to throw {noformat} java.io.IOException: Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence. at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.getChannelElement(DefaultJiraIssuesManager.java:163) at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.retrieveXML(DefaultJiraIssuesManager.java:192) at com.atlassian.confluence.extra.jira.JiraIssuesServlet.getResultJson(JiraIssuesServlet.java:165) at com.atlassian.confluence.extra.jira.JiraIssuesServlet.doGet(JiraIssuesServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) {noformat} Also if you visit the url in IE, IE will throw an invalid xml error. If the characters are encoded as the other fields (description, summary etc), then the xml will render fine in IE and display in JiraIssues. The workaround if possible is to specify the encoded values for the custom field. I.e. rather than set "Dérivés" set {noformat} D&#233;riv&#233;s {noformat} and this will show up in the UI as "Dérivés" but will be passed as the encoded value when the xml is built.

    Atlassian JIRA | 7 years ago | Partha Kamal [Atlassian]
    java.io.IOException: Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence.
  2. 0

    When you have customfields with utf-8 characters, for example Dérivés, then in the xml file that is created: E.g. [http://localhost:8080/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?query=Donner+AND+GP+&summary=true&tempMax=1000] We see the following: {code:xml} </customfield> <customfield id="customfield_10083" key="com.atlassian.jira.plugin.system.customfieldtypes:select"> <customfieldname>P&#233;rim&#232;tre</customfieldname> <customfieldvalues> <customfieldvalue><![CDATA[Dérivés]]></customfieldvalue> </customfieldvalues> {code} The value is wrapped in CDATA and not encoded. This causes confluence jiraissues macro to throw {noformat} java.io.IOException: Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence. at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.getChannelElement(DefaultJiraIssuesManager.java:163) at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.retrieveXML(DefaultJiraIssuesManager.java:192) at com.atlassian.confluence.extra.jira.JiraIssuesServlet.getResultJson(JiraIssuesServlet.java:165) at com.atlassian.confluence.extra.jira.JiraIssuesServlet.doGet(JiraIssuesServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) {noformat} Also if you visit the url in IE, IE will throw an invalid xml error. If the characters are encoded as the other fields (description, summary etc), then the xml will render fine in IE and display in JiraIssues. The workaround if possible is to specify the encoded values for the custom field. I.e. rather than set "Dérivés" set {noformat} D&#233;riv&#233;s {noformat} and this will show up in the UI as "Dérivés" but will be passed as the encoded value when the xml is built.

    Atlassian JIRA | 7 years ago | Partha Kamal [Atlassian]
    java.io.IOException: Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence.
  3. 0

    JSPException when applying theme

    mail-archive.com | 2 years ago
    java.io.IOException: JSPException while including path '/roller-ui/errors/denied.jsp'. ServletException while including page. at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:457) at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140) at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117) at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) at org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002derrorpage_jsp._jspx_meth_tiles_insertAttribute_3(org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002derrorpage_jsp:253) at org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002derrorpage_jsp._jspService(org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002derrorpage_jsp:109) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Neo4j] IOException is thrown when RestAPI.executeBatch() is called. - Grokbase

    grokbase.com | 1 year ago
    java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 30001/30000 ms at org.neo4j.server.rest.repr.OutputFormat$1.write(OutputFormat.java:174) ~[neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1437) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) [neo4j-desktop-2.0.0.jar:2.0.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) [neo4j-desktop-2.0.0.jar:2.0.0]
  6. 0

    Re: Tez job killed immediately

    tez-user | 4 years ago | Manu Zhang
    java.io.IOException: java.net.URISyntaxException: Expected authority > at index 7: http:// at > org.apache.hadoop.yarn.server.webproxy.WebAppProxyServlet.doGet(WebAppProxyServlet.java:337)

    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. java.io.IOException

      Error on line 2433: Invalid byte 2 of 3-byte UTF-8 sequence.

      at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.getChannelElement()
    2. com.atlassian.confluence
      JiraIssuesServlet.doGet
      1. com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.getChannelElement(DefaultJiraIssuesManager.java:163)
      2. com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.retrieveXML(DefaultJiraIssuesManager.java:192)
      3. com.atlassian.confluence.extra.jira.JiraIssuesServlet.getResultJson(JiraIssuesServlet.java:165)
      4. com.atlassian.confluence.extra.jira.JiraIssuesServlet.doGet(JiraIssuesServlet.java:98)
      4 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames
    4. com.atlassian.plugin
      DelegatingPluginServlet.service
      1. com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame