NullPointerException in oracle.adf.share.http.HttpUtil.getAttribute(HttpUtil.java:112) (Doc ID 1181043.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version: 11.1.1.3.0 and later   [Release: No Release Description and later ]
Information in this document applies to any platform.

Symptoms

Running an ADF Faces 11.1.1.3.0 application fails randomly with the following NullPointerException
in oracle.adf.share.http.HttpUtil.getAttribute()
WatchData: DATE = 09-08-2010 22:35:26 CEST SERVER = hrl_test MESSAGE = [ServletContext@1942922204[app:hrlon_consumer module:hrlon path:/hrlon spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at oracle.adf.share.http.HttpUtil.getAttribute(HttpUtil.java:112)
at oracle.adf.share.http.ServletContextScopeAdapter.get(ServletContextScopeAdapter.java:239)
at oracle.adf.controller.binding.BindingUtils.isBindingContextPresent(BindingUtils.java:37)
at oracle.adfinternal.controller.application.model.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:88)
at org.apache.myfaces.trinidad.webapp.ResourceServlet.service(ResourceServlet.java:157)
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.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


This happens when running the application from JDeveloper in the Integrated WebLogic Server and in a Standalone WebLogic Server 10.3.3

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