Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16633

Possible StackOverflowError when initializing a new stub XWikiContext before XWiki is initialized

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.6
    • Fix Version/s: 11.7-rc-1
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Aug 01, 2019 2:12:15 PM org.apache.catalina.core.ApplicationDispatcher invoke
      SEVERE: Servlet.service() for servlet [resourceReferenceHandler] threw exception
      java.lang.StackOverflowError
      	at org.apache.commons.collections4.map.AbstractLinkedMap.createEntry(AbstractLinkedMap.java:295)
      	at org.apache.commons.collections4.map.AbstractLinkedMap.init(AbstractLinkedMap.java:134)
      	at org.apache.commons.collections4.map.AbstractHashedMap.<init>(AbstractHashedMap.java:152)
      	at org.apache.commons.collections4.map.AbstractLinkedMap.<init>(AbstractLinkedMap.java:112)
      	at org.apache.commons.collections4.map.LRUMap.<init>(LRUMap.java:181)
      	at org.apache.commons.collections4.map.LRUMap.<init>(LRUMap.java:161)
      	at org.apache.commons.collections4.map.LRUMap.<init>(LRUMap.java:131)
      	at org.apache.commons.collections4.map.LRUMap.<init>(LRUMap.java:93)
      	at com.xpn.xwiki.XWikiContext.clone(XWikiContext.java:956)
      	at com.xpn.xwiki.internal.DefaultXWikiStubContextProvider.createStubContext(DefaultXWikiStubContextProvider.java:108)
      	at com.xpn.xwiki.internal.XWikiContextProvider.createStubContext(XWikiContextProvider.java:92)
      	at com.xpn.xwiki.internal.XWikiContextProvider.getXWikiContext(XWikiContextProvider.java:81)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:65)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:1)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getContext(DefaultDocumentAccessBridge.java:110)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getCurrentUserReference(DefaultDocumentAccessBridge.java:825)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:103)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:1)
      	at org.xwiki.component.internal.AbstractEntityComponentManager.getComponentManagerInternal(AbstractEntityComponentManager.java:72)
      	at org.xwiki.component.internal.multi.AbstractGenericComponentManager.getComponentManager(AbstractGenericComponentManager.java:61)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:715)
      	at com.xpn.xwiki.XWiki.getConfiguration(XWiki.java:470)
      	at com.xpn.xwiki.XWiki.getURLFactoryService(XWiki.java:5780)
      	at com.xpn.xwiki.internal.DefaultXWikiStubContextProvider.createStubContext(DefaultXWikiStubContextProvider.java:118)
      	at com.xpn.xwiki.internal.XWikiContextProvider.createStubContext(XWikiContextProvider.java:92)
      	at com.xpn.xwiki.internal.XWikiContextProvider.getXWikiContext(XWikiContextProvider.java:81)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:65)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:1)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getContext(DefaultDocumentAccessBridge.java:110)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getCurrentUserReference(DefaultDocumentAccessBridge.java:825)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:103)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:1)
      	at org.xwiki.component.internal.AbstractEntityComponentManager.getComponentManagerInternal(AbstractEntityComponentManager.java:72)
      	at org.xwiki.component.internal.multi.AbstractGenericComponentManager.getComponentManager(AbstractGenericComponentManager.java:61)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:715)
      	at com.xpn.xwiki.XWiki.getConfiguration(XWiki.java:470)
      	at com.xpn.xwiki.XWiki.getURLFactoryService(XWiki.java:5780)
      	at com.xpn.xwiki.internal.DefaultXWikiStubContextProvider.createStubContext(DefaultXWikiStubContextProvider.java:118)
      	at com.xpn.xwiki.internal.XWikiContextProvider.createStubContext(XWikiContextProvider.java:92)
      	at com.xpn.xwiki.internal.XWikiContextProvider.getXWikiContext(XWikiContextProvider.java:81)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:65)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:1)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getContext(DefaultDocumentAccessBridge.java:110)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getCurrentUserReference(DefaultDocumentAccessBridge.java:825)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:103)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:1)
      	at org.xwiki.component.internal.AbstractEntityComponentManager.getComponentManagerInternal(AbstractEntityComponentManager.java:72)
      	at org.xwiki.component.internal.multi.AbstractGenericComponentManager.getComponentManager(AbstractGenericComponentManager.java:61)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:715)
      	at com.xpn.xwiki.XWiki.getConfiguration(XWiki.java:470)
      	at com.xpn.xwiki.XWiki.getURLFactoryService(XWiki.java:5780)
      	at com.xpn.xwiki.internal.DefaultXWikiStubContextProvider.createStubContext(DefaultXWikiStubContextProvider.java:118)
      	at com.xpn.xwiki.internal.XWikiContextProvider.createStubContext(XWikiContextProvider.java:92)
      	at com.xpn.xwiki.internal.XWikiContextProvider.getXWikiContext(XWikiContextProvider.java:81)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:65)
      	at com.xpn.xwiki.internal.XWikiContextProvider.get(XWikiContextProvider.java:1)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getContext(DefaultDocumentAccessBridge.java:110)
      	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getCurrentUserReference(DefaultDocumentAccessBridge.java:825)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:103)
      	at org.xwiki.component.internal.UserComponentManager.getCurrentReference(UserComponentManager.java:1)
      	at org.xwiki.component.internal.AbstractEntityComponentManager.getComponentManagerInternal(AbstractEntityComponentManager.java:72)
      	at org.xwiki.component.internal.multi.AbstractGenericComponentManager.getComponentManager(AbstractGenericComponentManager.java:61)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:715)
      	at com.xpn.xwiki.XWiki.getConfiguration(XWiki.java:470)
      	at com.xpn.xwiki.XWiki.getURLFactoryService(XWiki.java:5780)
      	at com.xpn.xwiki.internal.DefaultXWikiStubContextProvider.createStubContext(DefaultXWikiStubContextProvider.java:118)
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: