Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

OIM11gR2- Removing Default Localized Error Message- “ Localized message not available. ” for Request Form Validation

$
0
0

When we throw exceptions while validating request form fields, the error message by default gets appended by a text- “Localized message not available. Error returned is: ".  The reason for this is- when we throw an exception in the code and don't have an error code defined in there then the request handler assumes "IAM-0120023" as the default error code and appends your message with the message corresponding to this error code.

There may be requirement to remove default text -“Localized message not available.” , from the error message pop up.

Steps to remove text –“Localized message not available.” from properties file

1) Stop OIM managed server

2) Take the backup of apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.view.war and     /apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.model.ear

3) In the following files:

a.apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.view.war/WEB-INF/lib/oracle/iam/ui/platform/model/resources/adflibPlatformModel.jar/Logging.properties

b.apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.view.war/WEB-INF/lib/oracle/iam/ui/platform/model/resources/adflibPlatformModel.jar/Logging_en.properties

c./apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.model.ear/APP-INF/lib/adflibPlatformModel.jar/oracle/iam/ui/platform/model/resources/Logging.properties

d./apps/products/Oracle/Middleware/Oracle_IAM1/server/apps/oracle.iam.ui.model.ear/APP-INF/lib/adflibPlatformModel.jar/oracle/iam/ui/platform/model/resources/Logging_en.properties

Search for the text- “Localized message not available.” and remove it from the above files.


4) Clear /cache and /tmp directories in /apps/domains/oimDomain/servers/oim_server1

5) Start OIM managed server

6) Provision App Instance and test your validations. The error message should show up without the text- “Localized message not available”

NOTE:- This solution is patch safe and will not be wiped off in case a patch is applied ( unless the patch itself touches property files which is very rare. So, read the patch document to ensure this change will remain unaffected)


Viewing all articles
Browse latest Browse all 19780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>