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

                 Key: MAGNOLIA-3844
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3844
             Project: Magnolia
          Issue Type: Bug
      Security Level: Public
          Components: core
    Affects Versions: 4.4.5, 4.4.4
         Environment: Only tested FreeBSD and Windows XP platforms
            Reporter: Ronald Ten Berge
            Assignee: Philipp Bärfuss
         Attachments: BugTest.java, 
config.modules.observation.config.listenerConfigurations.nxpTestListener.xml, 
HierarchyManagerBug.png

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to