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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via MuleSoft JIRA by Esteban Wasinger, 1 year ago
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.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.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.(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)
at org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory.(TopLevelParameterObjectFactory.java:46)
at org.mule.runtime.module.extension.internal.config.dsl.parameter.TopLevelParameterObjectFactory$$EnhancerByCGLIB$$add4e145_22.()
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
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)
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)
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)
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.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.mule.runtime.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:112)
at org.mule.runtime.core.registry.AbstractRegistry.initialise(AbstractRegistry.java:89)
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 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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.