freemarker error in search results stk template 
------------------------------------------------

                 Key: MGNLSTK-554
                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-554
             Project: Magnolia Standard Templating Kit
          Issue Type: Bug
          Components: templates
         Environment: Has occurred in Windows development environment and 
Redhat production instances using magnolia 4.0, 4.1, 4.2.2
            Reporter: Matthew Arriaga
            Assignee: Philipp Bärfuss


    * I think there is something in my content that searchResult.ftl doesn't 
like. 
    * I setup a fresh installation of 4.2.2 and imported my content and was 
able to reproduce the error after activating the website content to the new 
install.  
    * If I put quotes around the search term the error always goes away.
    * I don't always get the error, only on some search terms, although the 
terms that cause the error, reliably do so.
    * The error is confusing because I can't find a pattern that indicates what 
the exact problem with my content is(if that is the cause).

    * For example... If I search for the word "issues" I will get 6 results.
    * If I drop the quotes and search for issues I get the error.
    * If I search for each of the 6 search result's page titles without quotes, 
the search results correctly display for each term.
    * Some search terms will correctly return more than 6 results without using 
quotes.
    * I am able to print out the count before the exception is thrown using 
getCount, so I know the results are there.
    * I tried plugging in some new numbers for the -Xss value in java_opts, 
hoping to address the stackoverflow but it didn't work.
    * I'm still learning freemarker and I am stuck!
 
This is the error I am getting...

get(result) failed on instance of 
info.magnolia.module.templatingkit.search.SearchResultModel
The problematic instruction:
----------
==> assignment: result=model.result! [on line 12, column 1 in 
templating-kit/paragraphs/features/searchResult.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: get(result) failed on instance 
ofinfo.magnolia.module.templatingkit.search.SearchResultModel
at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)
...
further down the stack trace I see pages of this...
Caused by: java.lang.StackOverflowError
at java.util.regex.Pattern$Curly.match(Pattern.java:3736)
at java.util.regex.Pattern$Curly.match1(Pattern.java:3797)
at java.util.regex.Pattern$Curly.match(Pattern.java:3746)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
at java.util.regex.Pattern$Curly.match0(Pattern.java:3789)
at java.util.regex.Pattern$Curly.match(Pattern.java:3744)
at java.util.regex.Pattern$Curly.match1(Pattern.java:3797)
at java.util.regex.Pattern$Curly.match(Pattern.java:3746)
...




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to