Exception Error: Oak Index definition coming back as oak2:index | Community
Skip to main content
May 4, 2023
Solved

Exception Error: Oak Index definition coming back as oak2:index

  • May 4, 2023
  • 1 reply
  • 1012 views

I'm getting a strange error below for a brand new enumerated oak:index path in crx as oak0:index or oak2:index.

 

I been following https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en# to configure the custom index for my index definitions. Below I'm getting this error which doesn't make sense since my filter.xml and .content.xml has the same value that differs from the logs:

 

03.05.2023 15:19:34.007 *ERROR* [OsgiInstallerImpl] org.apache.jackrabbit.vault.fs.impl.io.DocViewImporter Error during processing of /oak:index/inRiverConnectorIndexd-1-custom-1: javax.jcr.PathNotFoundException: /oak2:index
03.05.2023 15:19:34.008 *ERROR* [OsgiInstallerImpl] org.apache.jackrabbit.vault.fs.io.Importer E /oak:index/inRiverConnectorIndex-1-custom-1 (javax.jcr.PathNotFoundException: /oak2:index)

 

First I don't know where the 'd' in /oak:index/inRiverConnectorIndexd-1-custom-1 is coming from since it's set correctly. Second I don't understand the reason for this new root oak2:index path being created and then throwing an error

For reference, I setup the POM files as instructed and the filter is looking for ui.apps\src\main\content\META-INF\vault\filter.xml with the added filter:

<filter root="/oak:index/outboundConnectorIndex-1-custom-1"/>

 

 Also I set up the correct index path formatted as ui.apps\src\main\content\jcr_root\_oak_index\outboundConnectorIndex-1-custom-1\.content.xml containing the proper definitions:

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:oak="https://jackrabbit.apache.org/oak/ns/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal" jcr:primaryType="nt:unstructured"> <outboundConnectorIndex jcr:primaryType="oak:QueryIndexDefinition" compatVersion="{Long}2" type="lucene" async="[async,nrt]" includedPaths="[/content/dam]" queryPaths="[/content/dam]"> <indexRules jcr:primaryType="nt:unstructured"> <dam:Asset> <properties> <sendToOutbound jcr:primaryType="nt:unstructured" name="jcr:content/metadata/certcel:sendToOutbound"/> <removeFromOutbound jcr:primaryType="nt:unstructured" name="jcr:content/metadata/certcel:removeFromOutbound"/> </properties> </dam:Asset> </indexRules> </outboundConnectorIndex> </jcr:root>

Can anyone point out the reason for the error above and why it isn't being added to /oak:index?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by rawvarun

Add the below lines in config.xml of oak:index :

<tika jcr:primaryType="nt:unstructured"> <config.xml jcr:primaryType="nt:file"> <jcr:content jcr:primaryType="nt:unstructured"/> </config.xml> </tika>

 

1 reply

rawvarun
Community Advisor
rawvarunCommunity AdvisorAccepted solution
Community Advisor
May 15, 2023

Add the below lines in config.xml of oak:index :

<tika jcr:primaryType="nt:unstructured"> <config.xml jcr:primaryType="nt:file"> <jcr:content jcr:primaryType="nt:unstructured"/> </config.xml> </tika>