catch and print Exceptions in JavaCompositionTest