I'm not a sling dev, but looks like the odd array gets created on a
RecursionTooDeepException [1] (line 101) then procedes to build the array on
line 125. Looking at the ResourceTraversor [2] (line 87) it iterates over
all the children, and if the count > maxResources you will get that too deep
exception.  I don't know where that maxResources are set (public constructor
to the JsonRendererServlet), but I'd guess that's your problem.  Hopefully
someone more familiar can be more specific, but it looks to me like you hit
a ceiling in the # of nodes that the json resolver will process at one time.
[1]
https://fisheye6.atlassian.com/browse/~br=trunk/sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/JsonRendererServlet.java?r=918067

[2]
https://fisheye6.atlassian.com/browse/~br=trunk/sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java?hb=true

--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/Strange-result-returned-from-the-1-json-servlet-Returned-a-list-instead-of-a-map-tp3435408p3435560.html
Sent from the Sling - Users mailing list archive at Nabble.com.

Reply via email to