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

NPE when inserting some macros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.4.2, 13.10.7, 14.5
    • 13.10.5, 14.4
    • Mentions
    • None
    • Windows 11 Pro 64 bit, Chrome 102, using a local instance of XWiki 14.4 on Oracle 19c, Tomcat 9.0.63
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Import the attached page containing some macros
      2. Navigate to the imported page

      EXPECTED RESULTS

      No errors are displayed in XWiki console.

      ACTUAL RESULTS

      The following stacktrace is displayed in the console:

      2022-05-25 15:33:38,466 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018453,docId=-1687194998492587839,type=mention,attempts=1,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,506 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018467,docId=-1687194998492587839,type=mention,attempts=2,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018506,docId=-1687194998492587839,type=mention,attempts=3,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=4,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=5,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=6,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=7,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,521 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=8,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,537 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018521,docId=-1687194998492587839,type=mention,attempts=9,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,537 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018537,docId=-1687194998492587839,type=mention,attempts=10,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,537 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018537,docId=-1687194998492587839,type=mention,attempts=11,stop=false,wikiId=xwiki,version=1.1]]. Cause: [NullPointerException: Name is null].
      2022-05-25 15:33:38,537 [task-manager-consumer] ERROR o.x.i.i.DefaultTasksManager    - [org.xwiki.index.internal.TaskData@5c8bf9c7[timestamp=1653482018537,docId=-1687194998492587839,type=mention,attempts=11,stop=false,wikiId=xwiki,version=1.1]] abandoned because it has failed too many times.

      In XWiki 13.10.5 when inserted a User Mentions Macro I reproduced the following stacktrace:

      2022-05-25 15:57:53,243 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,244 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,244 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,245 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,246 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,246 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,246 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,247 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,248 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,250 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,251 [Mentions thread] WARN  i.DefaultMentionsEventExecutor - Error during mention analysis of task [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]]. Cause [NullPointerException: Name is null].
      2022-05-25 15:57:53,252 [Mentions thread] ERROR i.DefaultMentionsEventExecutor - [documentReference = [xwiki:aaa.WebHome], version = [1.1], authorReference = [xwiki:XWiki.Admin], wikiId = [xwiki]] abandoned because it has failed to many times.

       

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: