Solved

Oracle Exhausted ResultSet

Posted on 2002-07-11
2
2,019 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

737 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