mustangproject
mustangproject copied to clipboard
ZUGFeRDImporter broken: NoSuchMethodError
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.apache.pdfbox.pdmodel.common.filespecification.PDEmbeddedFile.getByteArray()[B at org.mustangproject.ZUGFeRD.ZUGFeRDImporter.extractLowLevel(ZUGFeRDImporter.java:107) at org.mustangproject.ZUGFeRD.ZUGFeRDImporter.extract(ZUGFeRDImporter.java:64)
This happens in 1.4.0 as well as in 1.5.1.
In the jar version or also in the maven version? The interesting thing is that I recently sucessfully tested http://www.mustangproject.org/use.html#read I suspect this could be a duplicate of #53 , i.e. some pdfbox version conflict
Yes, finally found out. ZUGFeRDImporter requires PDFBox version 1.8.x.
Strange, within the build process of 1.5.0/1.5.1 i thought it was (only) 2.0.8 and now 2.0.9 is required in the POM. Can you provide me with a sample project where it does not work?
@uwemock does this still persist?
I can't tell. Maven search doesn't find mustangproject any more. My pom uses 1.2.0.
I had this issue with 1.7.2 again. In order to get around it, I removed org.apache.pdfbox:preflight from my dependencies and replaced it by commons-io.