Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Oracle Exhausted ResultSet

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

Technology Partners: 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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

618 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