用堅守點亮夜晚 致敬疫情防控中的“守夜人”
(/FreeMarker template error:
在如下代碼附近發(fā)生錯誤:
在模板:[template "030219065"]的[114]行[138]列, 代碼:${lines?size} 附近
錯誤原因:For "?size" left-hand operand: Expected an extended-hash or sequence, but this evaluated to a string (wrapper: cn.com.enorth.cms.freem
The failing instruction (FTL stack trace):
----------
==> 在模板:[template "030219065"]的[114]行[138]列, 代碼:${lines?size} 附近
----------
Java stack trace (for programmers):
----------
cn.com.enorth.cms.freemarker.core.UnexpectedTypeException: [... Exception message was already printed; see it above ...]
at cn.com.enorth.cms.freemarker.core.MiscellaneousBuiltins$sizeBI._eval(MiscellaneousBuiltins.java:52)
at cn.com.enorth.cms.freemarker.core.Expression.eval(Expression.java:111)
at cn.com.enorth.cms.freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
at cn.com.enorth.cms.freemarker.core.DollarVariable.accept(DollarVariable.java:77)
at cn.com.enorth.cms.freemarker.core.Environment.visit(Environment.java:270)
at cn.com.enorth.cms.freemarker.core.MixedContent.accept(MixedContent.java:94)
at cn.com.enorth.cms.freemarker.core.Environment.visit(Environment.java:270)
at cn.com.enorth.cms.freemarker.core.Environment.process(Environment.java:248)
at cn.com.enorth.cms.service.publisher.FileParser.parseContent(FileParser.java:225)
at cn.com.enorth.cms.service.publisher.FileParser.parseByPageConext(FileParser.java:114)
at cn.com.enorth.cms.service.publisher.FileParser.parseOnePage(FileParser.java:631)
at cn.com.enorth.cms.service.publisher.FileParser.parseFile(FileParser.java:327)
at cn.com.enorth.cms.service.publisher.FileParserHelper.parseFileByTlogRecreateSeqVo(FileParserHelper.java:59)
at cn.com.enorth.cms.service.data_pipeline.impl.recreate_file.ProcessorRecreateFile.doProcess(ProcessorRecreateFile.java:43)
at cn.com.enorth.cms.service.data_pipeline.DataPipeline.process(DataPipeline.java:191)
at cn.com.enorth.cms.service.data_pipeline.DataPipeDaemon.run(DataPipeDaemon.java:195)
at java.lang.Thread.run(Thread.java:722)
解析頁面時發(fā)生如下錯誤:class cn.com.enorth.cms.freemarker.core.UnexpectedTypeException:在如下代碼附近發(fā)生錯誤:
在模板:[template "030219065"]的[114]行[138]列, 代碼:${lines?size} 附近
錯誤原因:For "?size" left-hand operand: Expected an extended-hash or sequence, but this evaluated to a string (wrapper: cn.com.enorth.cms.freemarker.template.SimpleScalar):
==> lines [在模板:[template "030219065"]的[114]行[140]列]