我尝试在 Websphere 8.5.5.9 的管理控制台中安装一个小型(4MB)war 文件,但安装失败,SystemErr.log 中出现以下堆栈跟踪:
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Async operation timed out
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at com.ibm.isclite.container.controller.NLSDiskMultipartRequestHandler.handleRequest(NLSDiskMultipartRequestHandler.java:42)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.util.RequestUtils.populate(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.action.RequestProcessor.processPopulate(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.action.RequestProcessor.process(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.action.ActionServlet.process(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[5/31/17 14:06:28:139 CDT] 00000072 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1232)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:781)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:964)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:511)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:332)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:940)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
[5/31/17 14:06:28:140 CDT] 00000072 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1820)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R Caused by: org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Async operation timed out
[5/31/17 14:06:28:141 CDT] 00000072 SystemErr R at org.apache.commons.fileupload.FileUploadBase.parseRequest(Unknown Source)
[5/31/17 14:06:28:142 CDT] 00000072 SystemErr R ... 39 more
我尝试过更改许多设置,包括超时值,但没有任何效果。它甚至在不同浏览器上的表现也不同。如果我在 Chrome 中打开控制台,它会在半个小时后才会失败。在 IE 中,它需要大约 2 分钟,但同样会失败。
其他人已经能够安装相同的 WAR,但我们无法找到可以解释它的差异。
还有其他人遇到过这种情况吗?
答案1
这实际上是一种解决方法,而不是答案,但我发现它与从“本地文件系统”选项安装有关。使用“远程文件系统”选项,即使 WAR 文件位于我的本地驱动器上,也可以工作。