Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-140

Magnolia Solr Module Prevents 6.2 From Starting - remove Content API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.2.3
    • 5.2.2
    • Mac - Mojave
      Java 1.8
      Tomcat 9.0.10
    • 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:

      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

          1. webapp-pom.xml
            3 kB
          2. parent-pom.xml
            3 kB
          3. dependencyTree.txt
            48 kB
          4. core-pom.xml
            4 kB

              mdivilek Milan Divilek
              aplouff Alex Plouff
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD