NullPointerException OR Java.lang.ClassCastException: Oracle.mds.core.MetadataObject Exception When Using WebCenter Portal APIs from JDeveloper with WebCenter Portal Extension

(Doc ID 1678307.1)

Last updated on NOVEMBER 21, 2016

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.



Symptom 1 Symptom 2

The following exception is shown when trying to use the WebCenter Portal APIs from JDeveloper:

<LifecycleImpl> <_handleException> ADF_FACES-30200:PhaseId RESTORE_VIEW 1 ? ???? ?? ??? ??????. UIViewRoot? ????. ? ?? ??? ?? ?? ?? ???? ?? ?????. ??? ?? ??? ??? ??? ?? ??? ??? ??????.
    at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPhaseListener.beforePhase(
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(
    at javax.faces.webapp.FacesServlet.service(
    at weblogic.servlet.internal.StubSecurityHelper$
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
    at weblogic.servlet.internal.ServletStubImpl.execute(
    at weblogic.servlet.internal.TailFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(


The following documentation was used:
Fusion Middleware Developing Portals with Oracle WebCenter Portal and Oracle JDeveloper
56.1.4 How to Set Up Your Framework Application to Use the WebCenter Portal API

A custom WebCenter Portal application developed using JDeveloper
JDeveloper was upgraded to with WebCenter extension

After deploying the upgraded application the following error is generated:




Re-starting the Custom Portal Managed Server, the application then works fine.
However, the Custom Managed Server needs to be re-started after every deployment for the application.



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