io.temporal.workflow.Workflow.newTimer(Duration.parse("PT5S")); raises exception

I did the same change to the HelloAtivity and it runs fine for me. Would you point me to the repository with the code that reproduces your issue?