Surrouding the setURLStreamHandlerFactory call in a try/catch block in order to stop the error thrown from interrupting the process since the error is not fatal to the overall program.