Empty pipeline after java service exception.


I’m facing an issue when calling a java service within flow and the java service throws a new ServiceException, the entire pipeline vanishes after the call. Within the flow i was able to fetch the error thrown using pub.flow.getlasterror in my catch block however the pipleline within getlasterror object is still empty. Is there a way to retrieve the pipeline or preserve the pipeline when such an exception happens?

Thank you.

Some of the ways to get the error,

  1. Use a catch statement in the Java service and print out the error stack to a pipeline variable.
  2. Use Designer and generate some break points in the java service and generate code to debug this service and step in to it.
  3. Check the error logs.