7 Replies Latest reply on Jun 23, 2020 4:51 AM by Svetoslav Iliev

    Issue with uploading attachment

    Svetoslav Iliev
      Share This:

      Hi guys,

       

      Having issue with Remedy 19.08 with midtier Apache 9.0 while uploading files in incidents/work orders.

       

      What we get is:

       

       

      We have enabled all type of attachments, no size limit and no restrictions at all regarding type of files.

       

      What we noticed is after restart the first upload of a "test.email" goes as it should. When we try for the second time we get the error.

      Also files below 5kb are uploaded with no issues every time. When we try something bigger, we get the error.

       

      When we log on the server and access the mid tier via the machine where is installed there are no issue with file uploads of any kind and any time. All is working as it should.

       

      What we get as an error is:

       

      localhost.2020-05-28.log

       

      28-May-2020 15:54:28.123 SEVERE [https-jsse-nio-443-exec-8] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [AttachServlet] in context with path [/arsys] threw exception

      java.io.IOException: unexpected end of part

      at com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:100)

      at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:195)

      at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:156)

      at com.remedy.arsys.goat.AttachmentData.getData(AttachmentData.java:760)

      at com.remedy.arsys.goat.AttachmentData.uploadToField(AttachmentData.java:407)

      at com.remedy.arsys.stubs.AttachServlet.doUpload(AttachServlet.java:192)

      at com.remedy.arsys.stubs.AttachServlet.doRequest(AttachServlet.java:66)

      at com.remedy.arsys.stubs.GoatServlet.postInternal(GoatServlet.java:198)

      at com.remedy.arsys.stubs.GoatHttpServlet.doPost(GoatHttpServlet.java:62)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.ProxySessionTimeoutFilter.doFilter(ProxySessionTimeoutFilter.java:63)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.config.HttpSecurityHeaderFilter.doFilter(Unknown Source)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.support.OriginAllowFilter.doFilter(OriginAllowFilter.java:47)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.SecureCookieFilter.doFilter(SecureCookieFilter.java:79)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.TenancyFilter.doFilter(TenancyFilter.java:49)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.bmc.rsso.agent.RSSOFilter.doFilter(RSSOFilter.java:74)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

      at java.base/java.lang.Thread.run(Thread.java:835)

      28-May-2020 15:54:28.355 SEVERE [https-jsse-nio-443-exec-7] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [AttachServlet] in context with path [/arsys] threw exception

      java.io.IOException: Corrupt form data: premature ending

      at com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:205)

      at com.remedy.arsys.stubs.AttachServlet.doRequest(AttachServlet.java:64)

      at com.remedy.arsys.stubs.GoatServlet.postInternal(GoatServlet.java:198)

      at com.remedy.arsys.stubs.GoatHttpServlet.doPost(GoatHttpServlet.java:62)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.ProxySessionTimeoutFilter.doFilter(ProxySessionTimeoutFilter.java:63)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.config.HttpSecurityHeaderFilter.doFilter(Unknown Source)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.support.OriginAllowFilter.doFilter(OriginAllowFilter.java:47)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.SecureCookieFilter.doFilter(SecureCookieFilter.java:79)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.remedy.arsys.stubs.TenancyFilter.doFilter(TenancyFilter.java:49)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at com.bmc.rsso.agent.RSSOFilter.doFilter(RSSOFilter.java:74)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

      at java.base/java.lang.Thread.run(Thread.java:835)

       

      i couldn't find any errors elsewhere.

       

      Any ideas what those errors might be related to?

       

      Regards,

      Svetoslav