org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String]

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [Rev. 692] ROO-702 introduced <spring:eval> in display.tagx. Since in the generated show.jspx, Map-typed properties are not excluded (like in create.jspx and update.jspx), and no Converters are registered for Map->String in the controller there is the following exception: {code}org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String] at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:136) at org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70) at org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:68) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98) at org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005feval_005f0(display_tagx.java:498) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fotherwise_005f0(display_tagx.java:471) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:352) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:200) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx._jspx_meth_field_005fdisplay_005f1(show_jspx.java:134) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx.access$1(show_jspx.java:117) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke0(show_jspx.java:221) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke(show_jspx.java:244) {code} Proposed solution: Add converter for Map properties or suppress Map properties in show views (and maybe also in list view, if use of spring:eval is planned in table.tagx as well)
    via by Stefan Ocke,
  • [Rev. 692] ROO-702 introduced <spring:eval> in display.tagx. Since in the generated show.jspx, Map-typed properties are not excluded (like in create.jspx and update.jspx), and no Converters are registered for Map->String in the controller there is the following exception: {code}org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String] at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:136) at org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70) at org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:68) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98) at org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005feval_005f0(display_tagx.java:498) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fotherwise_005f0(display_tagx.java:471) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:352) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:200) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx._jspx_meth_field_005fdisplay_005f1(show_jspx.java:134) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx.access$1(show_jspx.java:117) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke0(show_jspx.java:221) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke(show_jspx.java:244) {code} Proposed solution: Add converter for Map properties or suppress Map properties in show views (and maybe also in list view, if use of spring:eval is planned in table.tagx as well)
    via by Stefan Ocke,
  • Chapter 5 - Show action
    via by Unknown author,
  • I have a class implementing a generic Entity<T extends Serializable>. The interface is defining a setId(T):void and a getId():T method. On the implementing class I define T as being a Long (giving setId(Long):void and getId():Long). I have an error whenever there's a binding to the id field. Stacktrace: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String' at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:180) at org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70) at org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:67) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98) at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:78) at org.springframework.webflow.mvc.view.BindingModel.getFormattedValue(BindingModel.java:228) at org.springframework.webflow.mvc.view.BindingModel.getFieldValue(BindingModel.java:142) at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:120) The problem happens on windows machines (both xp and win7) while all works well on linux (ubuntu 10.10). This problem is almost identical to the one of issue https://jira.springframework.org/browse/SWF-881, that is closed as resolve in Web Flow 2.1.0.M1. I've also added a comment to it.
    via by renato,
  • I have a class implementing a generic Entity<T extends Serializable>. The interface is defining a setId(T):void and a getId():T method. On the implementing class I define T as being a Long (giving setId(Long):void and getId():Long). I have an error whenever there's a binding to the id field. Stacktrace: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String' at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:180) at org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70) at org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:67) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98) at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:78) at org.springframework.webflow.mvc.view.BindingModel.getFormattedValue(BindingModel.java:228) at org.springframework.webflow.mvc.view.BindingModel.getFieldValue(BindingModel.java:142) at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:120) The problem happens on windows machines (both xp and win7) while all works well on linux (ubuntu 10.10). This problem is almost identical to the one of issue https://jira.springframework.org/browse/SWF-881, that is closed as resolve in Web Flow 2.1.0.M1. I've also added a comment to it.
    via by renato,
  • Entity report does not work
    via GitHub by Mark-de-Haan
    ,
    • org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String] at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:136) at org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70) at org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:68) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98) at org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005feval_005f0(display_tagx.java:498) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fotherwise_005f0(display_tagx.java:471) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:352) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:200) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx._jspx_meth_field_005fdisplay_005f1(show_jspx.java:134) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx.access$1(show_jspx.java:117) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke0(show_jspx.java:221) at org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke(show_jspx.java:244)

    Users with the same issue

    derprogger
    derprogger2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    6 more bugmates