title: Getting Smackx PubSub working
body: <p>I've got the following code:</p>
  
  <pre><code>        PubSubManager manager = new PubSubManager(connection, "pubsub.openfire.local");
          LeafNode myNode = (LeafNode) manager.createNode("NewNode", form);
  
          SimplePayload payload = new SimplePayload("session", "pubsub:NewNode:session", "&lt;sessionId&gt;1234&lt;/sessionId&gt;");
  
  
          // putting null for id means you let server generate id
          PayloadItem&lt;SimplePayload&gt; item = new PayloadItem&lt;SimplePayload&gt;(null, payload);
  
          // you could use publish() for asynchronous call
          myNode.send(item);
  </code></pre>
  
  <p>and I continuously get the following error on trying to send the node value:</p>
  
  <blockquote>
    <p>conflict(409)
      at >org.jivesoftware.smackx.pubsub.packet.SyncPacketSend.getReply(SyncPacketSend.java:53)
      at >org.jivesoftware.smackx.pubsub.packet.SyncPacketSend.getReply(SyncPacketSend.java:61)
      at >org.jivesoftware.smackx.pubsub.PubSubManager.sendPubsubPacket(PubSubManager.java:324)
      at >org.jivesoftware.smackx.pubsub.PubSubManager.sendPubsubPacket(PubSubManager.java:318)
      at org.jivesoftware.smackx.pubsub.PubSubManager.createNode(PubSubManager.java:134)
      at PubSubPublisher.main(PubSubPublisher.java:33)</p>
  </blockquote>
  
  <p>Would love any ideas about how to debug, or move forward with this. Thanks.</p>