Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-119

TemplateException throws NPE after deserialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.27-incubating, 2.3.29
    • None
    • engine
    • None

    Description

      freemarker.template.TemplateException cannot be deserealized properly, because of transient field "lock", used in getMessage() method. See line 441 in TemplateException.java.

      It throws NPE when getMessage() method is called on deserialized object.

      Problem appears, at least, with Hessian and Burlap serialization protocols from Caucho.com.

       

      Attachments

        1. TemplateExceptionDeserializerTest.java
          1.0 kB
          Alex Poruchikov
        2. TemplateException_test2.hessian
          3 kB
          Alex Poruchikov
        3. InvalidReferenceExceptionHessianDeserializer.java
          0.7 kB
          Alex Poruchikov

        Activity

          People

            Unassigned Unassigned
            alpor Alex Poruchikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: