Add the Below Dependency to fix this exception. <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20211205</version> </dependency>