Solved

Oracle Exhausted ResultSet

Posted on 2002-07-11
2
1,992 Views
Last Modified: 2012-08-13
Hey Everybody,

I'm currently building a web-application using JSP 1.1 and BC4J with deployment on OC4J 1.0.2.2. As IDE I use JDeveloper 3.2.3

In testing my clients receive the following error.

oracle.jbo.AttributeLoadException: JBO-27021: Failed to load CustomDatum value at index 1 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
      at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:769)
      at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1180)
      at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:1528)
      at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:859)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:1697)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1089)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:981)
      at oracle.jbo.server.QueryCollection.size(QueryCollection.java:648)
      at oracle.jbo.server.QueryCollection.getRowCount(QueryCollection.java:877)
      at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1078)
      at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:3865)
      at be.cronos.dbwise.jbo.MultiRecordHandler.setFRest(MultiRecordHandler.java:322)
      at be.cronos.dbwise.datatags.MultiRecordHandlerTag.doStartTag(MultiRecordHandlerTag.java:122)
      at _maretours._parameters._parameters._jspService(_parameters.java:442)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
      at oracle.jsp.JspServlet.service(JspServlet.java:148)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
      at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
## Detail 0 ##
java.sql.SQLException: Exhausted Resultset
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285)
      at oracle.jdbc.driver.OracleStatement.prepare_for_new_get(OracleStatement.java:2693)
      at oracle.jdbc.driver.OracleStatement.getBytesValue(OracleStatement.java:3831)
      at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:362)
      at oracle.jbo.domain.Number$1$facClass.createDatum(Number.java:79)
      at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:753)
      at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1180)
      at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:1528)
      at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:859)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:1697)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1089)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:981)
      at oracle.jbo.server.QueryCollection.size(QueryCollection.java:648)
      at oracle.jbo.server.QueryCollection.getRowCount(QueryCollection.java:877)
      at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1078)
      at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:3865)
      at be.cronos.dbwise.jbo.MultiRecordHandler.setFRest(MultiRecordHandler.java:322)
      at be.cronos.dbwise.datatags.MultiRecordHandlerTag.doStartTag(MultiRecordHandlerTag.java:122)
      at _maretours._parameters._parameters._jspService(_parameters.java:442)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
      at oracle.jsp.JspServlet.service(JspServlet.java:148)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
      at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)

Does anybody know what could cause this error and if possible how I can avoid getting this error in the
future.

Thanks in advance,

Bart Laeremans

0
Comment
Question by:Visioner
  • 2
2 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 400 total points
ID: 7148524
 This exception means that the Oracle result set you are using is closed and it happens when you issue a query and then close the statement before you actually use the ResultSet.

  The Oracle driver might not like multiple requests on the same statement so try to open a new statement before each request and then close it after use (and try mainly not to mix update and select statements).

  Hoep it helps.
0
 
LVL 35

Expert Comment

by:girionis
ID: 8917289
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to girionis

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now