Announcement Announcement Module
Collapse
No announcement yet.
ConverterNotFoundException although I created a custom converter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ConverterNotFoundException although I created a custom converter

    I've got a ConverterNotFoundException in my Spring Roo-application:

    Throwable occurred: org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from 'com.Dokumentation' to 'java.lang.String'
    According to this guide I added a Converter to ApplicationConversionServiceFactoryBean.java but still get the error.

    The code of the aforementioned file is:

    Code:
    @RooConversionService
    public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean {
    
    @Override
    protected void installFormatters(FormatterRegistry registry) {
        super.installFormatters(registry);
        // Register application converters and formatters
    }
    
    public Converter<Dokumentation, String> getDokumentationConvert() {
        return new Converter<Dokumentation, String>() {
            public String convert(Dokumentation source) {
                return new StringBuilder().append(source.getWsdl()).toString();
            }
        };
    }
    }
Working...
X