JFinal加入插件时,拒绝链接,请问怎么回事?

发布于 2021-11-29 14:22:57 字数 3709 浏览 763 评论 1

@玛雅牛 @JFinal  你好,想跟你请教个问题:

// zbus消息插件
ZbusPlugin zp = new ZbusPlugin();
plugins.add(zp);
zp.registerMqMsgHandler("MyStr", new TMsgHandler<String>() {
	public void handle(String msg) {
		System.out.println("AAA:" + msg);
	};
});



[2016-03-14 14:44:52][ERROR][SelectorThread]Connection refused: no further information
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
	at org.zbus.net.core.SelectorThread.handleConnectEvent(SelectorThread.java:247)
	at org.zbus.net.core.SelectorThread.run(SelectorThread.java:121)
[2016-03-14 14:44:54][ERROR][Consumer]Session not registered yet:Session [remote=null, status=CLOSED, id=368fd7a3-e60f-473b-9ba0-5ead5dd7ec19]
java.io.IOException: Session not registered yet:Session [remote=null, status=CLOSED, id=368fd7a3-e60f-473b-9ba0-5ead5dd7ec19]
	at org.zbus.net.core.Session.write(Session.java:140)
	at org.zbus.net.core.Session.write(Session.java:135)
	at org.zbus.net.InvokingClient.invokeSync(InvokingClient.java:98)
	at org.zbus.mq.Consumer.recv(Consumer.java:75)
	at org.zbus.mq.Consumer$1.run(Consumer.java:142)
	at java.lang.Thread.run(Thread.java:745)
[2016-03-14 14:44:55][ERROR][SelectorThread]Connection refused: no further information
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
	at org.zbus.net.core.SelectorThread.handleConnectEvent(SelectorThread.java:247)
	at org.zbus.net.core.SelectorThread.run(SelectorThread.java:121)
[2016-03-14 14:44:57][ERROR][Consumer]Session not registered yet:Session [remote=null, status=CLOSED, id=be307bd3-4c98-43b1-b71a-6d5efa69a8dd]
java.io.IOException: Session not registered yet:Session [remote=null, status=CLOSED, id=be307bd3-4c98-43b1-b71a-6d5efa69a8dd]
	at org.zbus.net.core.Session.write(Session.java:140)
	at org.zbus.net.core.Session.write(Session.java:135)
	at org.zbus.net.InvokingClient.invokeSync(InvokingClient.java:98)
	at org.zbus.mq.Consumer.recv(Consumer.java:75)
	at org.zbus.mq.Consumer$1.run(Consumer.java:142)
	at java.lang.Thread.run(Thread.java:745)
[2016-03-14 14:44:58][ERROR][SelectorThread]Connection refused: no further information
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
	at org.zbus.net.core.SelectorThread.handleConnectEvent(SelectorThread.java:247)
	at org.zbus.net.core.SelectorThread.run(SelectorThread.java:121)
[2016-03-14 14:45:00][ERROR][Consumer]Session not registered yet:Session [remote=null, status=CLOSED, id=824d5869-006d-4909-9faf-6702b715b256]
java.io.IOException: Session not registered yet:Session [remote=null, status=CLOSED, id=824d5869-006d-4909-9faf-6702b715b256]
	at org.zbus.net.core.Session.write(Session.java:140)
	at org.zbus.net.core.Session.write(Session.java:135)
	at org.zbus.net.InvokingClient.invokeSync(InvokingClient.java:98)
	at org.zbus.mq.Consumer.recv(Consumer.java:75)
	at org.zbus.mq.Consumer$1.run(Consumer.java:142)
	at java.lang.Thread.run(Thread.java:745)



如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空城仅有旧梦在 2021-11-30 19:41:24

本地zbus 服务没有启动?ZbusPlugin zp =new ZbusPlugin()默认链接的zbus服务器地址为:127.0.0.1:15555,若使用其它地址,需要ZbusPlugin zp =new ZbusPlugin(“192.168.1.2:15555”),在构造函数中指定地址参数

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文