[hmm] handle java exception and reraise as RuntimeError