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

Add .odt file cause error: Http Status 500 -Internal Server Error

    Details

    • Story Points:
      2
    • Fix Priority:
      3
    • Application Servers:
      Oracle Weblogic Server 12c (12.1.x), Oracle Weblogic Server 12c R2 (12.2.x)

      Description

      Steps to reproduce:

      1. Set up weblogic12c.
      2. start portal.
      3. Add a DM portlet on page.
      4. Add a document with attach .odt file.

      Expected result:
      Add file with no error.
      Actual result:
      Page broken with error Http Status 500 -Internal Server Error.
      Error log:

      <2018-12-6 涓婂崍10鏃?5鍒?7绉?CST> <Error> <HTTP> <BEA-101020> <[[email protected][app:liferay-portal-7.0.10 module:liferay-portal-7.0.10.war path:null spec-version:3.1]] Servlet failed with an Exception
      java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.toString(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
              at org.apache.tika.parser.pkg.ZipContainerDetector.detectOpenDocument(ZipContainerDetector.java:226)
              at org.apache.tika.parser.pkg.ZipContainerDetector.detectZipFormat(ZipContainerDetector.java:178)
              at org.apache.tika.parser.pkg.ZipContainerDetector.detect(ZipContainerDetector.java:108)
              at org.apache.tika.detect.CompositeDetector.detect(CompositeDetector.java:84)
              at com.liferay.portal.util.MimeTypesImpl.getContentType(MimeTypesImpl.java:128)
              Truncated. see log file for complete stacktrace
      >
      
      2018-12-06 10:05:27.690 ERROR [liferay/monitoring-1][ParallelDestination:55] Unable to process message {destinationName=liferay/monitoring, response=null, responseDestinationName=null, responseId=null, payload=[{referer=http://localhost:7001/web/guest/home?p_p_id=com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO&p_p_lifecycle=0&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_mvcRenderCommandName=%2Fdocument_library%2Fedit_file_entry&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_cmd=add&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_redirect=%2Fweb%2Fguest%2Fhome&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_repositoryId=20143&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_folderId=0&_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_VhWChGENvJqO_fileEntryTypeId=0, remoteAddr=0:0:0:0:0:0:0:1, requestURL=, statusCode=0, userAgent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36, {attributes=null, companyId=20116, groupId=0, description=null, duration=0, name=/web/guest/home, namespace=com.liferay.monitoring.Portal, requestStatus=null, stopWatch=0:00:00.029, timeout=-1, user=null}}], values={defaultLocale=en_US, companyId=20116, groupId=0, principalName=20156, [email protected]11183326}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.monitoring.internal.statistics.portal.CompanyStatistics.processDataSample(CompanyStatistics.java:97)
              at com.liferay.portal.monitoring.internal.statistics.portal.ServerStatistics.processDataSample(ServerStatistics.java:104)
              at com.liferay.portal.monitoring.internal.statistics.portal.ServerStatistics.processDataSample(ServerStatistics.java:35)
              at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.processDataSample(MonitoringMessageListener.java:93)
              at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.doReceive(MonitoringMessageListener.java:121)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 5 more
      2018-12-06 10:05:27.693 WARN  [[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'][code_jsp:156] {code="500", msg="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">_<HTML>_<HEAD>_<TITLE>Error 500--Internal Server Error</TITLE>_</HEAD>_<BODY bgcolor="white">_<FONT FACE=Helvetica><BR CLEAR=all>_<TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>_<FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>_</FONT></TD></TR>_</TABLE>_<TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><pre>java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.toString&#40;Ljava/io/InputStream&#59;Ljava/nio/charset/Charset&#59;&#41;Ljava/lang/String&#59;__       at org.apache.tika.parser.pkg.ZipContainerDetector.detectOpenDocument(ZipContainerDetector.java:226)__  at org.apache.tika.parser.pkg.ZipContainerDetector.detectZipFormat(ZipContainerDetector.java:178)__  at org.apache.tika.parser.pkg.ZipContainerDetector.detect(ZipContainerDetector.java:108)__      at org.apache.tika.detect.CompositeDetector.detect(CompositeDetector.java:84)__ at com.liferay.portal.util.MimeTypesImpl.getContentType(MimeTypesImpl.java:128)__    at com.liferay.portal.kernel.util.MimeTypesUtil.getContentType(MimeTypesUtil.java:74)__ at com.liferay.portal.upload.LiferayFileItem.getContentType(LiferayFileItem.java:63)__  at com.liferay.portal.upload.LiferayFileItem.getItemSize(LiferayFileItem.java:109)__ at com.liferay.portal.upload.UploadServletRequestImpl.<init>(UploadServletRequestImpl.java:120)__       at com.liferay.portal.util.PortalImpl.getUploadServletRequest(PortalImpl.java:5596)__        at com.liferay.portal.kernel.util.PortalUtil.getUploadServletRequest(PortalUtil.java:1943)__    at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:89)__    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:344)__        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__
      at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:368)__      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__ at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)__    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__ at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:86)__       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__ at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)__      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:261)__    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)__  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)__      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__ at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)__ at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)__    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:191)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__       at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)__      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)__    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)__       at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)__     at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)__
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)__      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)__  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)__   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)__       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)__     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3654)__     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)__      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)__    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)__    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)__       at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)__   at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2423)__ at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2280)__      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)__  at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)__     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1586)__     at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)__    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)__   at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)__ at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)__     at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)__    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)__    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)__        at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)__</pre></FONT></TD></TR>_</TABLE>__</BODY>_</HTML>_", uri=/web/guest/home} [Sanitized]
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            raven.song Raven Song
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              2 years, 45 weeks, 5 days ago

                Packages

                Version Package