NullPointerExceptions in log files when JPP 6 is accessed before fully started

Solution Verified - Updated -

Issue

  • JPP throws NPE if a client tries to access /portal context during server startup. The NPEs occur after the server logs "Registering web context: /portal" until the portal EAR is completely deployed.
ERROR [org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl] (http-/127.0.0.1:8080-1) null: java.lang.NullPointerException
    at org.exoplatform.services.organization.idm.PicketLinkIDMServiceImpl.getIdentitySession(PicketLinkIDMServiceImpl.java:201) [exo.portal.component.identity-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]
    at org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl.startRequest(PicketLinkIDMOrganizationServiceImpl.java:139) [exo.portal.component.identity-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]
    at org.exoplatform.container.component.RequestLifeCycle.doBegin(RequestLifeCycle.java:57) [exo.kernel.container-2.4.1-GA-redhat-1.jar:2.4.1-GA-redhat-1]
    at org.exoplatform.container.component.RequestLifeCycleStack.begin(RequestLifeCycleStack.java:94) [exo.kernel.container-2.4.1-GA-redhat-1.jar:2.4.1-GA-redhat-1]
    at org.exoplatform.container.component.RequestLifeCycle.begin(RequestLifeCycle.java:107) [exo.kernel.container-2.4.1-GA-redhat-1.jar:2.4.1-GA-redhat-1]
    at org.exoplatform.container.component.RequestLifeCycle.begin(RequestLifeCycle.java:141) [exo.kernel.container-2.4.1-GA-redhat-1.jar:2.4.1-GA-redhat-1]
    at org.exoplatform.web.WebAppController.service(WebAppController.java:320) [exo.portal.component.web.controller-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]
    at org.exoplatform.portal.application.PortalController.onService(PortalController.java:108) [exo.portal.webui.portal-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]
    at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [exo.kernel.container-2.4.1-GA-redhat-1.jar:2.4.1-GA-redhat-1]
2016-03-23 12:53:38,221 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/tip].[portal]] (http-/0.0.0.0:8181-1) JBWEB000236: Servlet.service() for servlet portal threw exception: java.lang.NullPointerException
        at org.exoplatform.portal.application.PortalRequestContext.getUserPortalConfig(PortalRequestContext.java:268) [exo.portal.webui.portal-3.6.5.Final-redhat-1.jar:3.6.5.Final-redhat-1]
        at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:156) [exo.portal.webui.portal-3.6.5.Final-redhat-1.jar:3.6.5.Final-redhat-1]
        at org.exoplatform.web.WebAppController.service(WebAppController.java:340) [exo.portal.component.web.controller-3.6.5.Final-redhat-1.jar:3.6.5.Final-redhat-1]
        at org.exoplatform.portal.application.PortalController.onService(PortalController.java:110) [exo.portal.webui.portal-3.6.5.Final-redhat-1.jar:3.6.5.Final-redhat-1]
        at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [exo.kernel.container-2.4.7-GA-redhat-1.jar:2.4.7-GA-redhat-1]
...

Environment

  • Red Hat JBoss Portal
    • 6.0
    • 6.1
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content