Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-812

Invalid byte 2 of 2-byte UTF-8 sequence

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0.0
    • None
    • jbossws-native
    • None

      Hi,

      I consume a external web service and when I use jboss-ws4ee soap stack it works fine, but when a switch to jbossws soap stack I get the following exception: Invalid byte 2 of 2-byte UTF-8 sequence

      When I look att the data received from the web service I can find one sequence of characters that I guess causes this exception,

      <soap:body>
      ...
      <city>MALM&_#_x_D_6;</city>

      ( &_#_x_D_6; -> I've added the underscores, otherwise this forum transalated it to the correct character, Ö, so the underscores isn't present in the actual soap message...)

      This character (&_#_x_D_6 is the swedish character 'Ö' that the provider of the web service has encoded this way. Is this an invalid encoding? It passes thru the ws4ee soap stack but not the jbossws soapstack...

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: