I myself don't have any issues connecting to PubSub and creating nodes etc.
You are giving the error responses from the server. Additionally, can you please also give the messages causing these errors? Thanks, Bernd On Mon, Jul 22, 2013 at 11:18 AM, Radó András <[email protected]> wrote: > Dear Bernd, > > thank you for answer. > No exception/error is shown on the server if I browse the service > discovery with PSI. > > But how can I write a working pubsub client? > > If I connect with PubSubClient demo, the server log contains entries like > these: > [2013-07-22 11:08:02,839] [DEBUG] [pool-3-thread-10] [filterWrite] > [SslFilter.java:581] -> [Session Server[1](SSL): Writing Message : > MessageWriteRequest, parent : WR WrapperWriteRequest: [ prolog=false, > open=true, close=true, content=true, stanza=[iq.id='MIl1K-4'.from='** > pubsub.vysper.org <http://pubsub.vysper.org>'.type='** > error'.query.disco.items]] > [2013-07-22 11:08:02,840] [DEBUG] [NioProcessor-2] [messageSent] > [StanzaLoggingFilter.java:79] -> [> <iq xmlns="jabber:client" from=" > pubsub.vysper.org" type="error" id="MIl1K-4"><query xmlns=" > http://jabber.org/**protocol/disco#items<http://jabber.org/protocol/disco#items> > "></query>**<error type="cancel"><item-not-found > xmlns="urn:ietf:params:xml:ns:**xmpp-stanzas"></item-not-** > found></error></iq>] > > and > > [2013-07-22 11:08:04,053] [DEBUG] [pool-3-thread-1] [filterWrite] > [SslFilter.java:581] -> [Session Server[1](SSL): Writing Message : > MessageWriteRequest, parent : WR WrapperWriteRequest: [ prolog=false, > open=true, close=true, content=true, stanza=[iq.id='MIl1K-5'.from='** > pubsub.vysper.org <http://pubsub.vysper.org>'.type='** > error'.pubsub.xmlns='http://**jabber.org/protocol/pubsub'<http://jabber.org/protocol/pubsub'> > ]] > [2013-07-22 11:08:04,054] [DEBUG] [NioProcessor-2] [messageSent] > [StanzaLoggingFilter.java:79] -> [> <iq xmlns="jabber:client" from=" > pubsub.vysper.org" type="error" id="MIl1K-5"><pubsub xmlns=" > http://jabber.org/**protocol/pubsub <http://jabber.org/protocol/pubsub>">< > **subscriptions></subscriptions>**</pubsub><error type="cancel"><service-* > *unavailable xmlns="urn:ietf:params:xml:ns:**xmpp-stanzas"></service-** > unavailable></error></iq>] > > > Andras > > > 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 > > > 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 >> > > > -- Üdv, > -b > >
