ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
236 stars 132 forks source link

class org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromPDFA cannot be cast to class org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromA3 #448

Closed msccip closed 2 months ago

msccip commented 3 months ago

Mustang-CLI-2.12.0.jar: If you try to add an additional PDF file as an attachment using the combine action, the following error occurs:

class org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromPDFA cannot be cast to class org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromA3 (org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromPDFA and org.mustangproject.ZUGFeRD.ZUGFeRDExporterFromA3 are in unnamed module of loader 'app')

the following commandline is used:

java -jar Mustang-CLI-2.12.0.jar --action combine --source x.pdf --source-xml y.xml --out rechnung.pdf --format zf --version 2 --profile E --attachments "z.PDF"

A stacktrace is not displayed. With version 2.10 it works without problems

msccip commented 2 months ago

With version 2.13 the exception no longer appears. But attachments are not added at all. They are simply ignored.

msccip commented 2 months ago

fixed in 2.14