$velutil.mergeTemplate($content_path) problem

38 views
Skip to first unread message

Nadeem Jawaid

unread,
Mar 22, 2012, 2:54:18 PM3/22/12
to do
hi,
 
I have a drop down year list , on the base of which i select the news items, for eg: 2012 , 2011 , 2010 etc. And i have contents for all these years in NEWS structure.
 
I get the results for 2012 and 2011 , but for 2010 , i get the following error on browser.
 
$velutil.mergeTemplate($content_path)
 
The log gives the following info.
 
ERROR viewtools.VelocityWebUtil: mergeTemplate
[22/03/12 14:09:39:957 EDT] ERROR app.VelocityEngine: Parser Exception: live/3ee4ec0a-6fbc-488d-b148-80a6fd5c1949_1.contentMap
org.apache.velocity.runtime.parser.ParseException: Encountered ")" at line 103, column 82.
Was expecting one of:
"[" ...
"{" ...
<STRING_LITERAL> ...
"true" ...
"false" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<IDENTIFIER> ...
"{" ...
at org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3494)
at org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3369)
at org.apache.velocity.runtime.parser.Parser.Parameter(Parser.java:1277)
at org.apache.velocity.runtime.parser.Parser.Method(Parser.java:1328)
at org.apache.velocity.runtime.parser.Parser.Reference(Parser.java:1375)
at org.apache.velocity.runtime.parser.Parser.PrimaryExpression(Parser.java:2519)
at org.apache.velocity.runtime.parser.Parser.UnaryExpression(Parser.java:2494)
at org.apache.velocity.runtime.parser.Parser.MultiplicativeExpression(Parser.java:2343)
at org.apache.velocity.runtime.parser.Parser.AdditiveExpression(Parser.java:2267)
at org.apache.velocity.runtime.parser.Parser.RelationalExpression(Parser.java:2135)
at org.apache.velocity.runtime.parser.Parser.EqualityExpression(Parser.java:2059)
at org.apache.velocity.runtime.parser.Parser.ConditionalAndExpression(Parser.java:2019)
at org.apache.velocity.runtime.parser.Parser.ConditionalOrExpression(Parser.java:1979)
at org.apache.velocity.runtime.parser.Parser.Expression(Parser.java:1926)
at org.apache.velocity.runtime.parser.Parser.SetDirective(Parser.java:1858)
 
ANy idea, what is causing this?
 
Nadeem

Chris Falzone

unread,
Mar 27, 2012, 3:53:21 PM3/27/12
to dot...@googlegroups.com
It cannot parse the velocity codein your contentlet .. there is a parse error.  It got a ) on line 103 and was not expecting that.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Reply all
Reply to author
Forward
0 new messages