Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"java.lang.NoSuchFieldError: logger" in RocketMQProducerMessageHandler #2366

Closed
frlzk opened this issue Jan 24, 2022 · 1 comment · Fixed by #2788
Closed

"java.lang.NoSuchFieldError: logger" in RocketMQProducerMessageHandler #2366

frlzk opened this issue Jan 24, 2022 · 1 comment · Fixed by #2788
Assignees

Comments

@frlzk
Copy link

frlzk commented Jan 24, 2022

spring-cloud-starter-stream-rocketmq

Describe the bug
java.lang.NoSuchFieldError: logger at com.alibaba.cloud.stream.binder.rocketmq.integration.outbound.RocketMQProducerMessageHandler.start(RocketMQProducerMessageHandler.java:120) ~[spring-cloud-starter-stream-rocketmq-2.2.7.RELEASE.jar:2.2.7.RELEASE] at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:248) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:91) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.binder.AbstractBinder.bindProducer(AbstractBinder.java:152) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.binding.BindingService.doBindProducer(BindingService.java:320) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:285) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.function.StreamBridge.resolveDestination(StreamBridge.java:256) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:202) ~[spring-cloud-stream-3.1.4.jar:3.1.4] at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:156) ~[spring-cloud-stream-3.1.4.jar:3.1.4]

Screenshots
In file com.alibaba.cloud.stream.binder.rocketmq.integration.outbound.RocketMQProducerMessageHandler line 120
if (extendedProducerProperties.getPartitionCount() != messageQueues .size()) { logger.info(String.format( "The partition count of topic '%s' will change from '%s' to '%s'", destination.getName(), extendedProducerProperties.getPartitionCount(), messageQueues.size())); extendedProducerProperties.setPartitionCount(messageQueues.size()); // may be npe! partitioningInterceptor.setPartitionCount( extendedProducerProperties.getPartitionCount()); }
The field "logger" is not defined.

Additional context
Java8 、spring-cloud-starter-stream-rocketmq-2.2.7.RELEASE.jar spring-cloud-stream-3.1.4.jar

@yang-xiaobai
Copy link
Contributor

此问题我将跟踪解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants