java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.ResultSet.checkClosed(ResultSet.java:618) at com.mysql.jdbc.ResultSet.next(ResultSet.java:6043) at web.product.ProductDetail.doPost(ProductDetail.java:258) at web.product.ProductDetail.doGet(ProductDetail.java:58) at javax.servlet.http.HttpServlet.service(HttpServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:91) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607) at java.lang.Thread.run(Thread.java:662)