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

Many errors related to user mentions in console when upgrading XWiki

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Solved By
    • Affects Version/s: 12.6
    • Fix Version/s: None
    • Component/s: Mentions
    • Labels:
      None
    • Environment:
      Windows 10 Pro 64 bit, Firefox 79, using a local instance of XWiki 12.6 on MySQL 8, Tomcat 9.0.37
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Create an older instance of XWiki (e.g. 11.10.5) with a subwiki
      2. Create a global user on Main Wiki
      3. Create also a local user on subwiki
      4. Close the instance
      5. Go to the newer instance (e.g. 12.6) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version

      6. Start XWiki and follow DW to the end
      7. Run also the DW for the subwiki

      EXPECTED RESULTS

      No warnings/errors are displayed.

      ACTUAL RESULTS

      Near the DW completion, there are many errors in console related to user mentions.
      Partial stacktrace (full version attached):

      2020-08-12 13:36:10,886 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,888 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,891 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,893 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,894 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,896 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,898 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,899 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,900 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,903 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,905 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]]. Cause [NullPointerException: ].
      2020-08-12 13:36:10,905 [Mentions thread] ERROR i.DefaultMentionsEventExecutor - [documentReference = [xwiki:Main.WebHome], version = [2.1], authorReference = [xwiki:XWiki.ILIE], wikiId = [xwiki]] abandoned because it has failed to many times.

      Then, on the last step when click 'Continue', the following stacktrace is displayed:

      2020-08-12 13:45:27,250 [http-nio-1115-exec-4 - http://localhost:1115/xwiki/bin/ssx/XWiki/Mentions/MentionsMacro?language=en&docVersion=1.1] WARN  j.e.i.FileDataWriter           - Can't open directory channel. Log directory fsync won't be performed.
      2020-08-12 13:45:27,253 [http-nio-1115-exec-4 - http://localhost:1115/xwiki/bin/ssx/XWiki/Mentions/MentionsMacro?language=en&docVersion=1.1] ERROR .s.DefaultScriptServiceManager - Failed to lookup script service for role hint [mentions] 
      org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.mentions.script.MentionsScriptService] identified by type [interface org.xwiki.script.service.ScriptService] and hint [mentions]
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:210)
              at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
              at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
              at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
              at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
              at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
              at org.xwiki.script.internal.service.DefaultScriptServiceManager.get(DefaultScriptServiceManager.java:65)
              at jdk.internal.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.velocity.runtime.parser.node.GetExecutor.execute(GetExecutor.java:117)
              at org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:711)
              at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:215)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:246)
              at com.xpn.xwiki.web.sx.SxDocumentSource.getContent(SxDocumentSource.java:154)
              at com.xpn.xwiki.web.sx.AbstractSxAction.renderExtension(AbstractSxAction.java:86)
              at com.xpn.xwiki.web.sx.AbstractSxAction.render(AbstractSxAction.java:138)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:560)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.mentions.internal.DefaultMentionsEventExecutor] identified by type [interface org.xwiki.mentions.internal.MentionsEventExecutor] and hint [default]
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
              at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
              ... 68 common frames omitted
      Caused by: jetbrains.exodus.ExodusException: Can't acquire environment lock after 0 ms.
      
       Lock owner info:
      null
              at jetbrains.exodus.log.Log.tryLock(Log.java:935)
              at jetbrains.exodus.log.Log.<init>(Log.java:91)
              at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)
              at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)
              at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:104)
              at jetbrains.exodus.env.Environments.newInstance(Environments.java:49)
              at jetbrains.exodus.env.Environments.newInstance(Environments.java:39)
              at ch.rasc.xodusqueue.XodusQueue.<init>(XodusQueue.java:62)
              at ch.rasc.xodusqueue.XodusBlockingQueue.<init>(XodusBlockingQueue.java:48)
              at org.xwiki.mentions.internal.async.DefaultMentionsBlockingQueueProvider.initBlockingQueue(DefaultMentionsBlockingQueueProvider.java:57)
              at org.xwiki.mentions.internal.DefaultMentionsEventExecutor.initialize(DefaultMentionsEventExecutor.java:92)
              at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
              ... 72 common frames omitted

        Attachments

        1. Error_in_DW.png
          89 kB
          Ilie Andriuta
        2. Full stacktrace.txt
          36 kB
          Ilie Andriuta

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: