[
https://issues.apache.org/jira/browse/FINERACT-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hitesh Prajapati updated FINERACT-1895:
---------------------------------------
Component/s: System
> Fineract doesn't start with spring profile activeMqEnabled
> ----------------------------------------------------------
>
> Key: FINERACT-1895
> URL: https://issues.apache.org/jira/browse/FINERACT-1895
> Project: Apache Fineract
> Issue Type: Bug
> Components: System
> Reporter: Hitesh Prajapati
> Priority: Minor
>
> When I run fineract with activeMqEnabled profile, it doesn't start and failed
> with below excpetion
>
> java -Dspring.profiles.active=activeMqEnabled -jar
> fineract-provider/build/libs/fineract-provider-0.0.0-6c86e15e.jar
>
>
> {code:java}
> Error starting ApplicationContext. To display the conditions report re-run
> your application with 'debug' enabled.
> 2023-02-19 19:22:24.963 -ERROR 6856 --- [ main]
> o.s.boot.SpringApplication : Application run failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'messageListenerContainer' defined in class path resource
> [org/apache/fineract/notification/config/MessagingConfiguration.class]: Bean
> instantiation via factory method failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to instantiate
> [org.springframework.jms.listener.DefaultMessageListenerContainer]: Factory
> method 'messageListenerContainer' threw exception; nested exception is
> java.lang.IllegalArgumentException: Message listener needs to be of type
> [javax.jms.MessageListener] or
> [org.springframework.jms.listener.SessionAwareMessageListener]
> at
> org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
> at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
> at
> org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
> at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
> at
> org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
> at
> org.apache.fineract.ServerApplication.main(ServerApplication.java:57)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at
> org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
> at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
> at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
> at
> org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [org.springframework.jms.listener.DefaultMessageListenerContainer]: Factory
> method 'messageListenerContainer' threw exception; nested exception is
> java.lang.IllegalArgumentException: Message listener needs to be of type
> [javax.jms.MessageListener] or
> [org.springframework.jms.listener.SessionAwareMessageListener]
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
> at
> org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
> ... 26 common frames omitted
> Caused by: java.lang.IllegalArgumentException: Message listener needs to be
> of type [javax.jms.MessageListener] or
> [org.springframework.jms.listener.SessionAwareMessageListener]
> at
> org.springframework.jms.listener.AbstractMessageListenerContainer.checkMessageListener(AbstractMessageListenerContainer.java:318)
> at
> org.springframework.jms.listener.AbstractMessageListenerContainer.setMessageListener(AbstractMessageListenerContainer.java:287)
> at
> org.apache.fineract.notification.config.MessagingConfiguration.messageListenerContainer(MessagingConfiguration.java:86)
> at
> org.apache.fineract.notification.config.MessagingConfiguration$$EnhancerBySpringCGLIB$$c586ac13.CGLIB$messageListenerContainer$3(<generated>)
> at
> org.apache.fineract.notification.config.MessagingConfiguration$$EnhancerBySpringCGLIB$$c586ac13$$FastClassBySpringCGLIB$$3565dd74.invoke(<generated>)
> at
> org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
> at
> org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
> at
> org.apache.fineract.notification.config.MessagingConfiguration$$EnhancerBySpringCGLIB$$c586ac13.messageListenerContainer(<generated>)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
> ... 27 common frames omitted
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)