解析页面时发生如下错误:class cn.com.enorth.cms.freemarker.core.UnexpectedTypeException:在如下代码附近发生错误: 在模板:[template "101364066"]的[105]行[19]列, 代码:#if lines?size lte 0 附近 错误原因: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 "101364066"]的[105]行[24]列] 放假通知!-河北频道-长城网
放假通知!
来源:  
2024-08-14 18:43:00

关键词
责任编辑:庞晓龙
推荐阅读
FreeMarker template error: 在如下代码附近发生错误: 在模板:[template "101364066"]的[105]行[19]列, 代码:#if lines?size lte 0 附近 错误原因:For "?size" left-hand operand: Expected an extended-hash or sequence, but this evaluated to a string (wrapper: cn.com.enorth.cm The failing instruction (FTL stack trace): ---------- ==> 在模板:[template "101364066"]的[105]行[19]列, 代码:#if lines?size lte 0 附近 ---------- 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.EvalUtil.compare(EvalUtil.java:147) at cn.com.enorth.cms.freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:103) at cn.com.enorth.cms.freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:85) 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:210) at cn.com.enorth.cms.service.publisher.FileParser.parseByPageConext(FileParser.java:109) at cn.com.enorth.cms.service.publisher.FileParser.parseOnePage(FileParser.java:581) at cn.com.enorth.cms.service.publisher.FileParser.parseFile(FileParser.java:309) at cn.com.enorth.cms.service.publisher.FileParserHelper.parseFileByContext(FileParserHelper.java:46) at cn.com.enorth.cms.service.publisher.FileParserHelper.parseFileByFileId(FileParserHelper.java:167) at cn.com.enorth.cms.service.publisher.FileParserHelper.parseFileByFileId(FileParserHelper.java:88) at cn.com.enorth.cms.service.data_pipeline_fast.impl.RecreateNewsProcessorFast.process(RecreateNewsProcessorFast.java:73) at cn.com.enorth.cms.service.data_pipeline_fast.impl.RecreateNewsProcessorFast.process(RecreateNewsProcessorFast.java:29) at cn.com.enorth.cms.service.data_pipeline_fast.DataPipeDaemonFast.run(DataPipeDaemonFast.java:57) at java.lang.Thread.run(Thread.java:748) 解析页面时发生如下错误:class cn.com.enorth.cms.freemarker.core.UnexpectedTypeException:在如下代码附近发生错误: 在模板:[template "101364066"]的[105]行[19]列, 代码:#if lines?size lte 0 附近 错误原因: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 "101364066"]的[105]行[24]列]