?
Solved

Oracle Exhausted ResultSet

Posted on 2002-07-11
2
Medium Priority
?
2,084 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 1600 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

809 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