PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40087

NullPointerException thrown for com.liferay.portal.kernel.servlet.HttpSessionWrapper.getAttribute(HttpSessionWrapper.java:33)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.2.0 CE B3
    • Fix Version/s: None
    • Component/s: DM
    • Environment:
      Portal 6.2.0 CE B3 bundled with Tomcat 7.0.40, Linux Mint 15 3.8.0-23-generic, Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
    • Similar Issues:
      Show 5 results 

      Description

      NullPointerException has been thrown for com.liferay.portal.kernel.servlet.HttpSessionWrapper.getAttribute(HttpSessionWrapper.java:33). Exception details are below.

      I made a screencast how I reproduce this issue: http://www.youtube.com/watch?v=ZAJ-pSGmBo8&hd=1

      • video created with default Liferay settings after first start with basic configuration without portal-ext.properties
      • exception can be seen after operation between 1:49 - 3:14 in the video

      Steps to reproduce:
      1) Setup clean Liferay Portal, go through basic configuration
      2) Navigate to Control Panel and return back
      3) Deploy Documents and Media portlet
      4) Choose option Add / Add basic document
      Expected result: The upload form correctly shows
      Actual result: The upload form shows but there is a strange graphical artefact at the top of the page and there are exceptions in the log file

      When I continue and upload document, document is not being uploaded althought message shows in UI that it has been uploaded (at 4:21 in the video).

      Thrown exception is:
      12.9.2013 10:41:28 org.apache.catalina.core.ApplicationDispatcher invoke
      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
      at com.liferay.portal.kernel.servlet.HttpSessionWrapper.getAttribute(HttpSessionWrapper.java:33)
      at com.liferay.portal.util.PortalImpl.isSecure(PortalImpl.java:6175)
      at sun.reflect.GeneratedMethodAccessor996.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      at com.sun.proxy.$Proxy542.isSecure(Unknown Source)
      at com.liferay.portal.util.PortalUtil.isSecure(PortalUtil.java:1752)
      at com.liferay.portlet.PortletURLImpl.<init>(PortletURLImpl.java:106)
      at com.liferay.portlet.PortletURLFactoryImpl.create(PortletURLFactoryImpl.java:35)
      at sun.reflect.GeneratedMethodAccessor1134.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      at com.sun.proxy.$Proxy608.create(Unknown Source)
      at com.liferay.portlet.PortletURLFactoryUtil.create(PortletURLFactoryUtil.java:33)
      at org.apache.jsp.html.taglib.ui.input_005fasset_005flinks.page_jsp._jspService(page_jsp.java:522)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:94)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
      at org.apache.jsp.html.portlet.document_005flibrary.edit_005ffile_005fentry_jsp._jspService(edit_005ffile_005fentry_jsp.java:2288)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:94)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
      at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3714)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:94)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:331)
      at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:128)
      at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRequestProcessor.java:370)
      at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRequestProcessor.java:338)
      at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
      at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
      at com.liferay.portal.struts.PortletRequestProcessor.processForwardConfig(PortletRequestProcessor.java:478)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:234)
      at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:296)
      at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:157)
      at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
      at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
      at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)
      at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:677)
      at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:379)
      at com.liferay.portlet.MonitoringPortlet.render(MonitoringPortlet.java:254)
      at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1164)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:652)
      at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
      at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:140)
      at sun.reflect.GeneratedMethodAccessor1127.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      at com.sun.proxy.$Proxy52.render(Unknown Source)
      at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:126)
      at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:155)
      at com.liferay.portal.layoutconfiguration.util.PortletRenderer._render(PortletRenderer.java:120)
      at com.liferay.portal.layoutconfiguration.util.PortletRenderer.access$4(PortletRenderer.java:107)
      at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:174)
      at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:1)
      at com.liferay.portal.kernel.executor.CopyThreadLocalCallable.call(CopyThreadLocalCallable.java:69)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      at java.lang.Thread.run(Thread.java:662)
      10:41:28,046 ERROR [RuntimePageImpl-1][IncludeTag:92] Current URL /c generates exception: An exception occurred processing JSP page /html/taglib/ui/input_asset_links/page.jsp at line 75_72: _73: long controlPanelPlid = PortalUtil.getControlPanelPlid(company.getCompanyId());_74: _75: PortletURL assetBrowserURL = PortletURLFactoryUtil.create(request, PortletKeys.ASSET_BROWSER, controlPanelPlid, PortletRequest.RENDER_PHASE);_76: _77: assetBrowserURL.setParameter("struts_action", "/asset_browser/view");_78: assetBrowserURL.setParameter("groupId", String.valueOf(scopeGroupId));__Stacktrace: [Sanitized]
      java.lang.NullPointerException
      at com.liferay.portal.kernel.servlet.HttpSessionWrapper.getAttribute(HttpSessionWrapper.java:33)
      at com.liferay.portal.util.PortalImpl.isSecure(PortalImpl.java:6175)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      at com.liferay.portal.util.PortalUtil.isSecure(PortalUtil.java:1752)
      at com.liferay.portlet.PortletURLImpl.<init>(PortletURLImpl.java:106)
      at com.liferay.portlet.PortletURLFactoryImpl.create(PortletURLFactoryImpl.java:35)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      at com.liferay.portlet.PortletURLFactoryUtil.create(PortletURLFactoryUtil.java:33)
      at org.apache.jsp.html.taglib.ui.input_005fasset_005flinks.page_jsp._jspService(page_jsp.java:522)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)

        Issue Links

          Activity

          Hide
          Zachary Heinrichs (Inactive) added a comment -

          Hello Jan,

          Thank you for the detailed report. We are currently in the process of investigating this issue. Without understanding the root cause, it's dangerous to place NPE checks because this may have unintended side effects elsewhere. Please bear with us as we try to root-cause these.

          Show
          Zachary Heinrichs (Inactive) added a comment - Hello Jan, Thank you for the detailed report. We are currently in the process of investigating this issue. Without understanding the root cause, it's dangerous to place NPE checks because this may have unintended side effects elsewhere. Please bear with us as we try to root-cause these.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 6 days ago

                Development

                  Structure Helper Panel