-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
4.4.4, 4.4.5
-
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).