Projects tigase _server tigase-pubsub Issues #83
NPE in PublishItemModule (#83)
wojciech.kapcia@tigase.net opened 6 years ago
2019-05-01 16:19:01.695 [in_2-pubsub]      StanzaProcessor.processPacket()         SEVERE:   java.lang.NullPointerException when processing from=c2s@ip-10-0-2-205.us-west-2.compute.internal/10.0.2.205_5223_70.95.147.116_53040, to=pubsub@ip-10-0-2-205.us-west-2.compute.internal, DATA=<iq to="artur.hefczyc@jabber.today" xmlns="jabber:client" from="artur.hefczyc@jabber.today/Artur Hefczyc" type="set" id="707A4C58-D01B-4AE5-99C2-CFBD3F343CA5"><pubsub xmlns="http://jabber.org/protocol/pubsub"><publish node="eu.siacs.conversations.axolotl.bundles:1240926690"><item id="current"><bundle xmlns="eu.siacs.conversations.axolotl"><signedPreKeyPublic signedPreKeyId="1">CData size: 44</signedPreKeyPublic><signedPreKeySignature>CData size: 88</signedPreKeySignature><identityKey>CData size: 44</identityKey><prekeys><preKeyPublic preKeyId="1">CData size: 44</preKeyPublic><preKeyPublic preKeyId="2">CData size: 44</preKeyPublic><preKeyPublic preKeyId="3">CData size: 44</preKeyPublic><preKeyPublic preKeyId="4">CData size: 44</preKeyPublic><preKeyPublic preKeyId="5">CData size: 44</preKeyPublic><preKeyPublic preKeyId="6">CData size: 44</preKeyPublic><preKeyPublic preKeyId="7">CData size: 44</preKeyPublic><preKeyPublic preKeyId="8">CData size: 44</preKeyPublic><preKeyPublic preKeyId="9">CData size: 44</preKeyP ... , SIZE=9558, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=set
java.lang.RuntimeException: java.lang.NullPointerException
        at tigase.pubsub.modules.PublishItemModule.process(PublishItemModule.java:381)
        at tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:164)
        at tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:85)
        at tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81)
        at tigase.pubsub.PubSubComponent.processPacket(PubSubComponent.java:188)
        at tigase.pubsub.cluster.PubSubComponentClustered.processPacket(SourceFile:183)
        at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1357)
Caused by: java.lang.NullPointerException
        at tigase.pubsub.modules.PublishItemModule.createPepNode(PublishItemModule.java:738)
        at tigase.pubsub.modules.PublishItemModule.process(PublishItemModule.java:265)
        at tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:164)
        at tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:85)
        at tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81)
        at tigase.pubsub.PubSubComponent.processPacket(PubSubComponent.java:188)
        at tigase.pubsub.cluster.PubSubComponentClustered.processPacket(SourceFile:183)
        at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1357)
Andrzej Wójcik (Tigase) commented 6 years ago

Fixed NPE when invalid publish-option is specified and node does not exist.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
8934
Version
tigase-server-8.1.0
Spent time
15m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-pubsub#83
Please wait...
Page is in error, reload to recover