You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Martin Kreidenweis (Updated) (JIRA)" <ji...@apache.org> on 2011/09/28 14:55:45 UTC

[jira] [Updated] (OFBIZ-4451) warning in log when using @renderSubContentCache freemarker macro

     [ https://issues.apache.org/jira/browse/OFBIZ-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kreidenweis updated OFBIZ-4451:
--------------------------------------

    Attachment: OFBIZ-4451.patch

Patch: 
GenericValue.get() will actually not throw an exception (any more?) but instead log a warning if the field doesn't exist, so now we first check if the field we are trying to access exists. 
Checking one of the fields through the ModelEntity should be enough, as all three of them come from the same entity.
                
> warning in log when using @renderSubContentCache freemarker macro
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-4451
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4451
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Martin Kreidenweis
>            Priority: Minor
>         Attachments: OFBIZ-4451.patch
>
>
> When using the @renderSubContentCache freemarker macro, warnings like this appear in the log:
> {code}
> [      GenericEntity.java:314:WARN ] The field name (or key) [caContentAssocTypeId] is not valid for entity [ContentDataResourceView], printing IllegalArgumentException instead of throwing it because Map interface specification does not allow throwing that exception.
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira