You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Daniel Dekany (Jira)" <ji...@apache.org> on 2019/08/26 22:56:00 UTC

[jira] [Commented] (FREEMARKER-119) TemplateException throws NPE after deserialization

    [ https://issues.apache.org/jira/browse/FREEMARKER-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916194#comment-16916194 ] 

Daniel Dekany commented on FREEMARKER-119:
------------------------------------------

{{TemplateException.readObject(ObjectInputStream)}} initializes the {{lock}} field during standard deserialization. There's even a test case for that. I'm not yet sure what Hessian and Burlap does, but will check that.

> TemplateException throws NPE after deserialization
> --------------------------------------------------
>
>                 Key: FREEMARKER-119
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-119
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.27-incubating, 2.3.29
>            Reporter: Alex Poruchikov
>            Priority: Major
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)