Uploaded image for project: 'Websphere Commerce Integration'
  1. Websphere Commerce Integration
  2. MGNLWCS-115

WcsLoginLogoutFilter filter spams logs with ItemNotFoundException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.2
    • None
    • None
    • None
    • Kromeriz 56
    • 1

    Description

      WcsLoginLogoutFilter filter tries to get storeId from the page hierarchy, but if page is not WCS then this fails on "javax.jcr.ItemNotFoundException: Root node doesn't have a parent". And this spams log.

      2016-08-08 13:27:00,071 WARN  gnolia.wcs.integration.filter.WcsLoginLogoutFilter: Unable to obtain store id for node node /
      javax.jcr.ItemNotFoundException: Root node doesn't have a parent
      	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1754)
      	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1747)
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      	at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:1747)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
      	at info.magnolia.personalization.decoration.PersonalizationNodeWrapper.getParent(PersonalizationNodeWrapper.java:152)
      	at info.magnolia.wcs.integration.filter.WcsLoginLogoutFilter.getStoreId(WcsLoginLogoutFilter.java:155)
      	at info.magnolia.wcs.integration.filter.WcsLoginLogoutFilter.doFilter(WcsLoginLogoutFilter.java:110)
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdivilek Milan Divilek
              mdivilek Milan Divilek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD