页面显示正常,控制台报错

报表导出,excel表也能导出来,但后台报错

ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: Can not find a java.io.InputStream with the name [excelFile] in the invocation stack. Check the <param name="inputName"> tag specified for this action.
java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [excelFile] in the invocation stack. Check the <param name="inputName"> tag specified for this action.
 最后确定是继承类有问题,出现这种原因资源占用也有可能,还有一

种,功能已经实现,是拦截器最后在消灭资源时找不到文件报错,但也有提前释放资源的可能。

报表导出,excel表也能导出来,但后台报错

2015-04-02 16:05:19,302 [http-8080-3] WARN  com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression 'wq.dealstate' with value '[Ljava.lang.String;@594e7f'
ognl.OgnlException: dealstate [java.lang.IllegalArgumentException: argument type mismatch]

解决方法:jsp页面,wq.dealstate改成wq.dealState

<s:hidden name="wq.dealState" id="dealState2"></s:hidden>

当第一次导出成功后,查询条件不变,在导出,看后台是否出现空指针问题,如果出现考虑是否将查询条件放到session还有一种,当第一次导出出现问题后,第二次导出也会出现问题

 

posted on 2015-04-02 17:37  叶子的分享  阅读(589)  评论(0编辑  收藏  举报