Hi list,
I was able to work around the problem converting datetime to a string
format...something like this:
<StartDate>${startTime?datetime?string("yyyy-MM-dd
hh:mm:ss.SSS")}</StartDate>
<EndDate>${endTime?datetime?string("yyyy-MM-dd hh:mm:ss.SSS")}</EndDate>
Regards,
2011/10/11 Fernando Ribeiro <[email protected]>
> Hi list,
>
> Currently we are considering using geoserver monitor extension (to files),
> for developing purposes. The default content.ftl file, provided in geoserver
> documentation, seems to have an issue on datetime format:
>
> <StartTime>${startTime?datetime?iso_utc_ms}</StartTime>
> <EndTime>${endTime?datetime?iso_utc_ms}</EndTime>
>
> Despite the "iso_utc_ms" follows the freemarker standard, monitor extension
> seems not to be able to parse this information correctly. Here's the log
> snippet:
>
> 2011-10-11 18:41:23,200 RequestDumper WARN [geoserver.monitor] - Request
> Dumper exiting due to :Error on line 16, column 36, in template content.ftl
> Found iso_utc_ms, expecting one of: chunk, is_date, last, root,
> j_string, round, contains, is_hash, long, float, ends_with,
> namespace, matches, time, values, seq_last_index_of, uncap_first,
> byte, substring, is_transform, web_safe, groups, seq_contains,
> is_macro, index_of, word_list, int, is_method, eval, parent, xml,
> number, capitalize, if_exists, rtf, node_type, double, is_directive,
> url, size, default, floor, ceiling, is_boolean, split, node_name,
> is_enumerable, seq_index_of, is_sequence, sort, is_node, sort_by,
> left_pad, cap_first, interpret, children, node_namespace,
> chop_linebreak, date, short, last_index_of, is_collection, ancestors,
> length, trim, datetime, is_string, reverse, c, keys, upper_case,
> js_string, has_content, right_pad, replace, is_hash_ex, new,
> is_number, lower_case, is_indexable, string, exists, html, first,
> starts_with in content.ftl
> freemarker.core.ParseException: Error on line 16, column 36, in template
> content.ftl
> Found iso_utc_ms, expecting one of: chunk, is_date, last, root,
> j_string, round, contains, is_hash, long, float, ends_with,
> namespace, matches, time, values, seq_last_index_of, uncap_first,
> byte, substring, is_transform, web_safe, groups, seq_contains,
> is_macro, index_of, word_list, int, is_method, eval, parent, xml,
> number, capitalize, if_exists, rtf, node_type, double, is_directive,
> url, size, default, floor, ceiling, is_boolean, split, node_name,
> is_enumerable, seq_index_of, is_sequence, sort, is_node, sort_by,
> left_pad, cap_first, interpret, children, node_namespace,
> chop_linebreak, date, short, last_index_of, is_collection, ancestors,
> length, trim, datetime, is_string, reverse, c, keys, upper_case,
> js_string, has_content, right_pad, replace, is_hash_ex, new,
> is_number, lower_case, is_indexable, string, exists, html, first,
> starts_with in content.ftl
> at freemarker.core.BuiltIn.newBuiltIn(BuiltIn.java:199)
> at freemarker.core.FMParser.BuiltIn(FMParser.java:790)
> at freemarker.core.FMParser.AddSubExpression(FMParser.java:726)
> at freemarker.core.FMParser.PrimaryExpression(FMParser.java:273)
> at freemarker.core.FMParser.UnaryExpression(FMParser.java:319)
> at freemarker.core.FMParser.MultiplicativeExpression(FMParser.java:435)
> at freemarker.core.FMParser.AdditiveExpression(FMParser.java:385)
> at freemarker.core.FMParser.RangeExpression(FMParser.java:556)
> at freemarker.core.FMParser.RelationalExpression(FMParser.java:511)
> at freemarker.core.FMParser.EqualityExpression(FMParser.java:476)
> at freemarker.core.FMParser.AndExpression(FMParser.java:585)
> at freemarker.core.FMParser.OrExpression(FMParser.java:608)
> at freemarker.core.FMParser.Expression(FMParser.java:221)
> at freemarker.core.FMParser.StringOutput(FMParser.java:1061)
> at freemarker.core.FMParser.Content(FMParser.java:2575)
> at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
> at freemarker.core.FMParser.Escape(FMParser.java:2302)
> at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2445)
> at freemarker.core.FMParser.Content(FMParser.java:2618)
> at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
> at freemarker.core.FMParser.Root(FMParser.java:2958)
> at freemarker.template.Template.<init>(Template.java:149)
> at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:448)
> at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:361)
> at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
> at freemarker.template.Configuration.getTemplate(Configuration.java:487)
> at freemarker.template.Configuration.getTemplate(Configuration.java:452)
> at
> org.geoserver.monitor.AuditLogger$RequestDumper.run(AuditLogger.java:268)
> 2011-10-11 18:41:23,200 RequestDumper INFO [geoserver.monitor] - Request
> Dumper stopped
>
> Is this a know issue or am I missing something here?
>
> Thank you!
>
> P.S. - GeoServer 2.1.1 in use.
>
> --
> Fernando Ribeiro
>
>
--
Fernando Ribeiro
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users