org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String'

Spring JIRA | renato | 6 years ago
  1. 0

    [SWF-881] Conversion fails for genric typed class - Spring JIRA

    spring.io | 11 months ago
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String'
  2. 0

    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.

    Spring JIRA | 6 years ago | renato
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String'
  3. 0

    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.

    Spring JIRA | 6 years ago | renato
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'java.io.Serializable' to 'java.lang.String'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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

  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.io.Serializable' 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:180)
    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:67)
    3. org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98)
    3 frames
  4. Spring Binding
    SpringELExpression.getValue
    1. org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:78)
    1 frame
  5. Spring Web Flow
    BindingModel.getFieldValue
    1. org.springframework.webflow.mvc.view.BindingModel.getFormattedValue(BindingModel.java:228)
    2. org.springframework.webflow.mvc.view.BindingModel.getFieldValue(BindingModel.java:142)
    2 frames
  6. Spring MVC
    BindStatus.<init>
    1. org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:120)
    1 frame