-
Bug
-
Resolution: Fixed
-
Neutral
-
5.2.2
-
Mac - Mojave
Java 1.8
Tomcat 9.0.10
-
-
Empty show more show less
-
Yes
-
Yes
-
Maintenance 6
-
1
Issue:
Magnolia Solr Module Prevents 6.2 From Starting
I just did the 6.2 upgrade and it looks like the magnolia solr modules are preventing magnolia from starting up.
It successfully loads the workspaces but crashes immediately after when trying to instantiate info.magnolia.module.indexer.setup.ContentIndexerVersionHandler
2020-04-03 11:01:20,717 INFO info.magnolia.repository.DefaultRepositoryManager : Loading workspace visitors (logical name visitors). 2020-04-03 11:01:20,843 INFO info.magnolia.repository.DefaultRepositoryManager : Loading workspace rankings (logical name rankings). 2020-04-03 11:01:20,994 INFO info.magnolia.repository.DefaultRepositoryManager : Loading workspace messages (logical name messages). 2020-04-03 11:01:21,125 INFO info.magnolia.repository.DefaultRepositoryManager : Loading workspace category (logical name category). 2020-04-03 11:01:25,024 INFO info.magnolia.context.LifeTimeJCRSessionUtil : Will handle lifetime sessions because the system context is of type interface info.magnolia.context.ThreadDependentSystemContext 2020-04-03 11:01:33,485 WARN .manager.impl.error.filters.DBExecutionErrorFilter: Not able to find org.hibernate.HibernateException class 2020-04-03 11:01:34,973 ERROR info.magnolia.cms.beans.config.ConfigLoader : An unspecified error occurred during initialization: Failed to create instance of [class info.magnolia.module.indexer.setup.ContentIndexerVersionHandler] info.magnolia.objectfactory.MgnlInstantiationException: Failed to create instance of [class info.magnolia.module.indexer.setup.ContentIndexerVersionHandler] at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:138) ~[magnolia-core-6.2.jar:?] at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:120) ~[magnolia-core-6.2.jar:?] at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstance(GuiceComponentProvider.java:115) ~[magnolia-core-6.2.jar:?] at info.magnolia.objectfactory.Components.newInstance(Components.java:100) ~[magnolia-core-6.2.jar:?]
Workaround:
- https://documentation.magnolia-cms.com/display/DOCS62/Solr+module#Solrmodule-Installing
- Magnolia Core Compatibility module is required for 6.2.
Solution:
- We need to remove the dependency on old Content API in the new version. To remove the Content API:
- there's one update task PropertyExistsDelegateTask which needs to be just replaced by one based on Node API
- and one variable info.magnolia.module.indexer.IndexerConfig#content which can be simple removed - it's not used anymore
Acceptance criteria
- is related to
-
MGNLEE-606 Update parent pom for Solr module 5.2.2
- Closed
- relates to
-
MGNLEESOLR-141 Solr module update to support Solr 8.x
- Closed