[
https://issues.apache.org/jira/browse/OFBIZ-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516233
]
Jacques Le Roux commented on OFBIZ-1170:
----------------------------------------
I got a problem with this patch in eCommerce side :
2007-07-29 19:52:47,593 (http-0.0.0.0-28080-Processor4) [
ProductStoreWorker.java:484:INFO ] getSurvey for product null
2007-07-29 19:52:51,296 (http-0.0.0.0-28080-Processor4) [
Log4JLoggerFactory.java:96 :ERROR]
Method public java.io.Writer
org.ofbiz.product.store.ProductStoreSurveyWrapper.render() throws
org.ofbiz.content.survey.SurveyWrapper$SurveyWrapperException threw an
exception when invoked on [EMAIL PROTECTED]
The problematic instruction:
----------
==> ${randomSurvey.render().toString()} [on line 32, column 11 in
component://ecommerce/webapp/ecommerce/content/minipoll.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: Method public java.io.Writer
org.ofbiz.product.store.ProductStoreSurveyWrapper.render() throws
org.ofbiz.content.survey.SurveyWrapper$SurveyWrapperException threw an
exception when invoked on [EMAIL PROTECTED]
This problem dissapears when I revert et re-appears when I reapply the patch.
> FreeMarkerWorker class has a bug in its caching logic
> -----------------------------------------------------
>
> Key: OFBIZ-1170
> URL: https://issues.apache.org/jira/browse/OFBIZ-1170
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk, Release Branch 4.0
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: FreeMarkerWorker.patch, FreeMarkerWorker.patch,
> FreeMarkerWorker.patch, FreeMarkerWorker.patch, FreeMarkerWorker.patch,
> FreeMarkerWorker.patch, NewFreeMarkerWorker.patch, NewFreeMarkerWorker.patch
>
>
> The FreeMarkerWorker class creates an instance of the Template class,
> initializes it with the current user's locale, then stores it in a cache.
> Other users will see the template rendered in the first user's locale,
> regardless of their locale setting.
> This can be demonstrated on the Hot Wax demo site in the WorkEffort calendar.
> Some elements in the screen are rendered in another locale, regardless of
> your current locale setting.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.