You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method kafkaMessageSource in org.axonframework.boot.autoconfig.KafkaAutoConfiguration required a bean of type 'org.axonframework.kafka.eventhandling.consumer.Fetcher' that could not be found.
- Bean method 'kafkaFetcher' in 'KafkaAutoConfiguration' not loaded because @ConditionalOnBean (types: org.axonframework.kafka.eventhandling.consumer.ConsumerFactory,org.axonframework.kafka.eventhandling.KafkaMessageConverter; SearchStrategy: all) did not find any beans of type org.axonframework.kafka.eventhandling.KafkaMessageConverter
Action:
Consider revisiting the entries above or defining a bean of type 'org.axonframework.kafka.eventhandling.consumer.Fetcher' in your configuration.
2018-08-13 18:42:36,923 ERROR : gid: trace= span= [main] o.s.b.d.LoggingFailureAnalysisReporter
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method kafkaMessageSource in org.axonframework.boot.autoconfig.KafkaAutoConfiguration required a bean of type 'org.axonframework.kafka.eventhandling.consumer.Fetcher' that could not be found.
- Bean method 'kafkaFetcher' in 'KafkaAutoConfiguration' not loaded because @ConditionalOnBean (types: org.axonframework.kafka.eventhandling.consumer.ConsumerFactory,org.axonframework.kafka.eventhandling.KafkaMessageConverter; SearchStrategy: all) did not find any beans of type org.axonframework.kafka.eventhandling.KafkaMessageConverter
I could make the application start by redefining this in a class annotated with @configuration:
@ConditionalOnMissingBean
@Bean
public KafkaMessageConverter<String, byte[]> kafkaMessageConverter(
@Qualifier("eventSerializer") Serializer eventSerializer) {
return new DefaultKafkaMessageConverter(eventSerializer);
}
But still nothing is consumed from the Kafka topic (no tracking event processor is started).
I then tried to define to add this in addition to try to register manually an event processor for my KafkaMessageSource but still without any success.
@Autowired
public void trackingEventProcessor(
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection") EventProcessingConfiguration eventProcessingConfiguration,
KafkaMessageSource kafkaMessageSource) {
eventProcessingConfiguration.registerTrackingEventProcessorUsingSource("kafka-tracking-event-processor", configuration -> kafkaMessageSource);
}
@Bean
public EventStorageEngine eventStorageEngine(){
return new InMemoryEventStorageEngine();
}
@Bean
public TokenStore tokenSTore(){
return new InMemoryTokenStore();
}
Any clue on how to configure this properly?
The text was updated successfully, but these errors were encountered:
I have defined no additional configuration and the application doesn't start by just defining the consumer-group-id as defined the Axon documentation.
Dependencies:
Here is the configuration i have defined in my application.yml
Here are the corresponding starting logs:
I could make the application start by redefining this in a class annotated with @configuration:
But still nothing is consumed from the Kafka topic (no tracking event processor is started).
I then tried to define to add this in addition to try to register manually an event processor for my KafkaMessageSource but still without any success.
Any clue on how to configure this properly?
The text was updated successfully, but these errors were encountered: