Project

General

Profile

Retrieve Subscriptions NullPointerException

shir Hu
Added almost 4 years ago

Hi,

When I try to retrieve subscriptions by Jaxmpp with IQ xml, Tigase server occur NullPointerException,the format of send xml reference http://xmpp.org/extensions/xep-0060.html#entity-subscriptions :

<iq to="pubsub.etw-pc" id="rce_4" from="dean5@etw-pc/develop" type="get"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscriptions/></pubsub></iq>

The exception in tigase server is :

java.lang.NullPointerException
    at tigase.pubsub.repository.PubSubDAOJDBC.getUserSubscriptions(PubSubDAOJDBC.java:560)
    at tigase.pubsub.repository.PubSubDAOPool.getUserSubscriptions(PubSubDAOPool.java:358)
    at tigase.pubsub.modules.RetrieveSubscriptionsModule.process(RetrieveSubscriptionsModule.java:112)
    at tigase.component2.modules.ModulesManager.process(ModulesManager.java:87)
    at tigase.component2.AbstractComponent.processStanzaPacket(AbstractComponent.java:200)
    at tigase.component2.AbstractComponent.processPacket(AbstractComponent.java:188)
    at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1419)
2015-02-26 15:37:16.750 [in_13-pubsub]     AbstractComponent.processStanzaPacket()  SEVERE: java.lang.NullPointerException when processing from=sess-man@green.tigase.im, to=null, DATA=<iq id="rce_4" type="get" xmlns="jabber:client" from="dean5@etw-pc/develop" to="pubsub.etw-pc"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscriptions/></pubsub></iq>, SIZE=175, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=get
java.lang.RuntimeException: java.lang.NullPointerException
    at tigase.pubsub.modules.RetrieveSubscriptionsModule.process(RetrieveSubscriptionsModule.java:140)
    at tigase.component2.modules.ModulesManager.process(ModulesManager.java:87)
    at tigase.component2.AbstractComponent.processStanzaPacket(AbstractComponent.java:200)
    at tigase.component2.AbstractComponent.processPacket(AbstractComponent.java:188)
    at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1419)
Caused by: java.lang.NullPointerException
    at tigase.pubsub.repository.PubSubDAOJDBC.getUserSubscriptions(PubSubDAOJDBC.java:560)
    at tigase.pubsub.repository.PubSubDAOPool.getUserSubscriptions(PubSubDAOPool.java:358)
    at tigase.pubsub.modules.RetrieveSubscriptionsModule.process(RetrieveSubscriptionsModule.java:112)
    at tigase.component2.modules.ModulesManager.process(ModulesManager.java:87)
    at tigase.component2.AbstractComponent.processStanzaPacket(AbstractComponent.java:200)
    at tigase.component2.AbstractComponent.processPacket(AbstractComponent.java:188)
    at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1419)

Can you tell me if there is something wrong the send xml?


Replies (1)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Which PubSub version do you use? With the version 3.x and newer it's essential to use PubSub specific schema (v. PubSub DAO, however without it being load Tigase should not start at all). Have you encountered any other exceptions in the logs?

    (1-1/1)