matching error message from native java