Bug fix: Java error does not warn with the original error message