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!

Exception:cannot be cast to oracle.jbo.uicli.binding.JUCtrlValueBindingRef

830711Jan 12 2011 — edited Jan 13 2011
Hi all,

Please help -
I got this exception when try to retrieve a table row from my backing bean:
Caused by: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding cannot be cast to oracle.jbo.uicli.binding.JUCtrlValueBindingRef

The line of code in the backing bean caused the error:
oracle.jbo.uicli.binding.JUCtrlValueBindingRef tableRowRef = (oracle.jbo.uicli.binding.JUCtrlValueBindingRef) this.getTable1().getRowData();

What bugs me is that the same code works fine in another page's backing bean (see *1) and I can't find out the difference.
My environment:
I am using JDeveloper 11. The application I am working on was migrated from a JDeveloper 10g app, so the components are mostly Trinidad. We had to do a lot adjustment to get that app to work in 11g. The working page I mentioned above was done in 10g app (*1).
I am now adding more things into this app. The app's setup is EJB session beans and Trinidad components now.
In the jspx page, I have a table which was made up with a view from the database (NOT VO). I have a command link in a column in that table, and would like to get a Id from the row in the table. The line of code causes error above is in the command link's action method.

Please help if you have any clue.
Thanks a lot!
Sophia

Edited by: user12876081 on Jan 12, 2011 2:40 PM
This post has been answered by Frank Nimphius-Oracle on Jan 13 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2011
Added on Jan 12 2011
2 comments
663 views