8 Replies Latest reply on Dec 2, 2011 5:16 AM by Sumeet Guha

    openarchive 1.0.5 retrieving chat history

    gabriel afosno Bronze

      Hello, I'm using  openfire as my xmpp server, and I have the openarchive 1.0.5 plugin working that automatically saves the chats on the server... The problem I have is that I can't find a way to retrieve these messages (from the client app) that are saved on the server , for this

      I'm using PSI+ and I send an xml with the format specified in the "retrieving a collection" section of the XEP-0136, but the answer I'm getting from the server is "internal server-error"

       

      So I wanted to know what I'm doing wrong  or if that plugin doesn't support the retrieving action of the chat history from the server to the client???

       

      Thank you

        • openarchive 1.0.5 retrieving chat history
          RawToast Bronze

          Check your error logs, this plugin still works. Sounds like a setup issue.

            • Re: openarchive 1.0.5 retrieving chat history
              Andrey Bronze

              Same problem

              Log:

              2011.10.04 10:04:44 [org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:69)] Internal server error

              java.lang.NullPointerException

              at com.reucon.openfire.plugin.archive.impl.JdbcPersistenceManager.getConversation( JdbcPersistenceManager.java:710)

              at com.reucon.openfire.plugin.archive.impl.JdbcPersistenceManager.getConversation( JdbcPersistenceManager.java:667)

              at com.reucon.openfire.plugin.archive.xep0136.IQRetrieveHandler.retrieve(IQRetriev eHandler.java:96)

              at com.reucon.openfire.plugin.archive.xep0136.IQRetrieveHandler.handleIQ(IQRetriev eHandler.java:33)

              at com.reucon.openfire.plugin.archive.xep0136.Xep0136Support$1.handleIQ(Xep0136Sup port.java:44)

              at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)

              at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:351)

              at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)

              at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)

              at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:319)

              at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler .java:79)

              at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:284)

              at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176)

              at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:133)

              at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570)

              at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

              at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

              at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

              at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)

              at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

              at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

              at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

              at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58)

              at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:185)

              at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

              at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

              at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

              at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)

              at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

              at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

              at java.lang.Thread.run(Thread.java:636)

            • openarchive 1.0.5 retrieving chat history
              Sumeet Guha Bronze

              Hi Gabriel,

               

              Can you please share that code with me, which used to get archived messages from xmpp server.

               

              Thanks,

              Sumeet.