MDS-00168 error in Webcenter/ADF

W.Zh Feb 2014

For web center or ADF portal project, sometimes you see some pic or css or static file not not been load successfully when the page rendering, so just part or a page without style is displayed on browser.This issue happens especially after a redeploy, but not all the time.   When you go to WLS server log, you can see some thing like this:

oracle.mds.exception.MDSRuntimeException: MDS-00168: MDS object oracle.mds.core.MDSInstance@17ce029 is being used after it or its MDSInstance or PManager has been released.

This is caused by a oracle bug of 9034287, even they claim they have fixed that.


Add a filter to web.xml to solve this:

<filter>     <filter-name>ServletADFContextFilter</filter-name>     <filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>   </filter>   <!-- ... -->   <filter-mapping>     <filter-name>ServletADFContextFilter</filter-name>     <url-pattern>/*</url-pattern>     <dispatcher>REQUEST</dispatcher>     <dispatcher>FORWARD</dispatcher>   </filter-mapping>