Null Pointer Exceptions with Faces Portlets (Doc ID 1297862.1)

Last updated on JULY 10, 2017

Applies to:

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

Symptoms

NullPointerExceptions with JSF portlets resulting in runtime errors.

Below are the exceptions which can occur:

<Jan 12, 2011 7:19:22 PM CST> <Error> <netuix> <BEA-423405> <An exception [java.lang.NullPointerException] was thrown while rendering the content at [/faces/example.faces].
javax.faces.FacesException: java.lang.NullPointerException
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:420)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)



java.lang.NullPointerException
at com.bea.portlet.adapter.faces.FacesContentStubImpl.save(FacesContentStubImpl.java:483)
at com.bea.portlet.adapter.faces.FacesContentStubImpl.processAction(FacesContentStubImpl.java:281)
at com.bea.netuix.servlets.controls.content.FacesContent.raiseFacesAction(FacesContent.java:257)
at com.bea.netuix.servlets.controls.content.FacesContent.preRender(FacesContent.java:206)
at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)



java.lang.NullPointerException
at com.bea.portlet.adapter.faces.FacesPortletState.getClientIds(FacesPortletState.java:74)
at com.bea.portlet.adapter.faces.FacesContentStubImpl.restore(FacesContentStubImpl.java:436)
at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:331)
at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:420)



java.lang.NullPointerException
at javax.faces.render.Renderer.convertClientId(Renderer.java:192)
at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:301)
at com.bea.portlet.adapter.faces.component.naming.NamingContainerComponent.getClientId(NamingContainerComponent.java:107)
at javax.faces.component.UIComponent.getContainerClientId(UIComponent.java:374)
at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:279)
at com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:364)
at com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:366)
at com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:366)
at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:243)
at javax.faces.application.StateManager.saveView(StateManager.java:166)

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