[ 
http://jira.magnolia-cms.com/browse/MGNLSTK-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Espen Jervidalo updated MGNLSTK-1045:
-------------------------------------

    Description: 
Related to changes subnode structure "jcr:content" - no longer "document"?

Exception: 
The problematic instruction:
----------
==> ${(document.fileSize / 1024)?string("0")} [on line 42, column 102 in 
templating-kit/components/teasers/downloadFile.ftl]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: get(fileSize) failed on instance of 
info.magnolia.module.dms.beans.Document
        at freemarker.ext.beans.BeanModel.get(BeanModel.java:224)
        at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
...
Caused by: java.lang.NumberFormatException: For input string: ""
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Long.parseLong(Long.java:431)
        at java.lang.Long.valueOf(Long.java:525)
        at 
info.magnolia.module.dms.beans.Document.getFileSize(Document.java:181)
        ... 194 more


  was:
Related to changes subnode structure "jcr:content" - no longer "document"?



> FreeMarker templating error in Demo-Project/About/Articles/Standard-Article
> ---------------------------------------------------------------------------
>
>                 Key: MGNLSTK-1045
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-1045
>             Project: Magnolia Standard Templating Kit
>          Issue Type: Bug
>    Affects Versions: 2.5 Alpha1 s009
>            Reporter: Daniel Lipp
>            Assignee: Espen Jervidalo
>             Fix For: 2.5 Alpha1 s010
>
>
> Related to changes subnode structure "jcr:content" - no longer "document"?
> Exception: 
> The problematic instruction:
> ----------
> ==> ${(document.fileSize / 1024)?string("0")} [on line 42, column 102 in 
> templating-kit/components/teasers/downloadFile.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.template.TemplateModelException: get(fileSize) failed on instance 
> of info.magnolia.module.dms.beans.Document
>       at freemarker.ext.beans.BeanModel.get(BeanModel.java:224)
>       at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
> ...
> Caused by: java.lang.NumberFormatException: For input string: ""
>       at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>       at java.lang.Long.parseLong(Long.java:431)
>       at java.lang.Long.valueOf(Long.java:525)
>       at 
> info.magnolia.module.dms.beans.Document.getFileSize(Document.java:181)
>       ... 194 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to