Added exception catching to PostServlet.java