Description
I have validated my epub file with epubcheck 4.0.2 ,4.1.1 ,4.2.0 and 4.2.1 . It is validating correctly with 4.0.2 and 4.1.1 but for 4.2.0 and higher version it is throwing below errors.
java.lang.StackOverflowError
at java.util.LinkedList.poll(Unknown Source)
at com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(XRefChecker.java:532)
at com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(XRefChecker.java:576)
............
I have checked the source code of 4.1.1 and 4.2.0 and found that in 4.2.0 there is a recursive methods which is not available in 4.1.1 and lower version. At this point my epub check throwing errors.
com.adobe.epubcheck.opf.XRefChecker.checkReferences() com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(Queue<Reference>, int, int)
I am able to access epub in edge browser , calibre.
I cannot share epub file because it has copyright.
Please advise me to solve the problem
Thanks!