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

在XxlProducer中增加新方法后无法找到该方法 #13

Closed
yyd19921214 opened this issue Jan 13, 2018 · 1 comment
Closed

在XxlProducer中增加新方法后无法找到该方法 #13

yyd19921214 opened this issue Jan 13, 2018 · 1 comment

Comments

@yyd19921214
Copy link

你好,我在com.xxl.mq.client.XxlMqProducer类中增添了新的方法produceCachedMsg,然后在example工程中增加一个controller action调用该方法,但是会报以下错误:
for servlet [springmvc] in context with path [/xxl-mq-example] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: com.xxl.mq.client.XxlMqProducer.produceCachedMsg(Ljava/lang/String;Ljava/util/Map;)V] with root cause
java.lang.NoSuchMethodError: com.xxl.mq.client.XxlMqProducer.produceCachedMsg(Ljava/lang/String;Ljava/util/Map;)V

然而奇怪的是,如果我在一个tomcat上同时启动broker和example两个项目,那么就可以成功的调用该方法。如果在server1中部署了broker,在server2上部署example,就会报上述错误

@xuxueli
Copy link
Owner

xuxueli commented Nov 18, 2018

你好,底层通过RPC通讯,需要调用方与服务方接口一致才可以。可以确认下。
批量生产消息功能已经提供,可以参考下master分支,正在迭代中。

@xuxueli xuxueli closed this as completed Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants