引用 5 楼 fangmingshijie 的回复:
错误:java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [] in the invocation stack. Check the <param name="inputName"> tag specified for this action
说是我栈中没有excelStream。
public String filename;
public InputStream excelStream;
都有完整的get和set方法
说是我栈中没有excelStream。
至少有一个方法是
public InputStream getExcelStream()
才对的。
public String filename;
public InputStream excelStream;
都有完整的get和set方法
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
public
String getFilename() {
return
filename;
}
public
void
setFilename(String filename) {
this
.filename = filename;
}
public
InputStream getExcelStream() {
return
excelStream;
}
public
void
setExcelStream(InputStream excelStream) {
this
.excelStream = excelStream;
}
|
本文解决了Java应用程序中因找不到InputStream而引发的IllegalArgumentException异常问题。通过检查代码并确保存在正确的getExcelStream()方法来修复。
823

被折叠的 条评论
为什么被折叠?



