Tuesday, June 2, 2015

ADF: Adding the following JSF error message: IAM-3050157 : Unknown attribute for entity user. CREATEDBY

Steps to Reproduce -

1)  After UDF creation added in Create,View and modify form.
2) Create a user with some value in new UDF

While submitting the page we go the below error.

Error-

<May 20, 2015 1:27:26 AM EDT> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <BEA-000000> <ADF: Adding the following JSF error message: IAM-3050157 : Unknown attribute for entity user. CREATEDBY
oracle.iam.ui.platform.exception.OIMRuntimeException: IAM-3050157 : Unknown attribute for entity user. CREATEDBY
        at oracle.iam.ui.platform.exception.OIMErrorHandler.reportServiceException(OIMErrorHandler.java:171)
        at oracle.iam.ui.platform.exception.OIMErrorHandler.reportException(OIMErrorHandler.java:65)
        at oracle.adf.model.binding.DCDataControl.reportException(DCDataControl.java:411)
        at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:424)
        at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:479)
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlActionBinding.reportException(JUCtrlActionBinding.java:2036)
        at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1680)
        at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
        at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:760)
        at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:407)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
        at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBinding(FacesUtils.java:169)
        at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBindingFromActionListener(FacesUtils.java:116)
        at oracle.iam.ui.catalog.view.backing.CartReqBean.submit(CartReqBean.java:980)
        at oracle.iam.ui.catalog.view.backing.CartReqBean.submitActionListener(CartReqBean.java:919)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:187)

Solution :

Step 1)

export below 3 files and verify new attribute is added.

/metadata/iam-features-requestactions/model-data/ModifyUserDataset.xml
/metadata/iam-features-requestactions/model-data/CreateUserDataSet.xml
/file/User.xml

If newUDF is missing .. add new field and import the xml. If its already present then just follow next  step.


Step 2)

* Do the Purgecache.sh all
* Restart the browser and try creating new user.

Regards,
Arihant Baid