# XMPP not doing notifications

**URL:** <https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027>\
**Category:** Discussion\
**Created:** [August 1, 2013, 12:54pm UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027 "2013-08-01T12:54:13Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 1, 2013, 12:54pm UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/1 "2013-08-01T12:54:13Z")

</div>

I've set up the XMPP account in administration / notifications / publishers. The validation works and i can see that continua is logged in in the XMPP server console.

Under administration / notifications / subscriptions i've added a new subscription for "build contributors" of "all projects", selected all checkboxes and chose "XMPP" as publisher.

My user is in the group "build contributors".

In my user settings, i've set my XMPP name (only the name not the server syntax like name@server as in the administration for publishers).

I am still getting no messages. Did i forget something?

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 2, 2013, 8:25am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/2 "2013-08-02T08:25:00Z")

</div>

Hi Christian,   
  
 You need to put your XMPP ID as name@server in the user preferences.   
  
 We will update the text and put some additional validation and error checking in this area.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 2, 2013, 8:35am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/3 "2013-08-02T08:35:14Z")

</div>

i already tested this but still nothing happens.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 2, 2013, 8:40am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/4 "2013-08-02T08:40:39Z")

</div>

is the server sending messages to me, even if i started the build? does it work for manually launched builds, too.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 2, 2013, 8:52am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/5 "2013-08-02T08:52:02Z")

</div>

You should get messages like this from manually started builds:

> Build Success : MSBuild Test Project: MSBuild Configuration version 1.0.0.12 (started by Dave Sparks) finished with a status of BuildCompleted

   
  
 Are there any errors in the event log?

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 2, 2013, 8:54am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/6 "2013-08-02T08:54:50Z")

</div>

no. nothing.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 2, 2013, 8:56am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/7 "2013-08-02T08:56:54Z")

</div>

oh sorry, i was looking the private message area. the event log contains:   
  
 Background Monitor   
  
 The background process XMPP notification queue threw the following exception: System.InvalidOperationException: Client must be authenticated before sending messages.   
 at jabber.client.JabberClient.Message(MessageType t, String to, String body)   
 at Continua.Notification.Queues.XmppQueue.Monitor()   
 at Continua.Shared.BackgroundMonitor.Run()

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 5, 2013, 6:18am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/8 "2013-08-05T06:18:51Z")

</div>

Hi Christian,

There doesn't seem to be any route in the code to get that particular error message. So to help figure out what is happening, we've added some extra debug logging and error handling. You can download a new build using one of the following links:&nbsp;[Continua CI Server v1.0.0.2378 (64 bit)](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_x64_1.0.0.2378.exe) or&nbsp;[Continua CI Server v1.0.0.2378 (32 bit)](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_1.0.0.2378.exe)&nbsp;

Can you install this, enable debugging ([http://wiki.finalbuilder.com/displa...gDebugging](http://wiki.finalbuilder.com/display/continua/Troubleshooting#Troubleshooting-EnablingDebugging)), start the build which should send the messages and then send a copy of log file to the support@finalbuilder.com ?

Can you also confirm whether you received a validation message via XMPP when you validated the publisher settings? You should have received a message saying "If you received this message, validation worked"

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 5, 2013, 12:24pm UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/9 "2013-08-05T12:24:48Z")

</div>

i’ve enabled to logging and i can see, that it seems the message and the user were mixed up:   
  
 [code]Medium: 12:21:17 [Debug] Creating Jabber client to send messageMedium: 12:21:17 [Debug] Creating Jabber client for XMPP id: BuildServer@192.168.100.31Medium: 12:21:17 [Debug] Created Jabber client for XMPP id: [BuildServer@192.168.100.31](mailto:BuildServer@192.168.100.31). User is ‘buildserver’, Server is ‘192.168.100.31’, NetworkHost is ‘192.168.100.31’, Port is '192.168.100.31’Medium: 12:21:17 [Debug] Sending XMPP message ‘BuildServer@192.168.100.31’ to 'If you received this message, validation worked.'Medium: 12:21:17 [Debug] Client is not authenticated - reset manual reset eventMedium: 12:21:17 [Debug] Connecting clientMedium: 12:21:17 [Debug] Waiting for client to be authenticatedMedium: 12:21:17 [Debug] Connected to XMPP serverMedium: 12:21:17 [Debug] Number of async trigger checkers is 0Medium: 12:21:17 [Debug] Number of sync triggers is 1Medium: 12:21:17 [Debug] Executing sync trigger with name Nightly BuildMedium: 12:21:17 [Debug] Handling invalid certificate error with XMPP serverMedium: 12:21:17 [Debug] Authenticated with XMPP serverMedium: 12:21:17 [Debug] Sending XMPP message ‘BuildServer@192.168.100.31’ to ‘If you received this message, validation worked.’ using authenticated clientMedium: 12:21:17 [Debug] Disposing Jabber clientMedium: 12:21:17 [Debug] Disconnected from XMPP server[/code]   
  
 i’ve sent you the log file.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 5, 2013, 1:34am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/10 "2013-08-05T01:34:52Z")

</div>

or you mixed up the logging only

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 6, 2013, 2:00am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/11 "2013-08-06T02:00:30Z")

</div>

Yes, I'd put the variables the wrong way round in logging!

We can see from the log that Continua is authenticating, calling the Jabber client method to send the message and returning without any error being thrown. So it seems that there is something wrong either with the Jabber client code or your XMPP server set up. Is there anything in the XMPP server logs? It may be that the server requires that you send the message to a different user than the "from" user?. Can you try sending a message with this sender and receiver using another XMPP client.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 6, 2013, 8:23am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/12 "2013-08-06T08:23:24Z")

</div>

hm i using OpenFire and currently, i can see only the following:   
  
 [code]at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:181) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:194) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:227) at org.jivesoftware.openfire.net.ClientStanzaHandler.processMessage(ClientStanzaHandler.java:107) at org.jivesoftware.openfire.net.StanzaHandler.processMessage(StanzaHandler.java:373) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:113) at org.jivesoftware.openfire.MessageRouter.routingFailed(MessageRouter.java:198) java.lang.NullPointerException 2013.08.06 08:21:48 org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: \<message id=“JN\_22” type=“chat”\>\<body\>Build Started : Care4: Trunk version 1088 (started by Christian Leh) finished with a status of StageAwaitingAgent\</body\>\</message\> [/code]   
  
 so it seems the message is sent but not “correctly” or wathever.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 6, 2013, 8:27am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/13 "2013-08-06T08:27:36Z")

</div>

but i can’t see an entry for the validation message.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 6, 2013, 8:52am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/14 "2013-08-06T08:52:23Z")

</div>

in general, i can sent messages using pidgin. its our existing internal company chat server.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 7, 2013, 2:45am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/15 "2013-08-07T02:45:24Z")

</div>

Can you try using the server's hostname rather than its ip address?

Can you also check the warnings tab on Openfire? There should be some messages like this:

"org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header"

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 7, 2013, 9:50am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/16 "2013-08-07T09:50:35Z")

</div>

if i use the servers hostname, the validation fails, but the log entries exist:   
  
 2013.08.07 01:00:21 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.100.31. Connection: org.jivesoftware.openfire.net.SocketConnection@17779f2 socket: Socket[addr=/192.168.100.31,port=50776,localport=5269] session: null   
  
 after changing the IP to hostname, i get the following error through continua:   
  
 System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte [fe80::a836:a592:e3ce:83fa%11]:5222   
 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)   
  
 (its german and means: connection refused by the remote host). well, even if i switch of the firewall, it doesn’t work. the IPv6 address is correct but maybe thats the problem?

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 7, 2013, 2:46am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/17 "2013-08-07T02:46:31Z")

</div>

Yes, it looks like IPv6 is the problem with the Jabber-net client that we are using. &nbsp;We'll look into this further. Meanwhile, can you try using name@ipAaddress for the Publisher and name@hostname in the user preferences? The ip address will then be used to connect to the server and the hostname used as the target for the message.&nbsp;

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 7, 2013, 3:05am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/18 "2013-08-07T03:05:40Z")

</div>

no, doesn’t work:   
  
 System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte [::1]:5222   
 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [August 8, 2013, 8:28am UTC](https://www.finalbuilder.com/forums/t/xmpp-not-doing-notifications/5027/19 "2013-08-08T08:28:51Z")

</div>

hm ok. i switched on my monitor this morning, now i have some messages. so i launched a build manually and it seems to work now using:   
 user@ip for publisher and user@host for users.
