You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Klco (JIRA)" <ji...@apache.org> on 2017/08/31 13:06:00 UTC
[jira] [Created] (SLING-7096) Stack Overflow Exception in
AdapterImplementations.getModelClassForResource
Dan Klco created SLING-7096:
-------------------------------
Summary: 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
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
(v6.4.14#64029)