org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from 'com.springsource.petclinic.domain.Owner' to 'java.lang.String'

Spring JIRA | Kamil Erhard | 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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. 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'

  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 'com.springsource.petclinic.domain.Owner' 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