MySQL Connector/J

You may get java.lang.AbstractMethodError: com.mysql.jdbc.ResultSet.isClosed() or java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.isClosed() when you are working in Glassfish with MySQL Connector/J 5.0.4 (This MySQL Connector will be available with MySQL 5 installation).

The work around for this is to use the latest MySQL Connector. I used MySQL Connector/J 5.1.7