Projects tigase _server server-core Issues #1251
Can't initialise MAM processor with default installation (#1251)
Closed
wojciech.kapcia@tigase.net opened 3 years ago
  • 8.2.0-SNAPSHOT-b11367
  • derby
  • defaults in the installer:
[2021-04-23 16:47:41:070] [WARNING ] [                  main ] Kernel.injectDependencies()      :


=====================
Could not initialize bean urn:xmpp:mam:2 (class: class tigase.archive.processors.MAM2Processor), skipping injection of this bean
RootCause:
   -> tigase.kernel.KernelException: Can't inject <null> to field tigase.archive.processors.AbstractMAMProcessor.messageArchivePlugin
      [tigase.kernel.core.Kernel.inject(Kernel.java:1190)]
=====================
wojciech.kapcia@tigase.net commented 3 years ago
wojtek@atlantiscity.local ~/dev/tmps/tigase-server-dists/tigase-issue #8.2.0-SNAPSHOT-b11367 $ cat etc/config.tdsl
admins = [
    'admin@atlantiscity'
]
'config-type' = 'default'
debug = [ 'server' ]
'default-virtual-host' = 'atlantiscity'
dataSource () {
    default () {
        uri = 'jdbc:derby:tigasedb;create=true'
    }
}
http () {}
'message-archive' (active: false) {}
pubsub () {
    trusted = [ 'http@{clusterNode}' ]
}
'sess-man' () {
    'urn:xmpp:mam:1' (active: false) {}
}
Andrzej Wójcik (Tigase) commented 3 years ago

I've fixed how default configuration is generated (to include MAM:2 and exclude disabled by default XEP-0136). I've also fixed MessageArchivePlugin to "enable" itself when only MAM:2 is enabled. That should fix the issue and make it work in all possible configuration options.

wojciech.kapcia@tigase.net commented 3 years ago

It works.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.2.0
Spent time
3h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1251
Please wait...
Page is in error, reload to recover