Sunday, September 25, 2016

Exception When Opening a User view page After Upgrading Oracle Identity Manager from OIM R2 PS1 to OIM R2 PS3

Steps to Reproduce :

1) Upgrade OIM R2 PS1 to OIM R2 PS3
2) Bring up the servers Weblogic, SOA and OIM
3) Login on Identity page and click on any existing user or create any new and click view page
4) On view page you will get "JBO-26000: A Generic exception occurred during loading Customizations"


Enable the below logger.

oracle.jbo logger on trace32

Steps the resolve this issue:


1) Please download oracle.iam.console.identity.self-service.ear_V2.0_metadata.zip from weblogic EM console by using below steps,

a) Login to Weblogic EM console --> Expand "Application Deployments" --> oracle.iam.console.identity.self-service.ear(V2.0) (sever1) --> from right side click on "Application Deployments" drop down --> click on " MDS Configuration" --> Select "Export metadata documents to an archive on the machine where this web browser is running." and click on "Export". You will get file "oracle.iam.console.identity.self-service.ear_V2.0_metadata.zip" locally.

2) Take a backup of above file to some other location locally 

3) Unzip above file, navigate to "\oracle.iam.console.identity.self-service.ear_V2.0_metadata\oracle\iam\ui\manageusers\pages\mdssys\cust\site\site" location 

4) Remove reference tag of "Description" both XML's i.e userdetails.jsff.xml, userdetailsPageDef.xml.xml 

Remove following entries from userdetails.jsff.xml, userdetailsPageDef.xml.xml 

userdetailsPageDef.xml.xml

<mds:insert
parent="userdetailsPageDef(xmlns(mds_ns1=http://xmlns.oracle.com/adfm/uimodel))/mds_ns1:bindings" position="last">
<attributeValues IterBinding="UserVO1Iterator" id="description"
xmlns="http://xmlns.oracle.com/adfm/uimodel">
<AttrNames>
<Item Value="description"/>
</AttrNames>
</attributeValues>
</mds:insert>
.
and the following from user-details.jsff

<mds:insert parent="pfl3" position="last">
<af:panelLabelAndMessage xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
label="#{bindings.description.hints.label}" id="dtrt_dc_9587735860">
<af:outputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
value="#{bindings.description.inputValue}"/>
</af:panelLabelAndMessage>
</mds:insert>


5) Zip the file again as like earlier folder structure and naming convention. 

6) Import the ZIP file again to env.

a) Login to Weblogic EM console --> Expand "Application Deployments" --> oracle.iam.console.identity.self-service.ear(V2.0) (sever1) --> from right side click on "Application Deployments" drop down --> click on " MDS Configuration" --> Select "Import metadata documents from an archive on the machine where this web browser is running." --> select new ZIP file and Import to env.

7) After successful import. Please stop all servers including managed servers and remove contents in tmp, cache, stage folders 

8) Restart all the servers 

9) Finally Test and let us know if issue further persistence. 


Thanks,
Arihant Baid