mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radó András <rado.and...@tct.hu>
Subject Vysper/PubSub problem
Date Thu, 18 Jul 2013 08:26:09 GMT
Hello,

I created a simple service with vysper and pubsub module.
The demo PubSubClient (from vysper project) connects to it, but after 
connect failed with exception:

item-not-found(-1)
     at 
org.jivesoftware.smackx.packet.SyncPacketSend.getReply(SyncPacketSend.java:52)
     at 
org.jivesoftware.smackx.packet.SyncPacketSend.getReply(SyncPacketSend.java:60)
     at 
org.jivesoftware.smackx.pubsub.PubSubManager.discoverNodes(PubSubManager.java:197)
     at 
org.apache.vysper.demo.pubsub.client.PubsubClientModel.discoverNodes(PubsubClientModel.java:99)
...

and

service-unavailable(-1)
     at 
org.jivesoftware.smackx.packet.SyncPacketSend.getReply(SyncPacketSend.java:52)
     at 
org.jivesoftware.smackx.packet.SyncPacketSend.getReply(SyncPacketSend.java:60)
     at 
org.jivesoftware.smackx.pubsub.PubSubManager.sendPubsubPacket(PubSubManager.java:314)
     at 
org.jivesoftware.smackx.pubsub.PubSubManager.sendPubsubPacket(PubSubManager.java:276)
     at 
org.jivesoftware.smackx.pubsub.PubSubManager.sendPubsubPacket(PubSubManager.java:282)
     at 
org.jivesoftware.smackx.pubsub.PubSubManager.getSubscriptions(PubSubManager.java:211)
     at 
org.apache.vysper.demo.pubsub.client.PubsubClientModel.discoverSubscriptions(PubsubClientModel.java:85)

(I've tried both trunk and 0.7 versions of demo client)

This is the server snippet:
         XMPPServer server = new XMPPServer("localhost");
         server.addEndpoint(new TCPEndpoint());
         StorageProviderRegistry providerRegistry = new 
MemoryStorageProviderRegistry();
         final AccountManagement accountManagement = (AccountManagement) 
providerRegistry
                 .retrieve(AccountManagement.class);

         try {
             if (!accountManagement.verifyAccountExists(EntityImpl
                     .parse("user1@localhost"))) {
accountManagement.addUser(EntityImpl.parse("user1@localhost"), "password1");
             }
             server.setStorageProviderRegistry(providerRegistry);
             server.setTLSCertificateInfo(new 
File("src/main/resources/bogus_mina_tls.cert"), "boguspw");
             server.start();
             server.addModule(new SoftwareVersionModule());
             server.addModule(new EntityTimeModule());
             server.addModule(new XmppPingModule());
             server.addModule(new AdhocCommandsModule());
             server.addModule(new PublishSubscribeModule());

Can anyone help me?

Thanks,
Andras

Mime
View raw message