NullPointerException OR Java.lang.ClassCastException: Oracle.mds.core.MetadataObject Exception When Using WebCenter Portal APIs from JDeveloper with 11.1.1.8.x WebCenter Portal Extension (Doc ID 1678307.1)

Last updated on NOVEMBER 21, 2016

Applies to:

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

Symptoms

 

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? ????. ? ?? ??? ?? ?? ?? ???? ?? ?????. ??? ?? ??? ??? ??? ?? ??? ??? ??????.
java.lang.NullPointerException
    at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPhaseListener.beforePhase(WebCenterShellPhaseListener.java:171)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:378)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)........

  

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 11.1.1.6.
JDeveloper was upgraded to 11.1.1.7 with WebCenter extension 11.1.1.8.

After deploying the upgraded application the following error is generated:

 

WC_CustomPortal-diagnostic.log:

  


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.

 

Cause

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