org.springframework.beans.factory.BeanCreationException

Error creating bean with name '(inner bean)#31eef343': Cannot create inner bean '(inner bean)#56a73b6b' of type [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22] while setting bean property 'parameters' with key [<<weapon>>]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#56a73b6b': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Esteban Wasinger,
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#31eef343': Cannot create inner bean '(inner bean)#56a73b6b' of type [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22] while setting bean property 'parameters' with key [<<weapon>>]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#56a73b6b': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.mule.runtime.core.registry.AbstractRegistry.initialise(AbstractRegistry.java:93) at org.mule.runtime.core.registry.AbstractRegistryBroker$1.onTransition(AbstractRegistryBroker.java:49) at org.mule.runtime.core.registry.AbstractRegistryBroker$1.onTransition(AbstractRegistryBroker.java:45) at org.mule.runtime.core.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:128) at org.mule.runtime.core.lifecycle.RegistryBrokerLifecycleManager.fireInitialisePhase(RegistryBrokerLifecycleManager.java:54) at org.mule.runtime.core.registry.AbstractRegistryBroker.initialise(AbstractRegistryBroker.java:45) at org.mule.runtime.core.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:123) at org.mule.runtime.core.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:77) at org.mule.runtime.core.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:74) at org.mule.runtime.core.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:62) at org.mule.runtime.core.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:56) at org.mule.runtime.core.DefaultMuleContext.initialise(DefaultMuleContext.java:299) at org.mule.runtime.core.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:194) at org.mule.runtime.core.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:77) at org.mule.tck.junit4.AbstractMuleContextTestCase.createMuleContext(AbstractMuleContextTestCase.java:203) at org.mule.tck.junit4.AbstractMuleContextTestCase.setUpMuleContext(AbstractMuleContextTestCase.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processWeaponAsChildElement': Cannot create inner bean '(inner bean)#31eef343' of type [org.mule.runtime.module.extension.internal.config.dsl.operation.OperationMessageProcessorObjectFactory$$EnhancerByCGLIB$$99e38baf_42] while setting bean property 'messageProcessors' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#31eef343': Cannot create inner bean '(inner bean)#56a73b6b' of type [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22] while setting bean property 'parameters' with key [<<weapon>>]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#56a73b6b': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:728) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) at org.mule.runtime.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:112) at org.mule.runtime.core.registry.AbstractRegistry.initialise(AbstractRegistry.java:89) ... 27 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#31eef343': Cannot create inner bean '(inner bean)#56a73b6b' of type [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22] while setting bean property 'parameters' with key [<<weapon>>]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#56a73b6b': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:407) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) ... 43 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#56a73b6b': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1137) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) ... 51 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22]: Constructor threw exception; nested exception is org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) at org.mule.runtime.config.spring.util.LaxInstantiationStrategyWrapper.lambda$instantiate$84(LaxInstantiationStrategyWrapper.java:66) at org.mule.runtime.core.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:143) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:995) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:961) at org.mule.runtime.config.spring.util.LaxInstantiationStrategyWrapper.instantiate(LaxInstantiationStrategyWrapper.java:64) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) ... 56 more Caused by: org.mule.runtime.core.api.MuleRuntimeException: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:946) at org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory.<init>(TopLevelParameterObjectFactory.java:46) at org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22.<init>(<generated>) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 63 more Caused by: java.lang.IllegalArgumentException: Class interface org.mule.test.heisenberg.extension.model.Weapon cannot be instantiated. at org.mule.runtime.module.extension.internal.util.IntrospectionUtils.checkInstantiable(IntrospectionUtils.java:354) at org.mule.runtime.module.extension.internal.util.IntrospectionUtils.checkInstantiable(IntrospectionUtils.java:349) at org.mule.runtime.module.extension.internal.runtime.DefaultObjectBuilder.<init>(DefaultObjectBuilder.java:30) at org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory.lambda$new$51(TopLevelParameterObjectFactory.java:48) at org.mule.runtime.core.util.ClassUtils.lambda$withContextClassLoader$18(ClassUtils.java:942) at org.mule.runtime.core.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:143) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:995) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:961) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:941) ... 70 more

    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

    We couldn't find other users who have seen this exception.