Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2743

NPE in oberservation manager due to null event handler list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.5
    • 15.4-rc-1
    • Collection
    • Unknown
    • N/A
    • N/A

    Description

      Sometimes, an error likeĀ 

      Failed to execute UIX with id [xwiki:Help.SupportPanel.WebHome] Cause: [null].
      java.lang.NullPointerException
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:333)
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:303)
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:354)
      at org.xwiki.job.internal.DefaultJobProgressManager.pushLevelProgress(DefaultJobProgressManager.java:59)
      at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:95)
      at org.xwiki.uiextension.internal.AbstractWikiUIExtension.execute(AbstractWikiUIExtension.java:120)
      at org.xwiki.uiextension.internal.AbstractWikiUIExtension.execute(AbstractWikiUIExtension.java:108)
      at jdk.internal.reflect.GeneratedMethodAccessor269.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)
      ...

      happens, e.g., in a panel. This can be seen in sporadic failures of web standards tests. The reason for this is that org.xwiki.collection.internal.PriorityEntries#getSorted is not fully thread safe: it is possible that it returns null if the sorted list of components is set to null by another thread between the check if the list is null and returning it.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: