activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praneethg <praneeth.gand...@concur.com>
Subject Spring boot artemis connection factory issue
Date Fri, 09 Jun 2017 04:15:59 GMT
bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory]: Factory
method 'activeMQConnectionFactory' threw exception; nested exception is
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.artemis.utils.uri.BeanSupport
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:592)
        at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:754)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
        at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
        at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
        at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
        at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
        at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
        at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
        at com.concur.aes.Application.main(Application.java:12)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'producer': Unsatisfied dependency expressed
through field 'connectionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'activeMQConnectionFactory' defined in class path resource
[com/concur/aes/config/ProducerConfig.class]: Bean instantiation via factory
method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory]: Factory
method 'activeMQConnectionFactory' threw exception; nested exception is
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.artemis.utils.uri.BeanSupport
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:592)
        at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
        at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1131)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1059)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:589)
        ... 19 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'activeMQConnectionFactory' defined in class path
resource [com/concur/aes/config/ProducerConfig.class]: Bean instantiation
via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory]: Factory
method 'activeMQConnectionFactory' threw exception; nested exception is
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.artemis.utils.uri.BeanSupport
        at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
        at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1131)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1059)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:589)
        ... 32 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to
instantiate
[org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory]: Factory
method 'activeMQConnectionFactory' threw exception; nested exception is
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.artemis.utils.uri.BeanSupport
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
        at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
        ... 44 common frames omitted
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.artemis.utils.uri.BeanSupport
        at
org.apache.activemq.artemis.uri.schema.serverLocator.AbstractServerLocatorSchema.newConnectionOptions(AbstractServerLocatorSchema.java:29)
        at
org.apache.activemq.artemis.uri.schema.serverLocator.TCPServerLocatorSchema.internalNewObject(TCPServerLocatorSchema.java:41)
        at
org.apache.activemq.artemis.uri.schema.serverLocator.TCPServerLocatorSchema.internalNewObject(TCPServerLocatorSchema.java:33)
        at
org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:87)
        at
org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:30)
        at
org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:59)
        at
org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:413)
        at
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:179)
        at
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:172)
        at
com.concur.aes.config.ProducerConfig.activeMQConnectionFactory(ProducerConfig.java:72)
        at
com.concur.aes.config.ProducerConfig$$EnhancerBySpringCGLIB$$962abe4.CGLIB$activeMQConnectionFactory$2(<generated>)
        at
com.concur.aes.config.ProducerConfig$$EnhancerBySpringCGLIB$$962abe4$$FastClassBySpringCGLIB$$d1f0276a.invoke(<generated>)
        at
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
        at
com.concur.aes.config.ProducerConfig$$EnhancerBySpringCGLIB$$962abe4.activeMQConnectionFactory(<generated>)
        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:498)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
        ... 45 common frames omitted

:bootRun FAILED




--
View this message in context: http://activemq.2283324.n4.nabble.com/Spring-boot-artemis-connection-factory-issue-tp4727258.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message