-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: FIS 2.0
-
Fix Version/s: FIS 2.0-patches
-
Component/s: FIS-Camel, FIS-Spring Boot
-
Labels:None
-
Environment:
- FIS 2.0
Using camel-jasypt-starter to encrypt properties in Spring boot with camel spring xml it result with the following exception:
17:32:33.264 [main] WARN o.s.boot.SpringApplication - Error handling failed (Error creating bean with name 'camel': Invocation of init method failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@11758f2a has not been refreshed yet)
|
17:32:33.317 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
|
|
***************************
|
APPLICATION FAILED TO START
|
***************************
|
|
|
Description:
|
|
|
Parameter 1 of method properties in org.apache.camel.spring.boot.CamelAutoConfiguration required a single bean, but 2 were found:
|
- jasypt: defined in class path resource [spring/camel-context.xml]
|
- propertiesParser: defined by method 'propertiesParser' in class path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]
|
|
|
Action:
|
|
|
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
|