Errors JBO-25058 & ADF_Faces-60097 When Expanding a Tree Table After Having Sorted It.

(Doc ID 1308791.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.0.0 and later
Information in this document applies to any platform.

Symptoms

You have created an ADF BC/Faces application.
In one of your ADF Faces page, you have created an af:treeTable.
As you want the end users to be able to sort the tree, you have defined the properties:

sortable="true" sortProperty="<AttributeName>"


Tested separately, sorting and expanding the Tree work correctly.
But if you try to expand the tree after it was sorted, you get errors JBO-25058 ADF_Faces-60097
as shown in the following dialog (in this case, the "<AttributeName>" is "DepartmentName"):


with the following stack trace shown in the Log window:

<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
oracle.jbo.NoDefException: JBO-25058: Definition DepartmentName of type Attribute is not found in DepartmentsView_EmployeesView_DeptsToEmpVL_EmployeesView.
    at oracle.jbo.server.ViewObjectImpl.findAttributeDef(ViewObjectImpl.java:7007)
    at oracle.jbo.common.JboEnvUtil.applyVOSortCriteria(JboEnvUtil.java:998)
    at oracle.adf.model.bc4j.DCJboDataControl.applySortCriteria(DCJboDataControl.java:2635)
    at oracle.adf.model.binding.DCIteratorBinding.applySortCriteria(DCIteratorBinding.java:3741)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._setSortCriteria(FacesCtrlHierBinding.java:439)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._applySortCriteria(FacesCtrlHierBinding.java:466)
...

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms