Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12431

[BundledScriptTracker] StackOverflow / endless recursion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Servlets Resolver 2.11.2
    • None
    • Scripting
    • None

    Description

      [FelixLogListener] Events.Framework.org.apache.sling.servlets.resolver FrameworkEvent ERROR (java.lang.StackOverflowError)
      java.lang.StackOverflowError: null
      	at java.base/java.util.HashSet.iterator(HashSet.java:173)
      	at java.base/java.util.AbstractSet.hashCode(AbstractSet.java:120)
      	at java.base/java.util.Arrays.hashCode(Arrays.java:4685)
      	at java.base/java.util.Objects.hash(Objects.java:146)
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledRenderUnitCapabilityImpl.hashCode(BundledRenderUnitCapabilityImpl.java:115) [org.apache.sling.servlets.resolver:2.11.2]
      	at java.base/java.util.Arrays.hashCode(Arrays.java:4685)
      	at java.base/java.util.Objects.hash(Objects.java:146)
      	at org.apache.sling.servlets.resolver.internal.bundle.TypeProviderImpl.hashCode(TypeProviderImpl.java:53) [org.apache.sling.servlets.resolver:2.11.2]
      	at java.base/java.util.HashMap.hash(HashMap.java:340)
      	at java.base/java.util.HashMap.put(HashMap.java:608)
      	at java.base/java.util.HashSet.add(HashSet.java:220)
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:678) [org.apache.sling.servlets.resolver:2.11.2]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
          [...]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
      	at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.collectInheritanceChain(BundledScriptTracker.java:681) [org.apache.sling.servlets.resolver:2.11.2]
      

      Unfortunately I don't have the entire call trace here, but we should have a way to prevent that StackOverflow.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joerghoh Joerg Hoh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: