主题 : jecms6 得源码搜索有问题, |
级别: 贡士
![]() |
1# 发表于:2016-10-20 10:27:21 IP:119.17.*.*
|
||||
---|---|---|---|---|---|
级别: 贡士
![]() |
3# 发表于:2016-10-20 11:34:23 IP:119.17.*.*
官网给的编译后的搜索没有问题,但是源码搜出的结果显示空指针异常,用的是同一个库
|
||
---|---|---|---|
级别: 贡士
![]() |
5# 发表于:2016-10-20 11:35:16 IP:119.17.*.*
FreeMarker template error: For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), but this evaluated to a namespace (wrapper: f.c.Environment$Namespace): ==> s [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 40, column 14] The failing instruction (FTL stack trace): ---------- ==> ${s} [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 40, column 12] @cms_lucene_page q=q channelId=channe... [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 35, column 13] ---------- Java stack trace (for programmers): ---------- freemarker.core.NonStringException: [... Exception message was already printed; see it above ...] at
|
||
---|---|---|---|
级别: 贡士
![]() |
7# 发表于:2016-10-20 11:52:36 IP:119.17.*.*
FreeMarker template error: The following has evaluated to null or missing: ==> vote [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 75, column 34] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL stack trace): ---------- ==> ${vote.title?html} [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 75, column 32] #else [in template "WEB-INF/t/cms/www/default/special/search_result.html" at line 73, column 9] ---------- Java stack trace (for programmers): ---------- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at
|
||
---|---|---|---|
级别: 贡士
![]() |
9# 发表于:2016-10-20 11:56:59 IP:119.17.*.*
没有
|
||
---|---|---|---|
级别: 版主
![]() |
10# 发表于:2016-10-20 12:26:42 IP:115.233.*.*
${vote.title?html}
搜索结果模板下默认根本没这个标签,这是获取投票的 |
||
---|---|---|---|