org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException


Solutions on the web9

Solution icon of github
java.lang.reflect.InvocationTargetException

Solution icon of stackoverflow
java.lang.reflect.InvocationTargetException

Solution icon of stackoverflow
via Stack Overflow by Sam
, 1 year ago
java.lang.reflect.InvocationTargetException

Solution icon of stackoverflow
java.lang.reflect.InvocationTargetException

Solution icon of stackoverflow
java.lang.reflect.InvocationTargetException

Solution icon of web
java.lang.reflect.InvocationTargetException

Solution icon of github
via GitHub by joaolisboa
, 1 month ago
java.lang.reflect.InvocationTargetException

Solution icon of stackoverflow
java.lang.reflect.InvocationTargetException

Stack trace

org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
	at org.apache.poi.POIXMLFactory.createDocumentPart(POIXMLFactory.java:63)
	at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:625)
	at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:185)
	at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:280)
	at com.example.lexicav1.ItemListActivity.onActivityResult(ItemListActivity.java:909)
	at android.app.Activity.dispatchActivityResult(Activity.java:5639)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:3637)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3684)
	at android.app.ActivityThread.access$1300(ActivityThread.java:166)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5584)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.constructNative(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:56)
	at org.apache.poi.POIXMLFactory.createDocumentPart(POIXMLFactory.java:60)
	... 17 more
Caused by: java.lang.NoClassDefFoundError: org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument$Factory
	at org.apache.poi.xssf.model.ThemesTable.<init>(ThemesTable.java:85)
	... 21 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago