?
Solved

Oracle Exhausted ResultSet

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

765 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