You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Karen Lease (Jira)" <ji...@apache.org> on 2021/09/13 20:05:00 UTC

[jira] [Commented] (CAMEL-16954) Some camel-spring-cloud tests fail with ClassNotFoundException

    [ https://issues.apache.org/jira/browse/CAMEL-16954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414568#comment-17414568 ] 

Karen Lease commented on CAMEL-16954:
-------------------------------------

The current spring-cloud pom uses spring-cloud 2.2.6.RELEASE and spring-boot 2.5.4. This version of spring-cloud references ConfigurationBeanFactoryMetadata which was removed in spring-boot 2.4.0.
To fix this we'd need to upgrade to spring-cloud 3.0.x.
This causes test failures but presumably would also cause failures in applications using these dependencies.

> Some camel-spring-cloud tests fail with ClassNotFoundException
> --------------------------------------------------------------
>
>                 Key: CAMEL-16954
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16954
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-cloud, tests
>    Affects Versions: 3.12.0
>         Environment: Occurs in both junit4 and junit5.
>            Reporter: Karen Lease
>            Priority: Major
>
> The test org.apache.camel.spring.cloud.CamelSpringCloudServiceCallRibbonTest.testServiceCall() fails to load the application context:
> {code:java}
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]
> ...
> Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
> {code}
> Some other tests using spring-cloud and spring-boot also fail with this exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)