You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2019/04/12 07:22:00 UTC
[jira] [Closed] (OFBIZ-5028) Add converter for StringWrapper
[ https://issues.apache.org/jira/browse/OFBIZ-5028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Malin closed OFBIZ-5028.
--------------------------------
Resolution: Fixed
Fix Version/s: Upcoming Branch
I detected the same case with StringBuffer, I commited added converter (StringWrapper and StringBuffer) on trunk at revision 1857371.
I didn't change the log because by defaut the system generate an exception
{code:java}
Converters.java:
if (noConversions.contains(key)) {
throw new ClassNotFoundException("No converter found for " + key);
}{code}
> Add converter for StringWrapper
> -------------------------------
>
> Key: OFBIZ-5028
> URL: https://issues.apache.org/jira/browse/OFBIZ-5028
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Christoph Neuroth
> Assignee: Nicolas Malin
> Priority: Major
> Fix For: Upcoming Branch
>
> Attachments: StringWrapperConverter.patch
>
>
> Currently, ofbiz logs a WARNING every time it tries to output StringWrapper objects. Attaching a patch which will prevent this by adding a converter.
> Example log message:
> {code}
> *** No converter found, converting from org.ofbiz.base.util.StringUtil$StringWrapper to java.lang.String. Please report this message to the developer community so a suitable converter can be created. ***
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)