Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11152

ClassNotFoundException: com.uwyn.jhighlight.renderer.XhtmlRendererFactory

    XMLWordPrintableJSON

    Details

      Description

      We get the following error when trying to index/extract a tgz file with Solr 6.6.0:

      Caused by: java.lang.NoClassDefFoundError: com/uwyn/jhighlight/renderer/XhtmlRendererFactory
      	at org.apache.tika.parser.code.SourceCodeParser.getRenderer(SourceCodeParser.java:132)
      	at org.apache.tika.parser.code.SourceCodeParser.parse(SourceCodeParser.java:111)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)
      	at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:102)
      	at org.apache.tika.parser.pkg.PackageParser.parseEntry(PackageParser.java:219)
      	at org.apache.tika.parser.pkg.PackageParser.parse(PackageParser.java:182)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)
      	at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:102)
      	at org.apache.tika.parser.pkg.PackageParser.parseEntry(PackageParser.java:219)
      	at org.apache.tika.parser.pkg.PackageParser.parse(PackageParser.java:182)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)
      	at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:102)
      	at org.apache.tika.parser.pkg.CompressorParser.parse(CompressorParser.java:164)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:228)
      	at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2477)
      	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:529)
      	... 29 more
      Caused by: java.lang.ClassNotFoundException: com.uwyn.jhighlight.renderer.XhtmlRendererFactory
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 60 more
      

      It seems like the dependency com.uwyn:jhighlight:1.0 is missing in contrib/extraction/lib in the Solr installation.

      When placing it there, the indexation works perfectly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simon.endele Simon Endele
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: