Update MiningServlet.java

fix connection exception