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

Spring JIRA | Stefan Ocke | 7 years ago
  1. 0

    [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)

    Spring JIRA | 7 years ago | Stefan Ocke
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String]
  2. 0

    [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)

    Spring JIRA | 7 years ago | Stefan Ocke
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.util.Map] to [java.lang.String]
  3. 0

    Spring Hibernate ConverterNotFoundException ManyToMany

    Stack Overflow | 3 years ago | Zahanghir
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type @javax.persistence.ManyToMany @javax.persistence.JoinTable org.hibernate.collection.internal.PersistentSet&lt;@javax.persistence.ManyToMany @javax.persistence.JoinTable com.motodoc.egarage.domain.SecurityRole&gt; to type java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    evaluate cell in 2d array using spring expression language

    Stack Overflow | 3 years ago | CodeMed
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type javax.servlet.jsp.jstl.core.LoopTagSupport$1Status to type java.lang.Integer
  6. 0

    Chapter 5 - Show action

    manning.com | 11 months ago
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type @javax.persistence.ManyToMany org.hibernate.collection.internal.PersistentSet<@javax.persistence.ManyToMany org.rooinaction.coursemanager.model.Tag> to type java.lang.String

  1. shiva768 1 times, last 12 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Spring Core
    GenericConversionService.convert
    1. org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:136)
    1 frame
  3. Spring Expression Language (SpEL)
    SpelExpression.getValue
    1. org.springframework.expression.spel.support.StandardTypeConverter.convertValue(StandardTypeConverter.java:70)
    2. org.springframework.expression.common.ExpressionUtils.convertTypedValue(ExpressionUtils.java:68)
    3. org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98)
    3 frames
  4. Spring MVC
    EvalTag.doEndTag
    1. org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108)
    1 frame
  5. org.apache.jsp
    show_jspx$Helper.invoke
    1. org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005feval_005f0(display_tagx.java:498)
    2. org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fotherwise_005f0(display_tagx.java:471)
    3. org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:352)
    4. org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:200)
    5. org.apache.jsp.WEB_002dINF.views.questions.show_jspx._jspx_meth_field_005fdisplay_005f1(show_jspx.java:134)
    6. org.apache.jsp.WEB_002dINF.views.questions.show_jspx.access$1(show_jspx.java:117)
    7. org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke0(show_jspx.java:221)
    8. org.apache.jsp.WEB_002dINF.views.questions.show_jspx$Helper.invoke(show_jspx.java:244)
    8 frames