Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28259

Fix NoClassDefFoundError in 'nuxeo-diff' addon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF17
    • Component/s: Diff

      Description

      This is the continuation of NXP-27615 that seems not to have fixed the missing library nekohtml-x.y.z.jar in $NUXEO_HOME/nxserver/lib/.

      The following stacktrace sill appears when comparing e.g. the main blob ( a text file) of 2 document versions, which contains a difference:

      Caused by: java.lang.NoClassDefFoundError: org/cyberneko/html/parsers/SAXParser
              at org.outerj.daisy.diff.helper.NekoHtmlParser.parse(NekoHtmlParser.java:46)
              at org.outerj.daisy.diff.HtmlCleaner.cleanAndParse(HtmlCleaner.java:41)
              at org.nuxeo.ecm.diff.content.adapter.HtmlContentDiffer.getContentDiff(HtmlContentDiffer.java:127)
              at org.nuxeo.ecm.diff.content.adapter.base.ConverterBasedContentDiffAdapter.getContentDiffBlobs(ConverterBasedContentDiffAdapter.java:110)
              at org.nuxeo.ecm.diff.content.adapter.base.AbstractContentDiffAdapter.getFileContentDiffBlobs(AbstractContentDiffAdapter.java:59)
              at org.nuxeo.ecm.diff.content.restlet.ContentDiffRestlet.initCachedContentDiffBlobs(ContentDiffRestlet.java:201)
              at org.nuxeo.ecm.diff.content.restlet.ContentDiffRestlet.handle(ContentDiffRestlet.java:130)
              at org.nuxeo.ecm.platform.ui.web.restAPI.ThreadSafeRestletFilter.doHandle(ThreadSafeRestletFilter.java:48)
              at org.restlet.routing.Filter.handle(Filter.java:197)
              at org.restlet.routing.Filter.doHandle(Filter.java:150)
              at org.restlet.routing.Filter.handle(Filter.java:197)
              at org.restlet.routing.Router.doHandle(Router.java:422)
              at org.restlet.routing.Router.handle(Router.java:641)
              at org.restlet.ext.servlet.ServletAdapter.service(ServletAdapter.java:195)
              at org.nuxeo.ecm.platform.ui.web.restAPI.RestletServlet.service(RestletServlet.java:116)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              ... 56 more
      Caused by: java.lang.ClassNotFoundException: org.cyberneko.html.parsers.SAXParser
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1343)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1173)
              ... 73 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m