Bug 48433 - org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61)
Summary: org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException a...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.5-FINAL
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-23 02:55 UTC by ydkalyan
Modified: 2012-04-25 12:47 UTC (History)
0 users



Attachments
org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61) (5.11 KB, text/plain)
2009-12-23 02:55 UTC, ydkalyan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ydkalyan 2009-12-23 02:55:44 UTC
Created attachment 24752 [details]
org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61)

hi,

I am getting the attached exception, while using XSSF to read excel 2007 fromat file in a web application. Using tomcat 5.5.27 web application server and my project is using Sprint framework. please let me know how to solve the issue. 
Thanks in advance for your support and commitment.

Regards,
Kalyan
Comment 1 Nick Burch 2009-12-23 02:59:41 UTC
The key line in your stack trace is:

Caused by: java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException

Please ensure you have correctly added all the POI dependencies to your classpath - it seems you currently haven't
Comment 2 ydkalyan 2009-12-23 03:07:11 UTC
hi,

Thanks for replying, I have include the following list of jar files in the class path, but still i am getting the same exception. thanks for your feedback. 

dom4j-1.6
ooxml-schemas-1.0
poi-3.5-FINAL-20090928
poi-ooxml-3.5-FINAL-20090928
xmlbeans-2.3.0

Regards,
Kalyan
Comment 3 ydkalyan 2009-12-23 03:35:11 UTC
hi,

can anybody please help me to solve this issue, thanks for your collaboration.

Regards,
Kalyan
Comment 4 Yegor Kozlov 2009-12-23 05:08:21 UTC
Include geronimo-stax-api_1.0_spec-1.0.jar and try again.

Yegor
Comment 5 Pavan 2012-04-25 12:47:01 UTC
I have the same problem, and after include geronimo-stax-api_1.0_spec-1.0.jar also.Please help.

Thanks,
Pavan