org.apache.poi.POIXMLException:在 JBoss6 中部署时出现 java.lang.reflect.InitationTargetException

发布于 2024-10-16 13:11:53 字数 4340 浏览 1 评论 0原文

我必须在 JBossSeam 应用程序中上传 excel 文件。我使用的是poi3.6 jar。在应用服务器JBoss5.1中excel上传成功。但我在使用JBoss6时遇到了异常。我该如何解决这个问题?有人可以帮我解决这个问题吗?

堆栈跟踪如下:

2011-02-09 10:20:00,247 错误 [STDERR] (http-10.120.10.19-8086-1) org.apache.poi.POIXMLException: java.lang.reflect.InitationTargetException

2011-02-09 10:20:00,247 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 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) 位于 org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:179)

2011-02-09 10:20:00,263 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 com.ey.SkillTracker.parseutility.EmployeeUploadExcel.parseXlFile(EmployeeUploadExcel.java:113)

2011-02-09 10:20:00,263 错误 [STDERR] (http-10.120.10.19-8086-1) 在 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) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)

2011-02-09 10:20:00,278 错误 [STDERR] (http-10.120.10.19-8086-1) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2011-02-09 10:20:00,278 错误 [STDERR] (http-10.120.10.19-8086-1) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2011-02-09 10:20:00,278 错误 [STDERR] (http-10.120.10.19-8086-1) 在 java.lang.reflect.Method.invoke(Method.java:597)

2011-02-09 10:20:00,278 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

2011-02-09 10:20:00,278 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.intercept.RootInitationContext.proceed(RootInitationContext.java:32)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.intercept.SeamInitationContext.proceed(SeamInitationContext.java:56)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.intercept.SeamInitationContext.proceed(SeamInitationContext.java:68)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.intercept.SeamInitationContext.proceed(SeamInitationContext.java:68)

2011-02-09 10:20:00,294 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

2011-02-09 10:20:00,309 错误 [STDERR] (http-10.120.10.19-8086-1) 在 org.jboss.seam.intercept.SeamInvocalContext.proceed(SeamInvocalContext.java:68)

2011-02-09 10:20:00,309 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)

2011-02-09 10:20:00,309 错误 [STDERR] (http-10.120.10.19-8086-1) 在 org.jboss.seam.intercept.SeamInvocalContext.proceed(SeamInvocalContext.java:68)

2011-02-09 10:20:00,309 错误 [STDERR] (http-10.120.10.19-8086-1) 在 org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

2011-02-09 10:20:00,309 错误 [STDERR] (http-10.120.10.19-8086-1) 位于 org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)

2011-02-09 10:20:00,325 错误 [STDERR] (http-10.120.10.19-8086-1) 在 org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)

2011-02-09 10:20:00,325 错误 [STDERR] (http-10.120.10.19-8086-1) 在 com.ey.SkillTracker.bean.administration.EmployeeBean_$$_javassist_seam_18.importEmployeeDetails(EmployeeBean_$$_javassist_seam_18 .java)

I have to upload an excel file in a JBossSeam application. I am using poi3.6 jar. The excel upload is successful in application server JBoss5.1. But I got the an exception when I used JBoss6. How could I resolve this problem? Could any please help me to solve this issue?

The stackTrace is as follows :

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 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61)

2011-02-09 10:20:00,263 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:256)

2011-02-09 10:20:00,263 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:196)

2011-02-09 10:20:00,263 ERROR [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)

2011-02-09 10:20:00,263 ERROR [STDERR] (http-10.120.10.19-8086-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2011-02-09 10:20:00,278 ERROR [STDERR] (http-10.120.10.19-8086-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2011-02-09 10:20:00,278 ERROR [STDERR] (http-10.120.10.19-8086-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2011-02-09 10:20:00,278 ERROR [STDERR] (http-10.120.10.19-8086-1) at java.lang.reflect.Method.invoke(Method.java:597)

2011-02-09 10:20:00,278 ERROR [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 ERROR [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 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,309 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)

2011-02-09 10:20:00,309 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,309 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

2011-02-09 10:20:00,309 ERROR [STDERR] (http-10.120.10.19-8086-1) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)

2011-02-09 10:20:00,325 ERROR [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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阳光下慵懒的猫 2024-10-23 13:11:53

我遇到了同样的问题。我用的是POI 3.8和JBoss6.0。根本原因是POI lib和xmlbeans的JBoss Lib之间的类加载冲突

I got the same issue. I used POI 3.8 and JBoss6.0. The root cause is Classloading conflict between POI lib and JBoss Lib of xmlbeans

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文