Download page Getting 'Unexpected block type 0!' Error.
Getting 'Unexpected block type 0!' Error
Problem
Error Message on the UI: Error occured when writing Word document (Root Cause: Unexpected block type 0!).
The log file will say something like:
2010-09-15 09:24:17,439 ERROR [http-1990-1] [scroll.office.web.ExportAction] log Exporter Exception.
RuntimeException ocurred while processing page 'TESTPAGE': space: 65537 | url: /confluence/plugins/com.k15t.scroll.office/export.action | page: 32769 | userName: admin | referer: http://localhost:1990/confluence/display/ds/Home | action: export
com.k15t.scroll.core.exporter.ExporterException: com.k15t.scroll.words.messages.asposeexception
at com.k15t.scroll.exporter.aspose.word.impl.WordExporterImpl.export(WordExporterImpl.java:107)
at com.k15t.scroll.office.web.ExportAction.exportSinglePageAndChildren(ExportAction.java:133)
at com.k15t.scroll.office.web.ExportAction.export(ExportAction.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:
Caused by: javax.imageio.IIOException: Unexpected block type 0!
at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:722)
at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:794)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at asposewobfuscated.ab.d(Image.java:193)
at com.aspose.words.ImageData.setImage(ImageData.java:170)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1222)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1194)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1078)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1011)
CODE
Environment
All Scroll Exporter
All versions
Resolution
Re-insert the image(s) on the page mentioned in the error log.
Cause
This error is cause by a broken image file in specific pages (in this case with GIF metadata).
Cookie Notice
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: Click Here