dyrnq / springcloud-rocketmq-example

POC new features of rocketmq5
https://github.com/apache/rocketmq
0 stars 0 forks source link

Caused by: java.util.concurrent.ExecutionException: org.apache.rocketmq.client.java.exception.NotFoundException: [request-id=6676dec9-be49-4156-a0c2-a97406b7f21b, response-code=40402] CODE: 17 DESC: No topic route info in name server for the topic: yourTopic #9

Open dyrnq opened 1 month ago

dyrnq commented 1 month ago
Exception in thread "main" java.lang.IllegalStateException: Expected the service ProducerImpl-0 [FAILED] to be RUNNING, but the service has FAILED
    at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:384)
    at com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:308)
    at com.google.common.util.concurrent.AbstractIdleService.awaitRunning(AbstractIdleService.java:160)
    at org.apache.rocketmq.client.java.impl.producer.ProducerBuilderImpl.build(ProducerBuilderImpl.java:93)
    at org.apache.rocketmq.client.java.example.ProducerSingleton.buildProducer(ProducerSingleton.java:67)
    at org.apache.rocketmq.client.java.example.ProducerSingleton.getInstance(ProducerSingleton.java:74)
    at org.apache.rocketmq.client.java.example.AsyncProducerExample.main(AsyncProducerExample.java:42)
Caused by: java.util.concurrent.ExecutionException: org.apache.rocketmq.client.java.exception.NotFoundException: [request-id=6676dec9-be49-4156-a0c2-a97406b7f21b, response-code=40402] CODE: 17  DESC: No topic route info in name server for the topic: yourTopic
For more information, please visit the url, https://rocketmq.apache.org/docs/bestPractice/06FAQ
    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:592)
    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:571)
    at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:91)
    at org.apache.rocketmq.client.java.impl.ClientImpl.startUp(ClientImpl.java:188)
    at org.apache.rocketmq.client.java.impl.producer.ProducerImpl.startUp(ProducerImpl.java:114)
    at com.google.common.util.concurrent.AbstractIdleService$DelegateService.lambda$doStart$0(AbstractIdleService.java:64)
    at com.google.common.util.concurrent.Callables.lambda$threadRenaming$3(Callables.java:105)
    at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.apache.rocketmq.client.java.exception.NotFoundException: [request-id=6676dec9-be49-4156-a0c2-a97406b7f21b, response-code=40402] CODE: 17  DESC: No topic route info in name server for the topic: yourTopic
For more information, please visit the url, https://rocketmq.apache.org/docs/bestPractice/06FAQ
    at org.apache.rocketmq.client.java.exception.StatusChecker.check(StatusChecker.java:78)
    at org.apache.rocketmq.client.java.impl.ClientImpl.lambda$fetchTopicRoute0$6(ClientImpl.java:621)
    at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:223)
    at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:210)
    at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:123)
    at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)
    at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286)
    at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055)
    at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:782)
    at io.grpc.stub.ClientCalls$GrpcFuture.set(ClientCalls.java:569)
    at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:542)
    at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
    at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
    at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
    at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:563)
    at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:744)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723)
    at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
    at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    ... 1 more
dyrnq commented 1 month ago

proxy不支持自动创建topic.