Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3844

NullPointerException in DefaultHierarchyManager.isExist() while calling from an EventListener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Won't Do
    • Affects Version/s: 4.4.4, 4.4.5
    • Fix Version/s: None
    • Component/s: core
    • Environment:
      Only tested FreeBSD and Windows XP platforms

      Description

      We are using multiple event listeners to export data from Magnolia and we are seeing multiple NullPointerException in our logs.

      The stacktrace for the exception:
      Exception in thread "Thread-48" java.lang.NullPointerException
      at info.magnolia.cms.core.DefaultHierarchyManager.isExist(DefaultHierarchyManager.java:399)
      at trimm.nxp.wcm.test.BugTest.execute(BugTest.java:14)
      at trimm.nxp.wcm.test.BugTest.onEvent(BugTest.java:20)
      at info.magnolia.module.observation.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:361)
      at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:104)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:662)

      The cause of this Exception lies in the "re.getCause()" call. This method tries to retrieve the rootCause, but the rootCause is null (see the attached screenshot).

      The attached class uses the data workspace and triggers this bug when running using the observation module (configuration export attached).

        Checklists

        Acceptance criteria

          Attachments

            Activity

              People

              Assignee:
              pbaerfuss Philipp Bärfuss
              Reporter:
              rtenberge Ronald Ten Berge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Checklists

                  Bug DoR
                  DoD