|
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
|