Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19287

java.lang.IllegalArgumentException when parsing a mediawiki document during solr index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.10.2
    • Fix Version/s: None
    • Component/s: Search - Solr
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      (First reported here: https://forum.xwiki.org/t/java-lang-illegalargumentexception-in-logs-after-upgrade-from-12-10-10-lts-to-13-10-2-lts/9638)

      After the upgrade from 12.10.10 LTS to 13.10.2 LTS I'm getting lots of exceptions in my Catalina log.

      I installed the official Xwiki LTS Debian packages on Debian 10 Buster.

      There were no error messages / warnings in the web-based upgrade wizard.

      [2022-01-02 15:05:26] [info] 2022-01-02 15:05:26,920 [XWiki Solr index thread] ERROR c.x.x.d.XWikiDocument          - Failed to get the defa
      ult edit mode for [xwiki:Sandbox.Formattest.WebHome]
      [2022-01-02 15:05:26] [info] java.lang.IllegalArgumentException: org.xwiki.contrib.mediawiki.syntax.internal.input.MediaWikiContentFilter referenced from a method is not visible from class loader
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.ensureVisible(Proxy.java:858)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.validateProxyInterfaces(Proxy.java:681)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.<init>(Proxy.java:627)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.<init>(Proxy.java:635)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$0(Proxy.java:415)
      [2022-01-02 15:05:26] [info] #011at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329)
      [2022-01-02 15:05:26] [info] #011at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:413)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1006)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.internal.DefaultFilterDescriptorManager.createFilterProxy(DefaultFilterDescriptorManager.java:348)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.internal.DefaultFilterDescriptorManager.createFilterProxy(DefaultFilterDescriptorManager.java:340)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:77)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.contrib.mediawiki.syntax.internal.parser.MediaWikiStreamParser.parse(MediaWikiStreamParser.java:89)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.contrib.mediawiki.syntax.internal.parser.MediaWikiParser.parse(MediaWikiParser.java:63)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.rendering.internal.parser.DefaultContentParser.parse(DefaultContentParser.java:62)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.rendering.internal.parser.DefaultContentParser.parse(DefaultContentParser.java:69)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:8822)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:8811)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:8653)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.getDefaultEditModeInternal(XWikiDocument.java:7199)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.getDefaultEditMode(XWikiDocument.java:7161)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.internal.sheet.DefaultModelBridge.getDefaultEditMode(DefaultModelBridge.java:71)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.sheet.internal.SheetDocumentDisplayer.isNewSheetSystem(SheetDocumentDisplayer.java:157)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.sheet.internal.SheetDocumentDisplayer.isSheetExpected(SheetDocumentDisplayer.java:152)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:98)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.getRenderedTitle(XWikiDocument.java:1778)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:103)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:151)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:499)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:408)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:376)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.Thread.run(Thread.java:829)
      [2022-01-02 15:05:26] [info] 2022-01-02 15:05:26,929 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX xwiki:Sandbox.Formattest.WebHome]
      [2022-01-02 15:05:26] [info] org.xwiki.search.solr.internal.api.SolrIndexerException: Failed to get input Solr document for entity 'xwiki:Sandbox.Formattest.WebHome'
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:158)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:499)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:408)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:376)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.Thread.run(Thread.java:829)
      [2022-01-02 15:05:26] [info] Caused by: java.lang.IllegalArgumentException: org.xwiki.contrib.mediawiki.syntax.internal.input.MediaWikiContentFilter referenced from a method is not visible from class loader
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.ensureVisible(Proxy.java:858)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.validateProxyInterfaces(Proxy.java:681)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.<init>(Proxy.java:627)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy$ProxyBuilder.<init>(Proxy.java:635)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$0(Proxy.java:415)
      [2022-01-02 15:05:26] [info] #011at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329)
      [2022-01-02 15:05:26] [info] #011at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:413)
      [2022-01-02 15:05:26] [info] #011at java.base/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1006)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.internal.DefaultFilterDescriptorManager.createFilterProxy(DefaultFilterDescriptorManager.java:348)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.internal.DefaultFilterDescriptorManager.createFilterProxy(DefaultFilterDescriptorManager.java:340)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:77)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.contrib.mediawiki.syntax.internal.parser.MediaWikiStreamParser.parse(MediaWikiStreamParser.java:89)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.contrib.mediawiki.syntax.internal.parser.MediaWikiParser.parse(MediaWikiParser.java:63)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.rendering.internal.parser.DefaultContentParser.parse(DefaultContentParser.java:62)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.rendering.internal.parser.DefaultContentParser.parse(DefaultContentParser.java:69)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:8822)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:8811)
      [2022-01-02 15:05:26] [info] #011at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:8653)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:112)
      [2022-01-02 15:05:26] [info] #011at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:151)
      [2022-01-02 15:05:26] [info] #011... 4 common frames omitted
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            GOhrner Gunter Ohrner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: