Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I prevent Jython exception from stopping the pipeline?

When I get an exception in my Jython Processor, the Pipeline terminates. I would like to capture the exception and write to log (am doing this), but then I want the pipeline to move on to the next record.

In my Jython now, I have a try...except per the documentation, but any exception halts the entire pipeline.

try:
...
except Exception as e:
  error.write(record, str(e))

How can I prevent Jython exception from stopping the pipeline?

When I get an exception in my Jython Processor, the Pipeline terminates. I would like to capture the exception and write to log (am doing this), but then I want the pipeline to move on to the next record.

In my Jython now, I have a try...except per the documentation, but any exception halts the entire pipeline.

try:
...
except Exception as e:
  error.write(record, str(e))