Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-2026

Adding custom index-rule to the indexing_configuration.xml breaks repository startup

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • jackrabbit-2.16.1-h1
    • jackrabbit-2.16.1-h2
    • None
    • None
    • Platform 183

    Description

      This is a possible reproduction path:

      1) Create the project using the hippo maven archetype based on 12.2.1 or 12.3.0
      2) Install the news plugin via essentials 
      3) Change the configuration of the project, using an external repository.xml and indexing_configuration.xml
      4) Include in the new indexing_configuration.xml an index-rule referred the news document type, like this     

       

      <!-- Remember to add the namespace xmlns:myhippoproject="http://www.onehippo.org/myhippoproject/nt/1.0" to the configuration tag -->
      
      <index-rule nodeType=“myhippoproject:newsdocument”>
      </index-rule>

       
      After restarting the project, I get this error:

       

       

      [INFO] [talledLocalContainer] 22.05.2018 10:01:44 WARN  localhost-startStop-1 [SearchIndex.createIndexingConfiguration:1344] Exception initializing indexing configuration from: file:///tmp/indexing_configuration.xml
      [INFO] [talledLocalContainer] javax.jcr.nodetype.NoSuchNodeTypeException: {http://www.onehippo.org/myhippoproject/nt/1.0}newsdocument
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getNodeTypeDef(NodeTypeRegistry.java:552) ~[jackrabbit-core-2.16.1-h1.jar:2.16.1-h1]
      

       

      Here indexing_error.log you can find the full stack trace

      Moreover, I've created an empty project, called indexing-issue, replicating the issue. You can find it here

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              glamonaco Giacomo Lamonaco
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: