Announcement Announcement Module
No announcement yet.
Conversion fails for generic typed class Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conversion fails for generic typed class

    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.

    org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from '' to 'java.lang.String'
    at nversionService.convert(GenericConversionService.j ava:180)
    at rdTypeConverter.convertValue(StandardTypeConverter .java:70)
    at org.springframework.expression.common.ExpressionUt ils.convertTypedValue(
    at org.springframework.expression.spel.standard.SpelE xpression.getValue(
    at org.springframework.binding.expression.spel.Spring ELExpression.getValue(
    at org.springframework.webflow.mvc.view.BindingModel. getFormattedValue(
    at org.springframework.webflow.mvc.view.BindingModel. getFieldValue(
    at .<init>(

    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, that is closed as resolve in Web Flow 2.1.0.M1. I've also added a comment to it.

    Any idea. Thx.

    Spring 3.0.4, Web Flow 2.2.0, Java6, Tomcat 6