SQLException Closed Resultset

Hello
We are getting intermittent SQLException like Closed Resultset. We have Oracle 10g and using ojdbc14.jar. Find below the trace.

java.sql.SQLException: Closed Resultset: next
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:11
2)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:14
6)
at
oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:175
)
at
com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:2
859)
at
com.evant.em3.runtime.framework.domain.SqlExecutor.executeQuery(SqlExecu
tor.java:682)
at
com.evant.em3.runtime.framework.domain.SqlExecutor.executeQuery(SqlExecu
tor.java:628)

Some times we get a different trace

java.lang.NullPointerException at
com.mchange.v2.c3p0.impl.NewProxyStatement.getResultSet(NewProxyStatemen
t.java:430)
at
com.evant.em3.runtime.framework.domain.SqlExecutor.executeQuery(SqlExecu
tor.java:664)
at
com.evant.em3.runtime.framework.domain.SqlExecutor.executeQuery(SqlExecu
tor.java:628)
at
com.evant.em3.runtime.framework.domaintostorage.repository.RelationalPer
sistenceStrategy.executeQuery(RelationalPersistenceStrategy.java:152)
at