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

初始化Producer时需要设置通信配置以及预绑定的Topic报错 #9031

Open
1 of 2 tasks
LKLKenneth opened this issue Dec 6, 2024 · 3 comments
Open
1 of 2 tasks

Comments

@LKLKenneth
Copy link

Search before creation

  • I had searched in the issues and found no similar issues.

Documentation Related

java 连接 // 初始化Producer时需要设置通信配置以及预绑定的Topic。
Producer producer = provider.newProducerBuilder()
.setTopics(topic)
.setClientConfiguration(configuration)
.build(); 走到这一步报错

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@yx9o
Copy link
Contributor

yx9o commented Dec 6, 2024

能提供具体报错和configuration的信息吗

@LKLKenneth
Copy link
Author

Exception in thread "main" java.lang.IllegalStateException: Expected the service ProducerImpl-0 [FAILED] to be RUNNING, but the service has FAILED
at org.apache.rocketmq.shaded.com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:381)
at org.apache.rocketmq.shaded.com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:305)
at org.apache.rocketmq.shaded.com.google.common.util.concurrent.AbstractIdleService.awaitRunning(AbstractIdleService.java:165)
at org.apache.rocketmq.client.java.impl.producer.ProducerBuilderImpl.build(ProducerBuilderImpl.java:93)
at com.homeinns.rocketmq.producer.PushMessageDemo.main(PushMessageDemo.java:30)

@qianye1001
Copy link
Contributor

i guess you do use namesrv endpoint instead of proxy endpoint, rmq grpc client need to connect to proxy

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

No branches or pull requests

3 participants