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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.2.3
    • Labels:
    • Environment:
      Mac - Mojave
      Java 1.8
      Tomcat 9.0.10
    • Release notes required:
      Yes
    • Documentation update required:
      Yes
    • Sprint:
      Maintenance 6
    • Story Points:
      1

      Description

      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

        Checklists

        Acceptance criteria

          Attachments

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

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                    Checklists

                    Bug DoR
                    DoD