我必須在JBossSeam應用程序中上傳excel文件。我正在使用poi3.6 jar。 excel上傳在應用服務器JBoss5.1中成功。但是當我使用JBoss6時,我得到了一個例外。我怎麼能解決這個問題?任何請幫我解決這個問題?org.apache.poi.POIXMLException:在JBoss6中部署java.lang.reflect.InvocationTargetException
棧跟蹤如下:
2011-02-09 10:20:00247 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)位於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錯誤[STDERR](http-10.120.10.19-8086-1)位於org.apache.poi.xssf。 (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 1 0: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錯誤[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:00278 ERROR [STDERR](HTTP-10.120.10.19-8086-1)在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錯誤[STDERR](http-10.120.10.19-8086-1)位於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錯誤[STDERR](http-10.120.10.19-8086-1)位於org.jboss.seam.intercept.SeamInvocationContext。繼續(SeamInvocationContext.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 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)
2 011-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:在org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)00309 ERROR [STDERR](HTTP-10.120.10.19-8086-1)
2011-02-09 10:20:在org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)00325 ERROR [STDERR](HTTP-10.120.10.19-8086-1)
2011-02-09 10:20:00,325錯誤[STDERR](http-10.120.10.19-8086-1)at com.ey.SkillTracker.bean.administration.EmployeeBean _ $$ _ javassist_seam_18.importEmployeeDetails(EmployeeBean _ $$ _ javassist_seam_18.java)
您正在使用哪個版本的接縫? – 2011-02-09 09:48:41
我一直在使用jboss-seam-2.2.0.GA。但現在我已經用jboss-seam-2.2.1.Final版本替換了接口庫文件。 – Ian 2011-02-12 05:06:48