org.springframework.beans.ConversionNotSupportedException

Failed to convert property value of type 'java.lang.String' to required type 'java.security.PrivateKey' for property 'privateKey'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.security.PrivateKey] for property 'privateKey': no matching editors or conversion strategy

Solutions on the web143

  • via Google Groups by Dan McLaughlin, 6 months ago
    Failed to convert property value of type 'java.lang.String' to required type 'java.security.PrivateKey' for property 'privateKey'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.security.PrivateKey] for property 'privateKey': no matching editors or conversion strategy
  • Failed to convert property value of type 'groovy.util.ConfigObject' to required type 'java.lang.String' for property 'privateKey'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [groovy.util.ConfigObject] to required type [java.lang.String] for property 'privateKey': no matching editors or conversion strategy found
  • Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.security.core.session.SessionRegistry' for property 'sessionRegistry'; nested exception is java.lang.IllegalStateException: Cannot convert value of
  • Stack trace

    • org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'java.security.PrivateKey' for property 'privateKey'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.security.PrivateKey] for property 'privateKey': no matching editors or conversion strategy at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)[spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140)[spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:84)[spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE] at net.shibboleth.metadata.cli.SimpleCommandLine.main(SimpleCommandLine.java:68)[aggregator-cli-0.5-SNAPSHOT.jar:na] Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'java.security.PrivateKey' for property 'privateKey'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.security.PrivateKey] for property 'privateKey': no matching editors or conversion strategy at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:462)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:499)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:493)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1371)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] Caused by: java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.security.PrivateKey] for property 'privateKey': no matching at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447)[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 4 days ago
    5 times, 1 week ago
    2 times, 4 weeks ago
    5 times, 1 month ago
    12 times, 3 months ago
    27 more bugmates