Development occasionally encounter such a problem: Exception in thread "main" java.lang.IllegalStateException: Failed to read. . . . .
This latter error with a jar package, usually a local maven repository of the jar package is damaged, delete the jar package, and then update it maven project, which can be solved.