Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in generating the output: accessExternalDTD' is not recognized #7

Open
daneshka opened this issue Feb 7, 2017 · 1 comment
Open

Comments

@daneshka
Copy link

daneshka commented Feb 7, 2017

files-to-compare.zip
When I have only this image in my source and destination with a different attribute (like height) in the img tag i have this error:

Is it because of the size of the image?

Comparing documents: C:/Users/smahajan/Desktop/JAR_FILES/old.html and C:/Users/smahajan/Desktop/JAR_FILES/new.html
Diff type: html
Writing html output to daisydiff.htm

.Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
.Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
.java.lang.StackOverflowError
at java.util.regex.Pattern.sequence(Pattern.java:2130)
at java.util.regex.Pattern.expr(Pattern.java:1996)
at java.util.regex.Pattern.compile(Pattern.java:1696)
at java.util.regex.Pattern.(Pattern.java:1351)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at java.lang.String.replaceAll(String.java:2223)
at org.outerj.daisy.diff.html.ancestor.ChangeText.clean(ChangeText.java:107)
at org.outerj.daisy.diff.html.ancestor.ChangeText.addText(ChangeText.java:33)
at org.outerj.daisy.diff.html.ancestor.ChangeText.addTextBrokenAcrossLines(ChangeText.java:90)
at org.outerj.daisy.diff.html.ancestor.ChangeText.addTextCarefully(ChangeText.java:65)
at org.outerj.daisy.diff.html.ancestor.ChangeText.addText(ChangeText.java:36)

@ataillefer
Copy link
Contributor

Yes, it seems that ChangeText#addTextCarefully, because of its recursivity, is not meant to deal with huge unbreakable strings, as this Base64 encoded image...

The WARNING is unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants