org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#0': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for property 'interfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [org.apache.servicemix.nmr.api.NMR]

Coderanch | Ashis Kumar Sahu | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    You need to deploy aspectJ (aspectjweaver.jar) together with your application. Add it to your pom.xml
  2. 0

    Error: IllegalArgumentException: Original must not be null - Spring Forum

    spring.io | 10 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parcelService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.util.Properties] for property 'paymentProperties'; nested exception is java.lang.IllegalArgumentException: Original must not be null
  3. 0

    How to Access Alfresco Repository through JCR API

    Stack Overflow | 4 years ago | rDX
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyValueCache' defined in class path resource [alfresco/cache-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'boolean' for property 'disableSharedCache'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${system.cache.disableImmutableSharedCaches}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error while Trying to keep a list of message properties file in spring

    Stack Overflow | 3 years ago | Manesh
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in class path resource [spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.lang.String' for property 'basename'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.util.ArrayList] to required type [java.lang.String] for property 'basename': no matching editors or conversion strategy found
  6. 0

    Getting : java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]

    Stack Overflow | 11 months ago | user1976641
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gcdSqlMapClient' defined in ServletContext resource [/WEB-INF/config/common-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
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. java.lang.ClassNotFoundException

    org.apache.servicemix.nmr.api.NMR not found by [190]

    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation()
  2. Apache Felix Framework
    BundleWiringImpl$BundleClassLoader.loadClass
    1. org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)[org.apache.felix.framework-4.0.3.jar:]
    2. org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)[org.apache.felix.framework-4.0.3.jar:]
    3. org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)[org.apache.felix.framework-4.0.3.jar:]
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_51]
    1 frame
  4. Apache Felix Framework
    BundleImpl.loadClass
    1. org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723)[org.apache.felix.framework-4.0.3.jar:]
    2. org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:926)[org.apache.felix.framework-4.0.3.jar:]
    2 frames
  5. Spring OSGi Core
    BundleDelegatingClassLoader.loadClass
    1. org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)[114rg.springframework.osgi.core:1.2.1]
    2. org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)[114rg.springframework.osgi.core:1.2.1]
    2 frames
  6. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_51]
    1 frame
  7. Spring Core
    ClassUtils.resolveClassName
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:260)[69rg.springframework.core:3.2.4.RELEASE]
    2. org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:293)[69rg.springframework.core:3.2.4.RELEASE]
    2 frames
  8. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:68)[71rg.springframework.beans:3.2.4.RELEASE]
    2. org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:452)[71rg.springframework.beans:3.2.4.RELEASE]
    3. org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:424)[71rg.springframework.beans:3.2.4.RELEASE]
    4. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)[71rg.springframework.beans:3.2.4.RELEASE]
    5. org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)[71rg.springframework.beans:3.2.4.RELEASE]
    6. org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)[71rg.springframework.beans:3.2.4.RELEASE]
    7. org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)[71rg.springframework.beans:3.2.4.RELEASE]
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1433)[71rg.springframework.beans:3.2.4.RELEASE]
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1392)[71rg.springframework.beans:3.2.4.RELEASE]
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)[71rg.springframework.beans:3.2.4.RELEASE]
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[71rg.springframework.beans:3.2.4.RELEASE]
    12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[71rg.springframework.beans:3.2.4.RELEASE]
    13. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[71rg.springframework.beans:3.2.4.RELEASE]
    14. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[71rg.springframework.beans:3.2.4.RELEASE]
    15. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[71rg.springframework.beans:3.2.4.RELEASE]
    16. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[71rg.springframework.beans:3.2.4.RELEASE]
    16 frames
  9. org.springframework.osgi
    DependencyWaiterApplicationContextExecutor.refresh
    1. org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63)[115rg.springframework.osgi.extender:1.2.1]
    2. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272)[115rg.springframework.osgi.extender:1.2.1]
    3. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)[115rg.springframework.osgi.extender:1.2.1]
    4. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)[115rg.springframework.osgi.extender:1.2.1]
    5. org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)[115rg.springframework.osgi.extender:1.2.1]
    6. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)[115rg.springframework.osgi.extender:1.2.1]
    7. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239)[115rg.springframework.osgi.extender:1.2.1]
    8. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[115rg.springframework.osgi.extender:1.2.1]
    8 frames
  10. Spring OSGi Core
    AbstractDelegatedExecutionApplicationContext.refresh
    1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[114rg.springframework.osgi.core:1.2.1]
    1 frame
  11. org.springframework.osgi
    ContextLoaderListener$2.run
    1. org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[115rg.springframework.osgi.extender:1.2.1]
    1 frame
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
    1 frame