Can not find a java.io.InputStream with the name [] in the invocation stack 解决办法
来源:互联网 发布:java 单例模型 编辑:程序博客网 时间:2024/05/19 15:25
具体异常是这句话:
Can not find a
1.文件路径不对,根本就没有取到文件。这种情况下,可以将获得InputStream的那条语句放在system.out.println()中输出一下,若为null,那就是路径不对了,或者说得准确些就根本没有找到文件。
2.在action中没有写配置文件中"<param name="inputName">"后面属性的那个get方法.
当以上两种情况都正确的情况下,问题就在这里了:
如果想要获得外部文件 譬如 D盘中的某个文件,那么就要自己创建输入流才可以,如:
- File
file new= File( "D:\\spring.doc"); - InputStream
is = new FileInputStream(file); - return
is;
则OK!!
- Can not find a java.io.InputStream with the name [] in the invocation stack 解决办法
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [...] in the invocation stack. ...
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack.
- Can not find a java.io.InputStream with the name [targetFile] in the invocation stack.
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the <
- Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the <p
- 文件下载Can not find a java.io.InputStream with the name [inputStream] in the invocation stack错误
- (Struts2文件下载)Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- (文件下载)Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- 文件下载Can not find a java.io.InputStream with the name [inputStream] in the invocation stack错误
- Dom4j递归输出所有的接点和值
- poj1200-CrazySearch(Rabin-Karp Hash)
- 解析VC++ Name Mangling 机制
- Oracle云数据库初体验 之一 - 申请与介绍
- jquery去掉点击文字,图片,按钮时出现的虚线
- Can not find a java.io.InputStream with the name [] in the invocation stack 解决办法
- unix基础---有关于孤儿进程组和终端会话的理解-------值得一看!!!
- C programe (The second day of the training of cognizant )
- oracle 日期计算
- java语言俩个for嵌套打印图形-作者:明月-整理:逝秋
- Oracle连接数过多释放机制
- android 如何增加gsensor驱动(MMA7660)
- 判断设备是否是iphone5
- hdu1093