Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page section details common errors that you may encounter when using the Groovy stage and resolutions. You should look for the Caused by: in the AspireException to aid troubleshooting.

No such property: bh for class

The following error was caused by an incorrect Groovy component configuration:

...

Code Block
languagexml
<component name="SplitEndecaFileAndFeedIndividualDocs" subType="default" factoryName="aspire-groovy">
	<config>
		<script>
			<![CDATA[
            	.
             	.
             	AspireDocument subDoc = new AspireDocument();
             	subDoc.add("text", outputBuffer.toString());  
             	Job subJob = job.createSubJob(subDoc, job.getJobId() + "-" + subjobCount);
             	bh.enqueue(subJob, "onPublish");
             	.
             	.
           	]]>
		</script>
		<!-- Correctly placed <branches> configuration below -->
		<branches>
			<branch event="onPublish" pipelineManager="../PrintDocDontIndex" />
		</branches>
	</config>
</component>

 

...