v1.0.1 causes Error
After upgrading DMX 5.2 from dmx-file-upload v1.0 to v1.0.1 I get the following error:
INFO: ----- Activating plugin "DMX File Upload" -----
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.PluginImpl createPluginTopicIfNotExists
INFO: Installing plugin "DMX File Upload" in the database SKIPPED -- already installed
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.MigrationManager runPluginMigrations
INFO: Running 1 migrations for plugin "DMX File Upload" (installed model: version 0, required model: version 1)
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.MigrationManager$MigrationInfo readMigrationConfigFile
INFO: Reading migration config file "/migrations/migration1.properties" SKIPPED -- file does not exist
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.MigrationManager _runMigration
INFO: Running migration 1 of plugin "DMX File Upload" (runMode=ALWAYS, isCleanInstall=false)
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.MigrationManager injectServices
INFO: Injecting service systems.dmx.config.ConfigService into migration 1 of plugin "DMX File Upload"
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.MigrationManager _runMigration
INFO: Running plugin migration class systems.dmx.fileupload.migrations.Migration1
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.TypeStorage fetchTopicType
INFO: Fetching topic type "dmx.accesscontrol.username"
Aug 15, 2021 9:52:00 AM systems.dmx.config.ConfigPlugin _createConfigTopic
INFO: Creating config topic of type "dmx.files.disk_quota" for topic 3638
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.TypeStorage fetchTopicType
INFO: Fetching topic type "dmx.files.disk_quota"
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.ValueIntegrator unifySimple
WARNING: ValueIntegrator ambiguity: there are 5 readable "-1" topics (typeUri="dmx.files.disk_quota", [3641, 4336, 4236, 11763, 21629]) => using 3641
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.PluginImpl installPluginInDB
WARNING: ROLLBACK! (plugin "DMX File Upload")
Aug 15, 2021 9:52:00 AM systems.dmx.core.impl.PluginImpl$1 addingService
SEVERE:
java.lang.RuntimeException: Activating plugin "DMX File Upload" failed
at systems.dmx.core.impl.PluginImpl.activate(PluginImpl.java:522)
at systems.dmx.core.impl.PluginManager.activatePlugin(PluginManager.java:64)
at systems.dmx.core.impl.PluginImpl.checkRequirementsForActivation(PluginImpl.java:486)
at systems.dmx.core.impl.PluginImpl.access$100(PluginImpl.java:46)
at systems.dmx.core.impl.PluginImpl$1.addingService(PluginImpl.java:393)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
at systems.dmx.core.impl.PluginImpl.openServiceTrackers(PluginImpl.java:420)
at systems.dmx.core.impl.PluginImpl.start(PluginImpl.java:121)
at systems.dmx.core.osgi.PluginActivator.start(PluginActivator.java:56)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Installing plugin "DMX File Upload" in the database failed
at systems.dmx.core.impl.PluginImpl.installPluginInDB(PluginImpl.java:559)
at systems.dmx.core.impl.PluginImpl.activate(PluginImpl.java:509)
... 19 more
Caused by: java.lang.RuntimeException: Running migration 1 of plugin "DMX File Upload" failed
at systems.dmx.core.impl.MigrationManager.runMigration(MigrationManager.java:120)
at systems.dmx.core.impl.MigrationManager.runPluginMigrations(MigrationManager.java:67)
at systems.dmx.core.impl.PluginImpl.installPluginInDB(PluginImpl.java:548)
... 20 more
Caused by: java.lang.RuntimeException: Creating config topic of type "dmx.files.disk_quota" for topic 3638 failed
at systems.dmx.config.ConfigPlugin._createConfigTopic(ConfigPlugin.java:196)
at systems.dmx.config.ConfigPlugin.createConfigTopic(ConfigPlugin.java:118)
at systems.dmx.fileupload.migrations.Migration1.run(Migration1.java:31)
at systems.dmx.core.impl.MigrationManager._runMigration(MigrationManager.java:139)
at systems.dmx.core.impl.MigrationManager.runMigration(MigrationManager.java:113)
... 22 more
Caused by: java.lang.RuntimeException: Creating assoc of type "dmx.config.configuration" failed
at systems.dmx.core.impl.AccessLayer.createAssoc(AccessLayer.java:337)
at systems.dmx.core.impl.CoreServiceImpl.createAssoc(CoreServiceImpl.java:220)
at systems.dmx.core.impl.CoreServiceImpl.createAssoc(CoreServiceImpl.java:37)
at systems.dmx.config.ConfigPlugin.createConfigAssoc(ConfigPlugin.java:201)
at systems.dmx.config.ConfigPlugin.lambda$_createConfigTopic$1(ConfigPlugin.java:186)
at systems.dmx.core.util.ContextTracker.run(ContextTracker.java:20)
at systems.dmx.core.impl.PrivilegedAccessImpl.runInWorkspaceContext(PrivilegedAccessImpl.java:353)
at systems.dmx.config.ConfigPlugin._createConfigTopic(ConfigPlugin.java:185)
... 26 more
Caused by: java.lang.RuntimeException: Duplicate: such an association exists already, AssocModelImpl {
"id": -1,
"typeUri": "dmx.config.configuration",
"children": {},
"player1": {
"topicId": 3638,
"roleTypeUri": "dmx.config.configurable"
},
"player2": {
"topicId": 3641,
"roleTypeUri": "dmx.core.default"
}
}, existing assoc=AssocModelImpl {
"id": 3644,
"uri": "",
"typeUri": "dmx.config.configuration",
"value": "",
"children": {},
"player1": {
"topicId": 3641,
"roleTypeUri": "dmx.core.default"
},
"player2": {
"topicId": 3638,
"roleTypeUri": "dmx.config.configurable"
}
}
at systems.dmx.core.impl.AssocModelImpl.duplicateCheck(AssocModelImpl.java:411)
at systems.dmx.core.impl.AssocModelImpl.preCreate(AssocModelImpl.java:315)
at systems.dmx.core.impl.AccessLayer.createAssoc(AccessLayer.java:322)
... 33 more