• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQLException Closed Resultset

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Any guidance on fixing this would really help

Thanks
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you ruled out obvious causes yet such as the connection timing out or not always closing your resources?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another possibility is connections, or result sets, being accidentally shared between threads.
reply
    Bookmark Topic Watch Topic
  • New Topic