[java] How to deal with the URISyntaxException