Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[Solved] 27.8.4 How to Create a VO on a REF CURSOR - Missing first row

kleeMay 1 2007 — edited May 2 2007
Searching the forum I found: 1642868
555297
The first message did not have any answers, and the second had a follow up question - still no answers though - and I thought I would try a different title.

(This is off topic, but it would be a great help if the search results also displayed the number of replys in the thread. That way, I wouldn't have to view the messages that don't have responses.)

(This will be deployed on a server that has the ADF for JDeveloper 10.1.2 installed, so using that version of JDeveloper to develop the app.)

Okay, back to the problem ==>
I created a VO from a ref cursor, using the manual as a guide. When I run a page that displays a read only table of the view object, I am missing the first row. (Always the first row!) I don't have any order set, and if I call the ref cursor in a Java program for testing, I see all rows and the count is correct.

One other point, when I call the page, I get the following validation error:
Validation Error
You must correct the following error(s) before proceeding:

* JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=null
* null

I still see the table, it is just missing the first row of data.

In my form I have first, previous set, next set , and last
navigation buttons. If I press last then first, the error goes away. I still don't see the missing row though.

Any guidance would be appreciated! I can post my code, but it is pretty much the same code in the AdvancedViewObjectExamples.zip in the ViewObjectOnRefCursor example. I just substituted my two package calls (getRefCursor and getRefCursorCount).

Thanks, Ken
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2007
Added on May 1 2007
4 comments
1,813 views