Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7144

MarkupTemplateEngine throws MultipleCompilationErrorsException @ startup when dealing with file encoded in UTF-8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.3.7
    • None
    • Templating
    • None

    Description

      When my template file is encoded in UTF-8 format, my SoapUI MockService returnes fault:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
            <soapenv:Fault>
               <faultcode>Server</faultcode>
               <faultstring>Failed to dispatch using script; org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      GeneratedMarkupTemplate0: 1: unexpected char: 0xBB @ line 1, column 2.
         ?»?		OTA_AirLowFareSearchRS (Version: _version, PricedItinCount: _pricedItinCount, BrandedOneWayItinCount: 0, SimpleOneWayItinCount: 0, DepartedItinCount: 0, SoldOutItinCount: 0, xmlns: _xmlns, "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"){
          ^
      
      1 error</faultstring>
            </soapenv:Fault>
         </soapenv:Body>
      </soapenv:Envelope>
      

      Attachments

        1. 12345.jpg
          95 kB
          Ihar Shkilionak
        2. OTA_AirLowFareSearchRS.tpl
          1 kB
          Ihar Shkilionak

        Activity

          People

            melix Cédric Champeau
            borigor Ihar Shkilionak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: