我必须在JBossSeam应用程序中上传一个excel文件。我正在使用poi3.6 jar。 excel上传在应用服务器JBoss5.1中成功。但是当我使用JBoss6时,我得到了一个例外。我怎么能解决这个问题?请问有什么能帮我解决这个问题吗?
stackTrace如下:
2011-02-09 10:20:00,247 ERROR [STDERR](http-10.120.10.19-8086-1) org.apache.poi.POIXMLException:java.lang.reflect.InvocationTargetException
2011-02-09 10:20:00,247错误[STDERR](http-10.120.10.19-8086-1)at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61)< / p>
2011-02-09 10:20:00,263错误[STDERR](http-10.120.10.19-8086-1)org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:256)
2011-02-09 10:20:00,263错误[STDERR](http-10.120.10.19-8086-1)org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:196)
2011-02-09 10:20:00,263错误[STDERR](http-10.120.10.19-8086-1)at org.apache.poi.xssf.usermodel.XSSFWorkbook。(XSSFWorkbook.java:179)
2011-02-09 10:20:00,263 ERROR [STDERR](http-10.120.10.19-8086-1)at com.ey.SkillTracker.parseutility.EmployeeUploadExcel.parseXlFile(EmployeeUploadExcel.java:113)
2011-02-09 10:20:00,263 ERROR [STDERR](http-10.120.10.19-8086-1)at com.ey.SkillTracker.bean.administration.EmployeeBean.importEmployeeDetails(EmployeeBean.java:902)< / p>
2011-02-09 10:20:00,263错误[STDERR](http-10.120.10.19-8086-1)at sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)
2011-02-09 10:20:00,278错误[STDERR](http-10.120.10.19-8086-1)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-02-09 10:20:00,278错误[STDERR](http-10.120.10.19-8086-1)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-02-09 10:20:00,278 java.lang.reflect.Method.invoke(Method.java:597)中的错误[STDERR](http-10.120.10.19-8086-1)
2011-02-09 10:20:00,278错误[STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
2011-02-09 10:20:00,278错误[STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2011-02-09 10:20:00,294 ERROR [STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
2011-02-09 10:20:00,309错误[STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2011-02-09 10:20:00,309 org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)中的错误[STDERR](http-10.120.10.19-8086-1)
2011-02-09 10:20:00,309错误[STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2011-02-09 10:20:00,309 org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)中的错误[STDERR](http-10.120.10.19-8086-1)
2011-02-09 10:20:00,309 org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)中的错误[STDERR](http-10.120.10.19-8086-1)
2011-02-09 10:20:00,325错误[STDERR](http-10.120.10.19-8086-1)at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
2011-02-09 10:20:00,325 ERROR [STDERR](http-10.120.10.19-8086-1)at com.ey.SkillTracker.bean.administration.EmployeeBean _ $$ _ javassist_seam_18.importEmployeeDetails(EmployeeBean _ $$ _ javassist_seam_18的.java)
答案 0 :(得分:1)
我遇到了同样的问题。我使用了POI 3.8和JBoss6.0。根本原因是类加载POI lib和xmlbeans的JBoss Lib之间的冲突