<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XmlInboundAdapter: Could not decode the incoming buffer in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/xmlinboundadapter-could-not-decode-the-incoming/m-p/1090731#M3624</link>
    <description>&lt;P&gt;It seems that the&amp;nbsp;&lt;SPAN&gt;XmlInboundAdapter requires the charset definition in a Content-Type header, otherwise it will not intercept the data stream and will fail with an error "Could not decode the incoming buffer. Expected UTF-8 encoding. Make sure your input is in UTF-8 encoding.".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Examples of a Content-Type headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- application/xml (fail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- application/xml; charset=utf-8 (ok)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- text/xml (fail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- text/xml; charset=utf-8 (ok)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As the charset definition is not mandatory in the HTTP spec, the XmlInboundAdapter should accept the incoming data as utf-8 encoded also if the charset definition is missing in a header.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 08:11:45 GMT</pubDate>
    <dc:creator>MatejVrtich</dc:creator>
    <dc:date>2021-08-20T08:11:45Z</dc:date>
    <item>
      <title>XmlInboundAdapter: Could not decode the incoming buffer</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/xmlinboundadapter-could-not-decode-the-incoming/m-p/1090289#M3622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a default connector: Receive XML on a REST endpoint.&lt;/P&gt;&lt;P&gt;External system is sending XML data into my connector which are encoded in UTF-8 and posted with Content-Type: application/xml header.&lt;/P&gt;&lt;P&gt;However no events are processed down the stream and this is logged by the GeoEvent Server:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Could not decode the incoming buffer. Expected UTF-8 encoding. Make sure your input is in UTF-8 encoding.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Input length = 1 java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(Unknown Source) ~[?:?] at java.nio.charset.CharsetDecoder.decode(Unknown Source)…&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A previous version of the external system was sending XML data with Content-Type:text/xml;charset=utf-8 header and the processing was fine.&lt;/P&gt;&lt;P&gt;Any ideas how to overcome this issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 09:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/xmlinboundadapter-could-not-decode-the-incoming/m-p/1090289#M3622</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2021-08-19T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: XmlInboundAdapter: Could not decode the incoming buffer</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/xmlinboundadapter-could-not-decode-the-incoming/m-p/1090731#M3624</link>
      <description>&lt;P&gt;It seems that the&amp;nbsp;&lt;SPAN&gt;XmlInboundAdapter requires the charset definition in a Content-Type header, otherwise it will not intercept the data stream and will fail with an error "Could not decode the incoming buffer. Expected UTF-8 encoding. Make sure your input is in UTF-8 encoding.".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Examples of a Content-Type headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- application/xml (fail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- application/xml; charset=utf-8 (ok)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- text/xml (fail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- text/xml; charset=utf-8 (ok)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As the charset definition is not mandatory in the HTTP spec, the XmlInboundAdapter should accept the incoming data as utf-8 encoded also if the charset definition is missing in a header.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 08:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/xmlinboundadapter-could-not-decode-the-incoming/m-p/1090731#M3624</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2021-08-20T08:11:45Z</dc:date>
    </item>
  </channel>
</rss>

