java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF

Atlassian JIRA | Ryan Goodwin [Atlassian] | 4 years ago
  1. 0

    PDF displayed in a page will not render if the file extension is capitalized. Error in the logs: {noformat} ERROR [http-8420-2] [[Standalone].[localhost].[/].[servlet-module-container-servlet]] log Servlet.service() for servlet serv let-module-container-servlet threw exception java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network pe rformance troubleshooting.PDF at com.benryan.components.DefaultSlideCacheManager.queueNewConversion(DefaultSlideCacheManager.java:252) at com.benryan.components.DefaultSlideCacheManager.getFuture(DefaultSlideCacheManager.java:95) at com.benryan.components.DefaultSlideCacheManager.getSlideConversionData(DefaultSlideCacheManager.java:61) at com.benryan.conversion.PPTSlideServlet.doGet(PPTSlideServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.security.websudo.MessagesDecoratorFilter.doFilter(MessagesDecoratorFilter.java:59) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:40) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) 2012-09-25 09:58:03,766 INFO [http-8420-2] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog Request Unique ID : 85aed95f-dcc0-4875-ba9c-8d9fac5017ea -------------------------- JVM Stats -------------------------- allocatedHeap = 530186240 availablePermGen = 89052424 usedMemory = 411870048 totalMemory = 530186240 freeMemory = 118316192 maxPermGen = 268435456 usedPermGen = 179383032 freeMemoryInMegabytes = 112 freeAllocatedHeap = 118316192 availableHeap = 118316192 usedMemoryInMegabytes = 392 maxHeap = 530186240 usedHeap = 411870048 totalMemoryInMegabytes = 505 -------------------------- Request Information -------------------------- URL: http://localhost:8420/500page.jsp Scheme: http Server: localhost Port: 8420 URI: /500page.jsp Context Path: Servlet Path: /500page.jsp Path Info: null Query String: attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF -------------------------- Attributes -------------------------- javax.servlet.forward.request_uri: /plugins/servlet/pptslide javax.servlet.forward.context_path: javax.servlet.forward.servlet_path: /plugins/servlet javax.servlet.forward.path_info: /500page.jsp javax.servlet.forward.query_string: attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF os_securityfilter_already_filtered: true com.atlassian.seraph.auth.LoginReason: OK com.atlassian.confluence.security.websudo.MessagesDecoratorFilter__already_filtered__: true atlassian.core.seraph.original.url: /plugins/servlet/pptslide?attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF javax.servlet.error.status_code: 500 javax.servlet.error.servlet_name: servlet-module-container-servlet com.atlassian.gzipfilter.GzipFilter_already_filtered: true loginfilter.already.filtered: true com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true Confluence-Request-Time: 1348592283676 gzipMimeTypes: text/.*,application/x-javascript,application/javascript,application/xml,application/xhtml\+xml javax.servlet.error.message: com.opensymphony.sitemesh.APPLIED_ONCE: true javamelody.request: /plugins/servlet/pptslide?attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF GET com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true __cleanup_recursion_counter: 0 com.atlassian.gzipfilter.org.tuckey.web.filters.urlrewrite.RuleMatched: true com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true javax.servlet.error.exception: java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF javax.servlet.error.request_uri: /plugins/servlet/pptslide -------------------------- Parameters -------------------------- attachmentId : 13664257 pageId : 13598724 rand : 3.48845800152529e+307 attachment : network performance troubleshooting.PDF caused by: java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF at com.benryan.components.DefaultSlideCacheManager.queueNewConversion(DefaultSlideCacheManager.java:252) {noformat}

    Atlassian JIRA | 4 years ago | Ryan Goodwin [Atlassian]
    java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF
  2. 0

    PDF displayed in a page will not render if the file extension is capitalized. Error in the logs: {noformat} ERROR [http-8420-2] [[Standalone].[localhost].[/].[servlet-module-container-servlet]] log Servlet.service() for servlet serv let-module-container-servlet threw exception java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network pe rformance troubleshooting.PDF at com.benryan.components.DefaultSlideCacheManager.queueNewConversion(DefaultSlideCacheManager.java:252) at com.benryan.components.DefaultSlideCacheManager.getFuture(DefaultSlideCacheManager.java:95) at com.benryan.components.DefaultSlideCacheManager.getSlideConversionData(DefaultSlideCacheManager.java:61) at com.benryan.conversion.PPTSlideServlet.doGet(PPTSlideServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.security.websudo.MessagesDecoratorFilter.doFilter(MessagesDecoratorFilter.java:59) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:40) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) 2012-09-25 09:58:03,766 INFO [http-8420-2] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog Request Unique ID : 85aed95f-dcc0-4875-ba9c-8d9fac5017ea -------------------------- JVM Stats -------------------------- allocatedHeap = 530186240 availablePermGen = 89052424 usedMemory = 411870048 totalMemory = 530186240 freeMemory = 118316192 maxPermGen = 268435456 usedPermGen = 179383032 freeMemoryInMegabytes = 112 freeAllocatedHeap = 118316192 availableHeap = 118316192 usedMemoryInMegabytes = 392 maxHeap = 530186240 usedHeap = 411870048 totalMemoryInMegabytes = 505 -------------------------- Request Information -------------------------- URL: http://localhost:8420/500page.jsp Scheme: http Server: localhost Port: 8420 URI: /500page.jsp Context Path: Servlet Path: /500page.jsp Path Info: null Query String: attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF -------------------------- Attributes -------------------------- javax.servlet.forward.request_uri: /plugins/servlet/pptslide javax.servlet.forward.context_path: javax.servlet.forward.servlet_path: /plugins/servlet javax.servlet.forward.path_info: /500page.jsp javax.servlet.forward.query_string: attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF os_securityfilter_already_filtered: true com.atlassian.seraph.auth.LoginReason: OK com.atlassian.confluence.security.websudo.MessagesDecoratorFilter__already_filtered__: true atlassian.core.seraph.original.url: /plugins/servlet/pptslide?attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF javax.servlet.error.status_code: 500 javax.servlet.error.servlet_name: servlet-module-container-servlet com.atlassian.gzipfilter.GzipFilter_already_filtered: true loginfilter.already.filtered: true com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true Confluence-Request-Time: 1348592283676 gzipMimeTypes: text/.*,application/x-javascript,application/javascript,application/xml,application/xhtml\+xml javax.servlet.error.message: com.opensymphony.sitemesh.APPLIED_ONCE: true javamelody.request: /plugins/servlet/pptslide?attachmentId=13664257&pageId=13598724&rand=3%2E48845800152529e%2B307&attachment=network%20performance%20troubleshooting%2EPDF GET com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true __cleanup_recursion_counter: 0 com.atlassian.gzipfilter.org.tuckey.web.filters.urlrewrite.RuleMatched: true com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true javax.servlet.error.exception: java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF javax.servlet.error.request_uri: /plugins/servlet/pptslide -------------------------- Parameters -------------------------- attachmentId : 13664257 pageId : 13598724 rand : 3.48845800152529e+307 attachment : network performance troubleshooting.PDF caused by: java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF at com.benryan.components.DefaultSlideCacheManager.queueNewConversion(DefaultSlideCacheManager.java:252) {noformat}

    Atlassian JIRA | 4 years ago | Ryan Goodwin [Atlassian]
    java.lang.IllegalArgumentException: Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF
  3. 0
    samebug tip
    URI part of the request contains invalid characters. You may try to encode the path from the URI. Check RFC7230 and RFC3986 documentation below. https://www.ietf.org/rfc/rfc3986.txt and https://tools.ietf.org/html/rfc7230
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This is mostly caused by an async call trying to load something to an object that's already been destroyed. Use a pauseRequests() on the onDestroy method.
    via GitHub by rsaphala

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot create conversion task for file extension, supported types are .pdf, .ppt and .pptx, but got : network performance troubleshooting.PDF

      at com.benryan.components.DefaultSlideCacheManager.queueNewConversion()
    2. com.benryan.components
      DefaultSlideCacheManager.queueNewConversion
      1. com.benryan.components.DefaultSlideCacheManager.queueNewConversion(DefaultSlideCacheManager.java:252)
      1 frame