Title: Kafka Consumer > KafkaAutoConfiguration seems not to work [axon 3.3.3 + spring boot 2.0.4.RELEASE] · Issue #82 · AxonFramework/ReferenceGuide · GitHub
Open Graph Title: Kafka Consumer > KafkaAutoConfiguration seems not to work [axon 3.3.3 + spring boot 2.0.4.RELEASE] · Issue #82 · AxonFramework/ReferenceGuide
X Title: Kafka Consumer > KafkaAutoConfiguration seems not to work [axon 3.3.3 + spring boot 2.0.4.RELEASE] · Issue #82 · AxonFramework/ReferenceGuide
Description: 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: implementation('org.axonframework:axon-spring-boot-starter:3.3.3') imple...
Open Graph Description: 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: implementation('org.axonframewor...
X Description: 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: implementation('org.axon...
Opengraph URL: https://github.com/AxonFramework/ReferenceGuide/issues/82
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Kafka Consumer \u003e KafkaAutoConfiguration seems not to work [axon 3.3.3 + spring boot 2.0.4.RELEASE]","articleBody":"I have defined no additional configuration and the application doesn't start by just defining the consumer-group-id as defined the Axon documentation.\r\n\r\nDependencies:\r\n```\r\n implementation('org.axonframework:axon-spring-boot-starter:3.3.3')\r\n implementation('org.apache.kafka:kafka-clients:2.0.0')\r\n implementation('org.axonframework:axon-kafka:3.3.3')\r\n + spring-boot 2.0.4.RELEASE\r\n```\r\n\r\nHere is the configuration i have defined in my application.yml\r\n\r\n```\r\naxon:\r\n kafka:\r\n default-topic: \"my-topic\"\r\n bootstrap-servers: \"bootstrap.kafka.svc.cluster.local:9092\"\r\n consumer:\r\n group-id: \"query-consumer\"\r\n key-deserializer: org.apache.kafka.common.serialization.StringDeserializer\r\n value-deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer\r\n```\r\nHere are the corresponding starting logs:\r\n\r\n```\r\n\r\n***************************\r\nAPPLICATION FAILED TO START\r\n***************************\r\n\r\nDescription:\r\n\r\nParameter 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.\r\n\t- 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\r\n\r\n\r\nAction:\r\n\r\nConsider revisiting the entries above or defining a bean of type 'org.axonframework.kafka.eventhandling.consumer.Fetcher' in your configuration.\r\n\r\n2018-08-13 18:42:36,923 ERROR : gid: trace= span= [main] o.s.b.d.LoggingFailureAnalysisReporter \r\n\r\n***************************\r\nAPPLICATION FAILED TO START\r\n***************************\r\n\r\nDescription:\r\n\r\nParameter 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.\r\n\t- 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\r\n```\r\n\r\nI could make the application start by redefining this in a class annotated with @Configuration:\r\n```\r\n@ConditionalOnMissingBean\r\n @Bean\r\n public KafkaMessageConverter\u003cString, byte[]\u003e kafkaMessageConverter(\r\n @Qualifier(\"eventSerializer\") Serializer eventSerializer) {\r\n return new DefaultKafkaMessageConverter(eventSerializer);\r\n }\r\n``` \r\n\r\nBut still nothing is consumed from the Kafka topic (no tracking event processor is started).\r\n\r\nI 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.\r\n\r\n```\r\n @Autowired\r\n public void trackingEventProcessor(\r\n @SuppressWarnings(\"SpringJavaInjectionPointsAutowiringInspection\") EventProcessingConfiguration eventProcessingConfiguration,\r\n KafkaMessageSource kafkaMessageSource) {\r\n eventProcessingConfiguration.registerTrackingEventProcessorUsingSource(\"kafka-tracking-event-processor\", configuration -\u003e kafkaMessageSource);\r\n }\r\n\r\n @Bean\r\n public EventStorageEngine eventStorageEngine(){\r\n return new InMemoryEventStorageEngine();\r\n }\r\n\r\n @Bean\r\n public TokenStore tokenSTore(){\r\n return new InMemoryTokenStore();\r\n }\r\n```\r\nAny clue on how to configure this properly? ","author":{"url":"https://github.com/ghilainm","@type":"Person","name":"ghilainm"},"datePublished":"2018-08-13T16:48:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/82/ReferenceGuide/issues/82"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:598cf687-3b03-de7b-48e2-3c5a26841a5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8A8:199AF4:2006C0F:2152E64:6A5C8C7B |
| html-safe-nonce | 005a5742ea454551d62ca8f07364544e12a7c92ce25eefb2d0093352d6451a65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEE4OjE5OUFGNDoyMDA2QzBGOjIxNTJFNjQ6NkE1QzhDN0IiLCJ2aXNpdG9yX2lkIjoiNzE4ODEyMDkzNjk2NTI0NjA3NSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 8fd07961c704916677e2cf01a49c6e9f2e66ae135a217564e5037b25083a66e9 |
| hovercard-subject-tag | issue:350108888 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AxonFramework/ReferenceGuide/82/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4af6efc230b96b5b44b2ac0b2299fe5fbe464ab18ae0a74484b0fa3aa29acc4/AxonFramework/ReferenceGuide/issues/82 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4af6efc230b96b5b44b2ac0b2299fe5fbe464ab18ae0a74484b0fa3aa29acc4/AxonFramework/ReferenceGuide/issues/82 |
| og:image:alt | 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: implementation('org.axonframewor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ghilainm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/AxonFramework/ReferenceGuide git https://github.com/AxonFramework/ReferenceGuide.git |
| octolytics-dimension-user_id | 1237237 |
| octolytics-dimension-user_login | AxonFramework |
| octolytics-dimension-repository_id | 63346002 |
| octolytics-dimension-repository_nwo | AxonFramework/ReferenceGuide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63346002 |
| octolytics-dimension-repository_network_root_nwo | AxonFramework/ReferenceGuide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width