Improve java/jabref error messages