powered by Jive Software

NPE in monitoring plugin 2.0

 ERROR [message-archive-handler-11]: com.reucon.openfire.plugin.archive.xep0313.IQQueryHandler - An exception has occurred while retrieving messages:
java.lang.NullPointerException: null
        at com.reucon.openfire.plugin.archive.impl.JdbcPersistenceManager.countMessagesBefore(JdbcPersistenceManager.java:686) ~[?:?]
        at com.reucon.openfire.plugin.archive.impl.JdbcPersistenceManager.findMessages(JdbcPersistenceManager.java:498) ~[?:?]
        at com.reucon.openfire.plugin.archive.xep0313.IQQueryHandler.retrieveMessages(IQQueryHandler.java:432) ~[?:?]
        at com.reucon.openfire.plugin.archive.xep0313.IQQueryHandler.lambda$handleIQ$2(IQQueryHandler.java:257) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_202]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

Can you please supply the request that you use to trigger this exception?

i will try to get it tomorrow morning.

it should be a request like this one:

<iq xmlns="jabber:client" type="set" id="0e565739-b8e8-42b0-bd40-e56bda544513" from="NAME@XMPPDOMAIN/RESSOURCE"><query xmlns="urn:xmpp:mam:2" queryid="c4be90ce-5016-47f3-a76d-b4fb7f255b37"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE" type="hidden"><value>urn:xmpp:mam:2</value></field></x><set xmlns="http://jabber.org/protocol/rsm"><max>70</max><after>6503a2ed-6f8c-41a3-8405-e80789e37956</after></set></query></iq>

or this one:

<iq xmlns="jabber:client" type="set" id="6cc16572-6884-4968-94a0-26e3bcf5d7f0" from="NAME@XMPPDOMAIN/RESSOURCE"><query xmlns="urn:xmpp:mam:2" queryid="346c7656-1b9c-48a3-b76b-cc81ab8a986e"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE" type="hidden"><value>urn:xmpp:mam:2</value></field></x><set xmlns="http://jabber.org/protocol/rsm"><max>70</max><after>7553c518-be3c-40fe-9905-fe7933ded3e4</after></set></query></iq>