You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/12/17 12:10:00 UTC
[jira] [Reopened] (PDFBOX-6125) ClassCastException: class org.apache.xmpbox.type.FlashType
[ https://issues.apache.org/jira/browse/PDFBOX-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr reopened PDFBOX-6125:
-------------------------------------
Some additional work is needed:
- array type in attribute wasn't detected in strict mode
- serializing a "lenient" content and reading it again failed 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org