Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1387

ConverterNotFoundException: No converter found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Using a dynamic finder for a domain entity produces an exception iff the finder method was called prior to creating or listing any entities of this type.

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

      Steps to reproduce:
      1. use sample project petclinic
      2. setup persistence
      3. start application
      4. add an Owner entity
      5. restart application
      6. directly use finder Pet.findPetsByOwner (through petclinic/pets?find=ByOwner&form)
      7. exception occurs

      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(GenericConversionService.java:180)
      ...

      The exception does not occur if entities of the searched type were created or listed prior to using the finder.
      It just happens at application start.
      It seems that the @InitBinder annotated method in the _Roo_Controller is not called.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              kde Kamil Erhard
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: