centic9 / poi-on-android

A sample project that shows how Apache POI can be used in an Android application
Apache License 2.0
357 stars 89 forks source link

Could support JAXB? #80

Closed rockmany2000 closed 2 years ago

rockmany2000 commented 4 years ago

Hello Centic9, It is a good project. I am porting XSLFSlide show in Android base your project. But I face the issue about JAXB. I found POI3.17 need JAXB in poi/sl/draw. JAXB is base on standard JDK ,but not in Android SDK . I study many 3rd solutions (in stackoverflow) to port JAXB but not successed.

Did you have some suggestion or comment?

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/poi/javax/xml/bind/JAXBContext;
    at org.apache.poi.sl.draw.geom.PresetGeometries.init(PresetGeometries.java:69)
    at org.apache.poi.sl.draw.geom.PresetGeometries.getInstance(PresetGeometries.java:111)
    at org.apache.poi.xslf.usermodel.XSLFSimpleShape.getGeometry(XSLFSimpleShape.java:722)
    at org.apache.poi.sl.draw.DrawSimpleShape.computeOutlines(DrawSimpleShape.java:402)
    at org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:76)
    at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
    at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
    at org.apache.poi.xslf.usermodel.XSLFSlide.draw(XSLFSlide.java:307)
centic9 commented 4 years ago

Can you provide a simple example which triggers this exception? Otherwise it is hard to reproduce/analyze.

centic9 commented 2 years ago

There is not enough information and no update for a long time, so I have to close this for now, please reopen with more information if this is still an issue for you.