You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ragul rangarajan <ra...@gmail.com> on 2020/12/01 15:57:26 UTC

Re: Need spring upgrade in ActiveMQ

Hi all,

https://issues.apache.org/jira/browse/AMQ-8026
Interested to have an update on the above ticket. Does anyone have a
tentative release date for 5.17.0?

Sry to create a separate thread. Unable to continue on the below thread.
http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html

Regards
Ragul

On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <ra...@gmail.com>
wrote:

> Hi all,
>
> I am using apache ActiveMQ with the Spring framework.
>
> Where we now trying to upgrade spring to 5.2 latest since its older
> releases reach the end of life.
>
> While upgrading spring, we got stuck with below exception.
>
>
> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>
> On further debugging, able to see below change is made in spring since 5.2
> and it expects the same from ActiveMQ on runtime but which fails due to the
> spring 4.3.26 reference.
>
>
> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>
> *Replacing the old spring jar with new makes to bypass the issue. But
> don't know the impact of changing the dependency manually.*
>
> Can you please upgrade the spring?
>
> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>
>
> *Thanks and Regards,*
>
> *Ragul*
>

Re: Need spring upgrade in ActiveMQ

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,


1. ActiveMQ 5.15.14 will bring update Spring 4.3.x update addressing the CVE (still maintained)
2. I’m still working on ActiveMQ 5.17.0 preparation (upgrading build with JDK 11, removing leveldb, upgrading to Spring 5).
So reasonably, ActiveMQ 5.17.0 won’t be on vote before Jan 21.

Regards
JB

> Le 1 déc. 2020 à 16:57, ragul rangarajan <ra...@gmail.com> a écrit :
> 
> Hi all,
> 
> https://issues.apache.org/jira/browse/AMQ-8026
> Interested to have an update on the above ticket. Does anyone have a
> tentative release date for 5.17.0?
> 
> Sry to create a separate thread. Unable to continue on the below thread.
> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
> 
> Regards
> Ragul
> 
> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <ra...@gmail.com>
> wrote:
> 
>> Hi all,
>> 
>> I am using apache ActiveMQ with the Spring framework.
>> 
>> Where we now trying to upgrade spring to 5.2 latest since its older
>> releases reach the end of life.
>> 
>> While upgrading spring, we got stuck with below exception.
>> 
>> 
>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>> 
>> On further debugging, able to see below change is made in spring since 5.2
>> and it expects the same from ActiveMQ on runtime but which fails due to the
>> spring 4.3.26 reference.
>> 
>> 
>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>> 
>> *Replacing the old spring jar with new makes to bypass the issue. But
>> don't know the impact of changing the dependency manually.*
>> 
>> Can you please upgrade the spring?
>> 
>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>> 
>> 
>> *Thanks and Regards,*
>> 
>> *Ragul*
>> 


Re: Need spring upgrade in ActiveMQ

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
 I agree: my point is that Spring 4.3.29 fixes all open CVE up to know.

Now, I’m working on Spring 5.x upgrade.

So, just wait a bit and we will have it very soon (it’s almost done, just have to polish some changes ;)).

Regards
JB

> Le 2 déc. 2020 à 15:35, ragul rangarajan <ra...@gmail.com> a écrit :
> 
> Thanks for the update JB.
> 
> But my concern for the need for Spring 5 Upgrade is more on that* Spring
> 4.3.x release going to reach it EOF* than CVE fixes
> FYI: Spring Framework Versions · spring-projects/spring-framework Wiki ·
> GitHub
> <https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#supported-versions>
> 
> 
>   - 4.3.x is the last feature branch of the 4th generation, with active
>   maintenance until October 2020. *4.3.x will reach its official EOL
>   (end-of-life) on December 31st, 2020.*
> 
> Looking forward to your update on Spring 5 upgrade.
> 
> Thanks & Regards,
> Ragul
> 
> On Tue, Dec 1, 2020 at 9:27 PM ragul rangarajan <ra...@gmail.com>
> wrote:
> 
>> Hi all,
>> 
>> https://issues.apache.org/jira/browse/AMQ-8026
>> Interested to have an update on the above ticket. Does anyone have a
>> tentative release date for 5.17.0?
>> 
>> Sry to create a separate thread. Unable to continue on the below thread.
>> 
>> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
>> 
>> Regards
>> Ragul
>> 
>> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <ra...@gmail.com>
>> wrote:
>> 
>>> Hi all,
>>> 
>>> I am using apache ActiveMQ with the Spring framework.
>>> 
>>> Where we now trying to upgrade spring to 5.2 latest since its older
>>> releases reach the end of life.
>>> 
>>> While upgrading spring, we got stuck with below exception.
>>> 
>>> 
>>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>>> 
>>> On further debugging, able to see below change is made in spring since
>>> 5.2 and it expects the same from ActiveMQ on runtime but which fails due to
>>> the spring 4.3.26 reference.
>>> 
>>> 
>>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>>> 
>>> *Replacing the old spring jar with new makes to bypass the issue. But
>>> don't know the impact of changing the dependency manually.*
>>> 
>>> Can you please upgrade the spring?
>>> 
>>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>>> 
>>> 
>>> *Thanks and Regards,*
>>> 
>>> *Ragul*
>>> 
>> 


Re: Need spring upgrade in ActiveMQ

Posted by ragul rangarajan <ra...@gmail.com>.
Thanks for the update JB.

Looking forward to the ActiveMQ 5.17.0 release.
Can you please share its tentative release date?

Thanks & Regards,
Ragul

On Thu, Jan 7, 2021 at 2:01 PM ragul rangarajan <ra...@gmail.com>
wrote:

> Hi JB,
>
> Do we have any update on the below ticket [AMQ-8026] Upgrade to Spring
> 5.x - ASF JIRA (apache.org)
> <https://issues.apache.org/jira/browse/AMQ-8026>
>
> More than spring upgrade, I am focusing on the issue
> https://issues.apache.org/jira/browse/AMQ-8058
>
> [ Change made in spring since 5.2 and which expects the same from ActiveMQ
> on runtime but which fails due to the spring 4.3.26 reference.
>
>
> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>  ]
>
> *Which in turn needs a spring upgrade but to bypass the issue, I have
> replaced the old spring jar with the latest spring jar.*
>
> Modifying dependency here is not the right way
> *but want to clarify whether this way will impact ActiveMQ.*
>
> Planned to use this approach if the Spring upgrade takes some more time.
>
> Thanks & Regards,
> Ragul
>
> On Wed, Dec 2, 2020 at 8:05 PM ragul rangarajan <ra...@gmail.com>
> wrote:
>
>> Thanks for the update JB.
>>
>> But my concern for the need for Spring 5 Upgrade is more on that* Spring
>> 4.3.x release going to reach it EOF* than CVE fixes
>> FYI: Spring Framework Versions · spring-projects/spring-framework Wiki ·
>> GitHub
>> <https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#supported-versions>
>>
>>
>>    - 4.3.x is the last feature branch of the 4th generation, with active
>>    maintenance until October 2020. *4.3.x will reach its official EOL
>>    (end-of-life) on December 31st, 2020.*
>>
>> Looking forward to your update on Spring 5 upgrade.
>>
>> Thanks & Regards,
>> Ragul
>>
>> On Tue, Dec 1, 2020 at 9:27 PM ragul rangarajan <
>> ragulrangarajan@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> https://issues.apache.org/jira/browse/AMQ-8026
>>> Interested to have an update on the above ticket. Does anyone have a
>>> tentative release date for 5.17.0?
>>>
>>> Sry to create a separate thread. Unable to continue on the below thread.
>>>
>>> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
>>>
>>> Regards
>>> Ragul
>>>
>>> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <
>>> ragulrangarajan@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am using apache ActiveMQ with the Spring framework.
>>>>
>>>> Where we now trying to upgrade spring to 5.2 latest since its older
>>>> releases reach the end of life.
>>>>
>>>> While upgrading spring, we got stuck with below exception.
>>>>
>>>>
>>>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>>>>
>>>> On further debugging, able to see below change is made in spring since
>>>> 5.2 and it expects the same from ActiveMQ on runtime but which fails due to
>>>> the spring 4.3.26 reference.
>>>>
>>>>
>>>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>>>>
>>>> *Replacing the old spring jar with new makes to bypass the issue. But
>>>> don't know the impact of changing the dependency manually.*
>>>>
>>>> Can you please upgrade the spring?
>>>>
>>>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>>>>
>>>>
>>>> *Thanks and Regards,*
>>>>
>>>> *Ragul*
>>>>
>>>

Re: Need spring upgrade in ActiveMQ

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Yes, there’s an update:

- ActiveMQ 5.16.1 and 5.15.15 will use Spring 4.3.30.RELEASE with all latest CVE update
- ActiveMQ 5.17.0 will use Spring 5.3.2 (I will push the PR).

About the release schedule:

- I’m on 5.16.1 preparation right now, I hope to submit the release to vote by the end of the week/next week
- 5.15.15 will follow
- 5.17.0 will be in at least 2 or 3 weeks

Regards
JB

> Le 7 janv. 2021 à 09:31, ragul rangarajan <ra...@gmail.com> a écrit :
> 
> Hi JB,
> 
> Do we have any update on the below ticket [AMQ-8026] Upgrade to Spring 5.x
> - ASF JIRA (apache.org) <https://issues.apache.org/jira/browse/AMQ-8026>
> 
> More than spring upgrade, I am focusing on the issue
> https://issues.apache.org/jira/browse/AMQ-8058
> 
> [ Change made in spring since 5.2 and which expects the same from ActiveMQ
> on runtime but which fails due to the spring 4.3.26 reference.
> 
> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
> ]
> 
> *Which in turn needs a spring upgrade but to bypass the issue, I have
> replaced the old spring jar with the latest spring jar.*
> 
> Modifying dependency here is not the right way
> *but want to clarify whether this way will impact ActiveMQ.*
> 
> Planned to use this approach if the Spring upgrade takes some more time.
> 
> Thanks & Regards,
> Ragul
> 
> On Wed, Dec 2, 2020 at 8:05 PM ragul rangarajan <ra...@gmail.com>
> wrote:
> 
>> Thanks for the update JB.
>> 
>> But my concern for the need for Spring 5 Upgrade is more on that* Spring
>> 4.3.x release going to reach it EOF* than CVE fixes
>> FYI: Spring Framework Versions · spring-projects/spring-framework Wiki ·
>> GitHub
>> <https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#supported-versions>
>> 
>> 
>>   - 4.3.x is the last feature branch of the 4th generation, with active
>>   maintenance until October 2020. *4.3.x will reach its official EOL
>>   (end-of-life) on December 31st, 2020.*
>> 
>> Looking forward to your update on Spring 5 upgrade.
>> 
>> Thanks & Regards,
>> Ragul
>> 
>> On Tue, Dec 1, 2020 at 9:27 PM ragul rangarajan <ra...@gmail.com>
>> wrote:
>> 
>>> Hi all,
>>> 
>>> https://issues.apache.org/jira/browse/AMQ-8026
>>> Interested to have an update on the above ticket. Does anyone have a
>>> tentative release date for 5.17.0?
>>> 
>>> Sry to create a separate thread. Unable to continue on the below thread.
>>> 
>>> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
>>> 
>>> Regards
>>> Ragul
>>> 
>>> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <
>>> ragulrangarajan@gmail.com> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I am using apache ActiveMQ with the Spring framework.
>>>> 
>>>> Where we now trying to upgrade spring to 5.2 latest since its older
>>>> releases reach the end of life.
>>>> 
>>>> While upgrading spring, we got stuck with below exception.
>>>> 
>>>> 
>>>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>>>> 
>>>> On further debugging, able to see below change is made in spring since
>>>> 5.2 and it expects the same from ActiveMQ on runtime but which fails due to
>>>> the spring 4.3.26 reference.
>>>> 
>>>> 
>>>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>>>> 
>>>> *Replacing the old spring jar with new makes to bypass the issue. But
>>>> don't know the impact of changing the dependency manually.*
>>>> 
>>>> Can you please upgrade the spring?
>>>> 
>>>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>>>> 
>>>> 
>>>> *Thanks and Regards,*
>>>> 
>>>> *Ragul*
>>>> 
>>> 


Re: Need spring upgrade in ActiveMQ

Posted by ragul rangarajan <ra...@gmail.com>.
Hi JB,

Do we have any update on the below ticket [AMQ-8026] Upgrade to Spring 5.x
- ASF JIRA (apache.org) <https://issues.apache.org/jira/browse/AMQ-8026>

More than spring upgrade, I am focusing on the issue
https://issues.apache.org/jira/browse/AMQ-8058

[ Change made in spring since 5.2 and which expects the same from ActiveMQ
on runtime but which fails due to the spring 4.3.26 reference.

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
 ]

*Which in turn needs a spring upgrade but to bypass the issue, I have
replaced the old spring jar with the latest spring jar.*

Modifying dependency here is not the right way
*but want to clarify whether this way will impact ActiveMQ.*

Planned to use this approach if the Spring upgrade takes some more time.

Thanks & Regards,
Ragul

On Wed, Dec 2, 2020 at 8:05 PM ragul rangarajan <ra...@gmail.com>
wrote:

> Thanks for the update JB.
>
> But my concern for the need for Spring 5 Upgrade is more on that* Spring
> 4.3.x release going to reach it EOF* than CVE fixes
> FYI: Spring Framework Versions · spring-projects/spring-framework Wiki ·
> GitHub
> <https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#supported-versions>
>
>
>    - 4.3.x is the last feature branch of the 4th generation, with active
>    maintenance until October 2020. *4.3.x will reach its official EOL
>    (end-of-life) on December 31st, 2020.*
>
> Looking forward to your update on Spring 5 upgrade.
>
> Thanks & Regards,
> Ragul
>
> On Tue, Dec 1, 2020 at 9:27 PM ragul rangarajan <ra...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> https://issues.apache.org/jira/browse/AMQ-8026
>> Interested to have an update on the above ticket. Does anyone have a
>> tentative release date for 5.17.0?
>>
>> Sry to create a separate thread. Unable to continue on the below thread.
>>
>> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
>>
>> Regards
>> Ragul
>>
>> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <
>> ragulrangarajan@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I am using apache ActiveMQ with the Spring framework.
>>>
>>> Where we now trying to upgrade spring to 5.2 latest since its older
>>> releases reach the end of life.
>>>
>>> While upgrading spring, we got stuck with below exception.
>>>
>>>
>>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>>>
>>> On further debugging, able to see below change is made in spring since
>>> 5.2 and it expects the same from ActiveMQ on runtime but which fails due to
>>> the spring 4.3.26 reference.
>>>
>>>
>>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>>>
>>> *Replacing the old spring jar with new makes to bypass the issue. But
>>> don't know the impact of changing the dependency manually.*
>>>
>>> Can you please upgrade the spring?
>>>
>>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>>>
>>>
>>> *Thanks and Regards,*
>>>
>>> *Ragul*
>>>
>>

Re: Need spring upgrade in ActiveMQ

Posted by ragul rangarajan <ra...@gmail.com>.
Thanks for the update JB.

But my concern for the need for Spring 5 Upgrade is more on that* Spring
4.3.x release going to reach it EOF* than CVE fixes
FYI: Spring Framework Versions · spring-projects/spring-framework Wiki ·
GitHub
<https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#supported-versions>


   - 4.3.x is the last feature branch of the 4th generation, with active
   maintenance until October 2020. *4.3.x will reach its official EOL
   (end-of-life) on December 31st, 2020.*

Looking forward to your update on Spring 5 upgrade.

Thanks & Regards,
Ragul

On Tue, Dec 1, 2020 at 9:27 PM ragul rangarajan <ra...@gmail.com>
wrote:

> Hi all,
>
> https://issues.apache.org/jira/browse/AMQ-8026
> Interested to have an update on the above ticket. Does anyone have a
> tentative release date for 5.17.0?
>
> Sry to create a separate thread. Unable to continue on the below thread.
>
> http://activemq.2283324.n4.nabble.com/Need-spring-upgrade-in-ActiveMQ-tc4759365.html
>
> Regards
> Ragul
>
> On Mon, Nov 9, 2020 at 1:24 PM ragul rangarajan <ra...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I am using apache ActiveMQ with the Spring framework.
>>
>> Where we now trying to upgrade spring to 5.2 latest since its older
>> releases reach the end of life.
>>
>> While upgrading spring, we got stuck with below exception.
>>
>>
>> 2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | main2020-10-22 15:48:54,094 | ERROR | Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z | org.apache.activemq.xbean.XBeanBrokerFactory | mainorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusService' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.16.0.jar:5.16.0] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.16.0.jar:5.16.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_242] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.16.0] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.16.0]
>>
>> On further debugging, able to see below change is made in spring since
>> 5.2 and it expects the same from ActiveMQ on runtime but which fails due to
>> the spring 4.3.26 reference.
>>
>>
>> https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/AnnotationUtils.html#isCandidateClass-java.lang.Class-java.lang.Class
>>
>> *Replacing the old spring jar with new makes to bypass the issue. But
>> don't know the impact of changing the dependency manually.*
>>
>> Can you please upgrade the spring?
>>
>> Raised same as ticket https://issues.apache.org/jira/browse/AMQ-8058
>>
>>
>> *Thanks and Regards,*
>>
>> *Ragul*
>>
>