Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-27980

Documents and Media - Unable to add a Basic Document in Glassfish

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.20 EE GA2, 6.2.0 CE M2
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Component/s: DM
    • Labels:
      None
    • Environment:
    • Fix Priority:
      5

      Description

      When adding a document in the Documents and Media portlet, you get a NPE and "Documents and Media is temporarily unavailable." error message in the portal.

      1. Add a test page.
      2. Add the Documents and Media Portlet
      3. In Documents and Media, click on Add -> Basic Document
      4. Select any file and click Publish
      5. You will get a NPE in the console and DM is temporarily unavailable
      [#|2012-06-15T16:34:33.109+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=20;_ThreadName=http-thread-pool-8080(2);|16:34:33,108 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
              at com.liferay.portal.util.MimeTypesImpl.getContentType(MimeTypesImpl.java:78)
              at com.liferay.portal.kernel.util.MimeTypesUtil.getContentType(MimeTypesUtil.java:32)
              at com.liferay.portal.upload.UploadPortletRequestImpl.getContentType(UploadPortletRequestImpl.java:68)
              at com.liferay.portlet.documentlibrary.action.EditFileEntryAction.updateFileEntry(EditFileEntryAction.java:689)
              at com.liferay.portlet.documentlibrary.action.EditFileEntryAction.processAction(EditFileEntryAction.java:130)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:169)
              at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:212)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
              at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:548)
              at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
              at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
              at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:854)
              at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:634)
              at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:246)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 18 weeks, 1 day ago

                  Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2