Forum Stats

  • 3,827,224 Users
  • 2,260,751 Discussions


Checkbox save issue: java.lang.String cannot be cast to oracle.jbo.RowIterator

MarkRJamieson Member Posts: 3
edited Oct 18, 2013 2:12AM in JDeveloper and ADF

Hi there,

I am using JDEV

My objective : " Inserting two new ADF checkbox components to the user interface called Qualifications.jsff "


1) These check-boxes both come from a VO called LsIndividual

2) Both check-boxes save to the format VarChar2(1) and are Strings

3) Selected value is Y, unselected value is N

4) There is a save button in the same context to commit these values to the DB

Once I have these components in the interface, I deploy and run the application. When I select the check-boxes and press Save, there is an error presented and it prevents me from committing these values to the DB.

The following is displayed in a text box titled Error:

java.lang.String cannot be cast to oracle.jbo.RowIterator

And here's an excerpt from the stack:

<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: java.lang.String cannot be cast to oracle.jbo.RowIterator

java.lang.ClassCastException: java.lang.String cannot be cast to oracle.jbo.RowIterator




  at oracle.jbo.server.EntityImpl.getAttribute(

  at oracle.jbo.server.ViewRowStorage.getAttributeInternal(

  at oracle.jbo.server.ViewRowImpl.getAttributeValue(

  at oracle.jbo.server.ViewRowImpl.getAttributeInternal(




  at oracle.jbo.server.ViewRowImpl.getAttribute(

  at oracle.jbo.uicli.binding.JUCtrlListBinding.updateValuesFromRow(

  at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateRow(

  at oracle.jbo.uicli.binding.JUIteratorBinding.notifyUpdateEvent(

  at oracle.adf.model.binding.DCIteratorBinding.rowUpdated(

  at oracle.jbo.common.RowSetHelper.fireRowUpdated(

  at oracle.jbo.server.ViewRowSetIteratorImpl.fireRowUpdated(

  at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowUpdated(

  at oracle.jbo.server.ViewRowSetImpl.notifyRowUpdated(

  at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(

  at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(

  at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(

  at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(

  at oracle.jbo.server.ViewObjectImpl.sourceChanged(

Other check-boxes within the same application are working fine, it's just the check-boxes on this page that I am having issues with.

Any advice or help is very welcome!




  • Frank Nimphius-Oracle
    Frank Nimphius-Oracle Member Posts: 29,689 Bronze Badge

    Hi, would have been good if you could reproduce this in a test case or at least have provided some sniptes showing your implementation. From the stack trace my thinking is that the value property of the check box is bound to an iterator instead of an attribute value binding. Debugging this class may also help   at  Frank

    GingerHeadFrank Nimphius-Oracle
  • 1012433
    1012433 Member Posts: 162


    First check the data type of that checkbox attribute field in DB and EO,VO's after that if both are same

    Go to fragment page and delete,After that drag that particular field from datacontrol and drop as checkbox in UI in that time one daiolgue is appeared

    You enter selected value and and unselected value.......then you can run your page.


  • Sorry about that Frank, I am new to the forum! I will chuck in a screen shot of the implementation and a test case for the page and what I am trying to achieve.

    The screen shot is in jdev because I can't give out a deployed image with real data in it for privacy reasons, but in the larger context outside of this jsff is the save and search buttons inside an action menu. I hope you understand.


    1) You are presented with a search screen to query for an Individual from a list of Individuals

    2) An Individual can have many associated Qualifications

    3) These Qualifications have an indId which connects them from LsQualifications to LsIndividual

    Test Case for adding Qualifications to an Invdividual

    1. Search for an individual

    2. Select Individual

    3. Select Qualifications tab

    4. In Qualification tab, press 'Add Admission'

    5. Enter an LPAB Number, check both checkboxes
    5. Select 'Date of Admission' from date select, 'Place of Admission' from list of values, Jurisdiction if applicable, Re-Admission Date if applicable and click the Comments icon to insert comments

    6. Click 'Action Options -> Save'
    7. Click 'Action Options -> Search ..', screen should navigate back to 'Individual Search' screen
    8. press Search, select an Individual, screen should navigate back to individual Maintenance

    I hope this helps more!

  • Unfortunately I have already followed that procedure a couple of times to no avail.
    I have also closely traced the implementation of the other check-boxes in this application and the error remains.

  • 1012433
    1012433 Member Posts: 162


    Post the "Label" and "Value" details from property inspector of particular field... and clarify one thing entire screenshot form having single vo or different?


This discussion has been closed.