sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Klco (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SLING-7096) Stack Overflow Exception in AdapterImplementations.getModelClassForResource
Date Thu, 18 Oct 2018 03:03:00 GMT

     [ https://issues.apache.org/jira/browse/SLING-7096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dan Klco closed SLING-7096.
---------------------------

> Stack Overflow Exception in AdapterImplementations.getModelClassForResource
> ---------------------------------------------------------------------------
>
>                 Key: SLING-7096
>                 URL: https://issues.apache.org/jira/browse/SLING-7096
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Sling Models Impl 1.4.4
>            Reporter: Dan Klco
>            Assignee: Dan Klco
>            Priority: Major
>
> Initially, I assumed it was fixed in the most recent version of Sling Models, as I wasn't
able to reproduce it in AEM 6.3, however it does seem to happen for ServletResources.
> https://github.com/PerficientDigital/AEM-DataLayer/issues/1
> The problem occurs when you call the AdapterImplementations.getModelClassForResource
method on a Resource has a ResourceType which resolves to the same resource. This causes an
infinite regression and eventually a stack overflow exception.
> http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/AdapterImplementations.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message