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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 4.4.4, 4.4.5
    • core
    • Only tested FreeBSD and Windows XP platforms

      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).

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD