Error retrieving precedence rules – JsonParseException: Unexpected character (\’<\' (code 60)): expected a valid value

I got the following error while running the baseline update:

12.06.19 16:29:12] INFO: Starting baseline CAS crawl with id ‘MyAppen-last-mile-crawl’.

[12.06.19 16:29:12] SEVERE: Error starting baseline crawl ‘MyAppen-last-mile-crawl’.

Occurred while executing line 11 of valid BeanShell script:



8|      Dgidx.cleanDirs();


10|      // run crawl and archive any changes in dvalId mappings

11|      CAS.runBaselineCasCrawl(“MyAppen-last-mile-crawl”);

12|      CAS.archiveDvalIdMappingsForCrawlIfChanged(“MyAppen-last-mile-crawl”);


14|      // archive logs and run the indexer




And following is the error in cas-service.log file :

Caused by: com.endeca.itl.executor.FatalExecutionException: Error retrieving precedence rules from the config repository

at com.endeca.itl.executor.output.mdex.MdexConfiguration.retrieveAndValidatePrecedenceRules(

at com.endeca.itl.executor.output.mdex.MdexConfiguration.<init>(

at com.endeca.itl.executor.output.mdex.FullMdexOutputHandler.<init>(

at com.endeca.itl.executor.output.mdex.MdexOutputSink.prepareForAcquisition(

at com.endeca.itl.executor.Pipeline.start(

… 53 more

Caused by: org.codehaus.jackson.JsonParseException: Unexpected character (‘<‘ (code 60)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’)

at [Source: org.apache.http.conn.EofSensorInputStream@312795cf; line: 6, column: 2]

at org.codehaus.jackson.JsonParser._constructError(

at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(

at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(

at org.codehaus.jackson.impl.Utf8StreamParser._handleUnexpectedValue(

at org.codehaus.jackson.impl.Utf8StreamParser._nextTokenNotInObject(

As it says error retrieving precedence rules. That means precedence rules config is not setup correctly. If you have an export of precedence rules from the current app or some other app you want to replicate precedence rules from and run following

<app-folder>/control/ IFCR importContent precedenceRules /tmp/import/precedenceRules/

Else you can create one fresh refer to following document : Endeca Precedence Rules to create the precedence rules directory and then import using command I mentioned above.



Mayank Batra

Leave a Reply