[
https://issues.apache.org/jira/browse/PDFBOX-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045820#comment-18045820
]
ASF subversion and git services commented on PDFBOX-6125:
---------------------------------------------------------
Commit 1930663 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1930663 ]
PDFBOX-6125: default to text in lenient mode
> ClassCastException: class org.apache.xmpbox.type.FlashType
> ----------------------------------------------------------
>
> Key: PDFBOX-6125
> URL: https://issues.apache.org/jira/browse/PDFBOX-6125
> Project: PDFBox
> Issue Type: Bug
> Components: XmpBox
> Affects Versions: 2.0.35, 3.0.6 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.36, 3.0.7 PDFBox, 4.0.0
>
> Attachments: 006054-p14.xml
>
>
> java.lang.ClassCastException: class org.apache.xmpbox.type.FlashType
> at java.base/java.lang.Class.asSubclass(Class.java:3640)
> at
> org.apache.xmpbox.type.TypeMapping.instanciateSimpleProperty(TypeMapping.java:162)
> at
> org.apache.xmpbox.xml.DomXmpParser.parseDescriptionRootAttr(DomXmpParser.java:341)
> at
> org.apache.xmpbox.xml.DomXmpParser.parseDescriptionRoot(DomXmpParser.java:289)
> at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:195)
> at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:113)
> at
> org.apache.xmpbox.xml.DomXmpParserTest.testBadAttr2(DomXmpParserTest.java:783)
> (The line numbers won't match the repository)
> This happens because attributes are simple types, and Flash is a structured
> type. Surprisingly, the PDFLib XMP checker claims the XMP is ok.
> Nevertheless, we'll avoid this exception until we'll know better.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]