我在CruiseControl中设置了以下发布者:
<jabber host="my.network.local"
port="5222"
username="cruisecontrol"
password="cruisecontrol"
recipient="builds@conference.my.network.local"
chatroom="true"
buildresultsurl="http://cruise.control.net:7070/dashboard/tab/build/detail/customer" />
如果我将聊天室设置为FALSE并输入单个收件人,那么一切都很有效。我遇到的问题是发送构建通知到聊天室。我将聊天室值设置为TRUE并输入完全限定的聊天室名称我收到以下错误:
2009-10-16 13:34:10,818 [Thread-70897] ERROR JabberPublisher - Could not send message to recipient or chat room
No response from server.:
at org.jivesoftware.smack.GroupChat.join(GroupChat.java:162)
at org.jivesoftware.smack.GroupChat.join(GroupChat.java:123)
at net.sourceforge.cruisecontrol.publishers.JabberPublisher.init(JabberPublisher.java:146)
at net.sourceforge.cruisecontrol.publishers.JabberPublisher.publish(JabberPublisher.java:201)
at net.sourceforge.cruisecontrol.Project.publish(Project.java:742)
at net.sourceforge.cruisecontrol.Project.build(Project.java:264)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:147)
at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
at java.lang.Thread.run(Thread.java:619)
是否有人能够使用此方法将构建消息发送到Jabber聊天室?
答案 0 :(得分:0)
我没有将Jabber与CruiseControl一起使用,但您是否尝试从运行CC的服务器手动连接到该端口?
像:
telnet my.network.local 5222
答案 1 :(得分:0)
您可以将任何xmpp / jabber数据包从客户端记录到服务器并返回吗?我们可以看到CruiseControl配置文件和java错误,但我们无法看到实际发送和接收的是什么xmpp数据包。这可能是故障排除的关键。