https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

            Bug ID: 64132
           Summary: Regression in handling UnknownEscherRecord when
                    getting pictures in .doc files
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: dev@poi.apache.org
          Reporter: talli...@apache.org
  Target Milestone: ---

Created attachment 36999
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36999&action=edit
Triggering file

In our recent regression tests, there were six files that had new exceptions
with the stacktrace below.

Not sure of best way to handle this...?

java.lang.ClassCastException: class org.apache.poi.ddf.UnknownEscherRecord
cannot be cast to class org.apache.poi.ddf.EscherBlipRecord
(org.apache.poi.ddf.UnknownEscherRecord and org.apache.poi.ddf.EscherBlipRecord
are in unnamed module of loader 'app')
        at
org.apache.poi.ddf.EscherBSERecord.fillFields(EscherBSERecord.java:100)
        at
org.apache.poi.hwpf.model.PICFAndOfficeArtData.<init>(PICFAndOfficeArtData.java:78)
        at org.apache.poi.hwpf.usermodel.Picture.<init>(Picture.java:112)
        at
org.apache.poi.hwpf.model.PicturesTable.extractPicture(PicturesTable.java:162)
        at
org.apache.poi.hwpf.model.PicturesTable.getAllPictures(PicturesTable.java:233)
        at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:654)
        at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:644)
        at
org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:173)
        at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:175)
        at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:131)
        at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
        at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
        at
org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to