Correct the classpath of your application so that it contains a single, compatible version of org.apache.fontbox.cff.CFFParser
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.ofdrw.converter.font.TrueTypeFont.parse(TrueTypeFont.java:184)
The following method did not exist:
org.apache.fontbox.cff.CFFParser.parse([B)Ljava/util/List;
The method's class, org.apache.fontbox.cff.CFFParser, is available from the following locations:
jar:file:/E:/SCM/Maven/repository/org/apache/pdfbox/fontbox/3.0.1/fontbox-3.0.1.jar!/org/apache/fontbox/cff/CFFParser.class
The class hierarchy was loaded from the following locations:
org.apache.fontbox.cff.CFFParser: file:/E:/SCM/Maven/repository/org/apache/pdfbox/fontbox/3.0.1/fontbox-3.0.1.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.fontbox.cff.CFFParser
<dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>3.0.1</version> </dependency>
add this exclusions
<dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>3.0.1</version> <exclusions> <exclusion> <artifactId>fontbox</artifactId> <groupId>org.apache.pdfbox</groupId> </exclusion> </exclusions> </dependency>