nussknacker icon indicating copy to clipboard operation
nussknacker copied to clipboard

Standalone - test from file - exceptions from ServiceWithExplicitMethod.invokeService() are not logged

Open raphaelsolarski opened this issue 4 years ago • 0 comments

Describe the bug Standalone - test from file - exceptions thrown directly from ServiceWithExplicitMethod.invokeService() are not logged. This makes error searching very difficult and requires uploading the model with its own catching+logging of exceptions (thrown during Future construction).

To Reproduce

  1. Create model with ServiceWithExplicitMethod which throws RuntimeException in invokeService().
  override def invokeService(params: List[AnyRef])(implicit ec: ExecutionContext, collector: InvocationCollectors.ServiceInvocationCollector, metaData: MetaData): Future[AnyRef] = {
    throw new RuntimeException("Some exception") // this won't be logged at all
    // Future.failed(new RuntimeException("Some exception")) // this would be logged
  }
  1. Create proces source -> service -> sink.
  2. Run test from file.

Environment (please complete the following information):

  • OS: MacOS 10.15.4
  • Nussknacker version: 2020_03_27_09_39-master-b40a2f0b04959c427add4465f58f0ab57c19aabb-SNAPSHOT
  • Java version 1.8
  • Scala version: 2.12.10
  • Nussknacker standalone

raphaelsolarski avatar May 06 '20 11:05 raphaelsolarski