Hi Andras,

Looks good from first sight.
did you see any exceptions/errors on the server?
Are you able to otherwise use the server, especially connecting with a
client like Psi or others which can browse the service discovery?

  Bernd




On Thu, Jul 18, 2013 at 10:26 AM, Radó András <rado.and...@tct.hu> wrote:

> 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
>

Reply via email to