Error comparing simple HTML documents


#1

I’m in the process of evaluating GroupDocs.Comparison for Java. I have modified the showcase example to compare HTML documents. According to the documentation that should be possible (https://docs.groupdocs.com/display/comparisonjava/Working+with+HTML+Comparison). I am comparing the simplest of HTML files but I get the following error:test.png (1.9 KB)

class com.groupdocs.comparison.internal.c.a.m.System.f.e: Attempted to read past the end of the stream. com.groupdocs.comparison.internal.c.g.f.a.a.a(Unknown Source) com.groupdocs.comparison.internal.c.g.f.a.a.b(Unknown Source) com.groupdocs.comparison.internal.c.g.f.a.a.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.compare(Unknown Source) com.groupdocs.ui.comparison.Compare.service(Compare.java:60) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:744) com.groupdocs.comparison.internal.c.g.f.a.a.a(Unknown Source) com.groupdocs.comparison.internal.c.g.f.a.a.b(Unknown Source) com.groupdocs.comparison.internal.c.g.f.a.a.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.a(Unknown Source) com.groupdocs.comparison.Comparison.compare(Unknown Source) com.groupdocs.ui.comparison.Compare.service(Compare.java:60) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


#2

@inceptionEhv,

Thank you for taking interest in GroupDocs.Comparison for Java API and posting your concerns. We are investigating this issue and a ticket has been logged on GitHub. As we have any update, we shall notify you.


#3

I have modified the showcase project according to the updated documentation and I’m using the Comparer class now instead of Comparison. Instead of a read failure the comparer class simply return a ‘null’ result when comparing the simple html. I have tried the example that is distributed with the library itself and that one fails in the same manner returning a null result.


#4

@inceptionEhv,

We reproduced this issue at our end. Hence, it has been logged in our internal issue tracking system with ID:COMPARISONJAVA-377. As we have any update on it, we shall notify you.


#5

@inceptionEhv,

We’d like to share an update on COMPARISONJAVA-377. HTML conversion issue will be fixed in next release of the API. We’ll inform you once release is on-board.


#6

@sherter,

Your reported issue COMPARISONJAVA-377 is resolved in v18.6. Please integrate latest release of the API in your project.