HCL Commerce Version 9.1.15.0 or later

Troubleshooting: CustomFieldDocumentProcessor.java compilation error

Compiling with the same version of a commerce-search-processor artifact as the search bundle project throws a compilation error.

Problem

When creating a custom NiFi processor using the procedure described in the tutorial step Create and deploy a custom NiFi processor, and building the package with a version of CustomFieldDocumentProcessor.java from the default Maven repository, compilation errors occur. These errors are seen in some projects and not in others.

Solution

If a particular artifact, such as a .jar file, is causing compilation errors, substitute a higher or lower version of the file in the process. In most cases, using a different version resolves the errors.