Project

General

Profile

Private chat message not storing

Vinoth Rajendran
Added about 4 years ago

I have Installed tigase 5.2.3. It has message archive plugin 1.0. And my init.properties files is,

--comp-class-1 = tigase.muc.MUCComponent

--comp-class-6 = tigase.muc.MUCComponent

--comp-class-5 = tigase.muc.MUCComponent

--virt-hosts = 192.168.1.94

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=root

--user-db = mysql

--admins = admin@192.168.1.94

--comp-name-4 = message-archive

--comp-name-3 = proxy

config-type = --gen-config-all

--comp-name-2 = pubsub

--comp-name-6 = conference

--comp-name-5 = channel

--comp-name-1 = muc

--cluster-mode = true

--sm-plugins = +message-archive-xep-0136

conference/default_room_config/conference#roomconfig_persistentroom=true

muc/default_room_config/muc#roomconfig_persistentroom=true

channel/default_room_config/channel#roomconfig_persistentroom=true

--debug = server, archive

--comp-class-4 = tigase.archive.MessageArchiveComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

--comp-class-2 = tigase.pubsub.PubSubComponent

--tigase.cache=true

muc/room-log-directory[S]=./logs/

message-archive/archive-repo-uri=jdbc:mysql://localhost/tigasedb?user=root&password=root

#message-archive/auto=true

sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body

sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@192.168.1.94

But messages are not stored. I want go for message archive plugin 1.0.1 snapshot, jar file has been copied to /jars/ and restarted. I cause error and could not get update version. has any one know hoe to updgrade message archive plugin 1.0.1 tigase.


Replies (5)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

What kind of error? There was a slight change in Message Archive schema since version 1.0.0 and current development version. The best option would be to simply install latest snapshot of Tigase 7.0.0 distribution.

Added by Vinoth Rajendran about 4 years ago

This exception i got when paste tigase-message-archiving-1.1.0-SNAPSHOT.jar in jars folder. And restart the server.

java.lang.NoClassDefFoundError: tigase/db/Repository

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at tigase.archive.MessageArchiveComponent.setProperties(MessageArchiveComponent.java:202)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addComponent(MessageRouter.java:118)

at tigase.server.MessageRouter.addRouter(MessageRouter.java:155)

at tigase.server.MessageRouter.setProperties(MessageRouter.java:797)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)

at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)

at tigase.server.XMPPServer.start(XMPPServer.java:142)

at tigase.server.XMPPServer.main(XMPPServer.java:112)

Caused by: java.lang.ClassNotFoundException: tigase.db.Repository

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at tigase.archive.MessageArchiveComponent.setProperties(MessageArchiveComponent.java:202)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addComponent(MessageRouter.java:118)

at tigase.server.MessageRouter.addRouter(MessageRouter.java:155)

at tigase.server.MessageRouter.setProperties(MessageRouter.java:797)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)

at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)

at tigase.server.XMPPServer.start(XMPPServer.java:142)

at tigase.server.XMPPServer.main(XMPPServer.java:112)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 4 years ago

So you are trying to user Tigase Message Archiving 1.1.0-SNAPSHOT which is designed to work only with Tigase XMPP Server 7.0.0-SNAPSHOT or above while running Tigase XMPP Server 5.2.3*. It is simply not possible as Tigase Message Archiving *1.1.0-SNAPSHOT requires Tigase XMPP Server 7.0.0-SNAPSHOT or newer.

With Tigase XMPP Server 5.2.3 you can only run Tigase Message Archiving 1.0.0 or 1.0.1

Added by Anonymous about 4 years ago

Hi,

Thanks for the update.

Is it possible to store messages for private chat in tigase 5.2.3 using Tigase

Message Archiving 1.0.0 or 1.0.1.

If yes where can I get Jar file Tigase Message Archiving 1.0.0 or 1.0.1.

On Tue, Jan 20, 2015 at 10:55 PM, support@tigase.org wrote:

Added by Wojciech Kapcia TigaseTeam about 4 years ago

This version hasn't been released, you would have to build it by yourself from this exact commit: https://projects.tigase.org/projects/message-archiving/repository/revisions/5b7e9a1d152acc8d7e924fe00f4e168f61de47ca

    (1-5/5)