下载文件失败:
java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [ProjectALlFile] in the invocation stack. Check the <param name="inputName"> tag specified for this ac
是因为文件的路径不正确可以仔细检查一下文件的路径
看了StreamResult的源代码才发现是因为InputStream为null的缘故
if (inputStream == null) { // Find the inputstream from the invocation variable stack inputStream = (InputStream) invocation.getStack().findValue(conditionalParse(inputName, invocation)); } if (inputStream == null) { String msg = ("Can not find a java.io.InputStream with the name [" + inputName + "] in the invocation stack. " + "Check the <param name=\"inputName\"> tag specified for this action."); LOG.error(msg); throw new IllegalArgumentException(msg); }