Axon 4 - Kafka ext 4.0.RC3 出现启动错误
Axon 4 - Kafka ext 4.0.RC3 gives start up error
低于设置,在使用 4.0-RC2 版本时它工作得很好。
但是当我们尝试使用最新版本 4.0.RC3 时出现启动错误。
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean named 'kafkaMessageSource' that could not be found.
build.gradle
compile "org.axonframework:axon-spring-boot-starter:4.0-RC3"
configurations { compile.exclude module: 'axon-server-connector' }
compile group: 'org.axonframework.extensions.kafka', name: 'axon-kafka', version: '4.0-RC3'
compile 'org.apache.kafka:kafka-clients:2.0.1'
application.yml(命令)
axon:
snapshot:
trigger:
treshold:
order: 100
kafka:
default-topic: order-events
producer:
retries: 5
bootstrap-servers: localhost:9092
transaction-id-prefix: order-tx
consumer:
group-id: kafka-group,kafka-group2
bootstrap-servers: localhost:9092
distributed:
enabled: true
serializer:
messages: xstream
eventhandling:
processors:
command-processor:
mode: tracking
source: kafkaMessageSource
application.yml(投影)
axon:
eventhandling:
processors:
kafka-group:
mode: tracking
source: kafkaMessageSource
kafka:
default-topic: order-events
consumer:
group-id: kafka-group
bootstrap-servers: localhost:9092
Kafka 扩展 Kafka Extension provided by Axon are not compatible. This choice was made to have the freedom to adjust the API according to further findings. Hence why it's a release candidate and not a final release. This is stated on the GitHub page of the project and on the reference guide 页面的 RC2 和 RC2 之间的变化。
RC2 中使用的配置属性因此不 与 RC3 兼容。查看参考指南(已与 RC3 一起扩展)以了解有关如何调整配置的更多细节。
问题是由于不兼容的源代码 - 版本。
会坚持使用 4.0.RC2 版本。
低于设置,在使用 4.0-RC2 版本时它工作得很好。
但是当我们尝试使用最新版本 4.0.RC3 时出现启动错误。
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean named 'kafkaMessageSource' that could not be found.
build.gradle
compile "org.axonframework:axon-spring-boot-starter:4.0-RC3"
configurations { compile.exclude module: 'axon-server-connector' }
compile group: 'org.axonframework.extensions.kafka', name: 'axon-kafka', version: '4.0-RC3'
compile 'org.apache.kafka:kafka-clients:2.0.1'
application.yml(命令)
axon:
snapshot:
trigger:
treshold:
order: 100
kafka:
default-topic: order-events
producer:
retries: 5
bootstrap-servers: localhost:9092
transaction-id-prefix: order-tx
consumer:
group-id: kafka-group,kafka-group2
bootstrap-servers: localhost:9092
distributed:
enabled: true
serializer:
messages: xstream
eventhandling:
processors:
command-processor:
mode: tracking
source: kafkaMessageSource
application.yml(投影)
axon:
eventhandling:
processors:
kafka-group:
mode: tracking
source: kafkaMessageSource
kafka:
default-topic: order-events
consumer:
group-id: kafka-group
bootstrap-servers: localhost:9092
Kafka 扩展 Kafka Extension provided by Axon are not compatible. This choice was made to have the freedom to adjust the API according to further findings. Hence why it's a release candidate and not a final release. This is stated on the GitHub page of the project and on the reference guide 页面的 RC2 和 RC2 之间的变化。
RC2 中使用的配置属性因此不 与 RC3 兼容。查看参考指南(已与 RC3 一起扩展)以了解有关如何调整配置的更多细节。
问题是由于不兼容的源代码 - 版本。 会坚持使用 4.0.RC2 版本。