- Code: Select all
01-09 18:10:31.866 25345-26831/com.fullreader W/System.err: org.docx4j.openpackaging.exceptions.Docx4JException: Error reading from the stream
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:373)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:270)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:250)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:168)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at org.docx4j.Docx4J.load(Docx4J.java:236)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at com.cvte.lei.doc.AndroidDocxToHtmlActivity$DocXLoaderTask.doInBackground(AndroidDocxToHtmlActivity.java:367)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at com.cvte.lei.doc.AndroidDocxToHtmlActivity$DocXLoaderTask.doInBackground(AndroidDocxToHtmlActivity.java:349)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: at java.lang.Thread.run(Thread.java:818)
01-09 18:10:31.870 25345-26831/com.fullreader W/System.err: Caused by: java.io.IOException: Mark has been invalidated.
01-09 18:10:31.871 25345-26831/com.fullreader W/System.err: at java.io.BufferedInputStream.reset(BufferedInputStream.java:336)
01-09 18:10:31.871 25345-26831/com.fullreader W/System.err: at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:371)
01-09 18:10:31.871 25345-26831/com.fullreader W/System.err: ... 12 more
I was using this code to open file - https://github.com/plutext/docx4j/blob/ ... tHtml.java
As far as i understand the error is here:
- Code: Select all
wordMLPackage = Docx4J.load(new java.io.File(mPath));