you need to add error handling to the Java action. You can right click on it and choose error handling.
then you need to right click the arrow you intend to use for error handling and set it as error handler.
Right click on the java action and choose Set error handling
And then choose Custom without rollback
Hope its much clear!