当前位置: 代码迷 >> Java Web开发 >> setParameters]: Unexpected Exception caught setting '
  详细解决方案

setParameters]: Unexpected Exception caught setting '

热度:802   发布时间:2016-04-17 01:16:53.0
java.lang.reflect.InvocationTargetException这个异常什么意思
今天已经在网上找了半天,郁闷的要死了
Java code
2009-01-18 22:24:09,234 DEBUG (org.apache.struts2.components.template.FreemarkerTemplateEngine:115) - Rendering template /template/simple/form-close.ftl 
2009-01-18 22:24:16,375 DEBUG (org.apache.struts2.dispatcher.Dispatcher:635) - saveDir=d:/temp
2009-01-18 22:24:16,562 DEBUG (org.apache.struts2.dispatcher.multipart.MultiPartRequest:94) - Found item fileName
2009-01-18 22:24:16,562 DEBUG (org.apache.struts2.dispatcher.multipart.MultiPartRequest:116) - Item is a file upload
2009-01-18 22:24:16,796 ERROR (com.opensymphony.xwork2.interceptor.ParametersInterceptor:204) - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileNameContentType' on 'class com.freshpower.bid.bm.action.ImpProjectAction: Error setting expression 'fileNameContentType' with value '[Ljava.lang.String;@1551b28'
2009-01-18 22:24:16,796 ERROR (com.opensymphony.xwork2.interceptor.ParametersInterceptor:204) - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileNameFileName' on 'class com.freshpower.bid.bm.action.ImpProjectAction: Error setting expression 'fileNameFileName' with value '[Ljava.lang.String;@6a1b46'
2009-01-18 22:24:16,812 DEBUG (org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:134) - Validating /struts/bm/impModel with method impProjectFile.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:213)
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:149)
at org.apache.poi.hssf.usermodel.HSSFWorkbook. <init>(HSSFWorkbook.java:183)
at org.apache.poi.hssf.usermodel.HSSFWorkbook. <init>(HSSFWorkbook.java:152)
at com.freshpower.bid.common.util.ExcelReader.readExcelContent(ExcelReader.java:63)
at com.freshpower.bid.bm.action.ImpProjectAction.impProjectFile(ImpProjectAction.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept

我是要做读取excel文件的数据,我自己机子上能读取excel文件的数据,但是在cvs上的机子就是读不出来,就是报上面的异常,那位大哥来救救我吧。分不够可以再加
  相关解决方案