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

GStringTemplateEngine fails to work with >64K strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6, 1.6.1
    • 2.4.0-beta-4
    • Templating
    • JRE 1.6 Windows
      Groovy 1.5.7 and 1.6.1

    Description

      I am initialising the GStringTemplate with the contens of a large (>64K)
      file and getting the following error:
      java.lang.ClassFormatError: Unknown constant tag 121 in class file
      groovy/tmp/templates/GStringTemplateScript11$_getTemplate_closure1

      I am using the following Groovy script step with code:
      import groovy.text.*

      def binding = [wid: "123123123"]
      def engine = new GStringTemplateEngine()
      def template = engine.createTemplate(new
      File("test_message1.xml")).make(binding)
      println template.toString()

      The message is attached as well.

      Attachments

        1. test_message1.xml
          142 kB
          Michael Chayat

        Activity

          People

            melix Cédric Champeau
            mchayat Michael Chayat
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: