You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/07/31 15:42:31 UTC

[jira] Created: (SLING-595) Webloader ui ROOT.json fails to create subnodes

Webloader ui ROOT.json fails to create subnodes
-----------------------------------------------

                 Key: SLING-595
                 URL: https://issues.apache.org/jira/browse/SLING-595
             Project: Sling
          Issue Type: Bug
          Components: Samples
            Reporter: Bertrand Delacretaz
            Priority: Minor


This used to work, but I just noticed that the initial content loader fails to create the subnodes defined by the ROOT.json file of the samples/webloader/ui.

Error in the logs:
java.util.EmptyStackException
        at java.util.Stack.peek(Stack.java:79)
        at java.util.Stack.pop(Stack.java:61)
        at org.apache.sling.jcr.contentloader.internal.ContentLoader.finishNode(ContentLoader.java:367)
        at org.apache.sling.jcr.contentloader.internal.JsonReader.createNode(JsonReader.java:120)

And the ROOT.json file is:

{
	"bin" : {
	    "jcr:primaryType" : "nt:unstructured",
	    "sling" : {
		    "jcr:primaryType" : "nt:unstructured",
		    "webloader" : {
			    "jcr:primaryType" : "nt:unstructured",
			    "sling:resourceType" : "sling/webloader"
		    }
	    }
	}
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-595) Webloader ui ROOT.json fails to create subnodes

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618676#action_12618676 ] 

Bertrand Delacretaz commented on SLING-595:
-------------------------------------------

I think it is better to use ROOT.json only for setting properties on the root node, so I'll just rename ROOT.json to bin.json and remove the "bin" level in it.

> Webloader ui ROOT.json fails to create subnodes
> -----------------------------------------------
>
>                 Key: SLING-595
>                 URL: https://issues.apache.org/jira/browse/SLING-595
>             Project: Sling
>          Issue Type: Bug
>          Components: Samples
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> This used to work, but I just noticed that the initial content loader fails to create the subnodes defined by the ROOT.json file of the samples/webloader/ui.
> Error in the logs:
> java.util.EmptyStackException
>         at java.util.Stack.peek(Stack.java:79)
>         at java.util.Stack.pop(Stack.java:61)
>         at org.apache.sling.jcr.contentloader.internal.ContentLoader.finishNode(ContentLoader.java:367)
>         at org.apache.sling.jcr.contentloader.internal.JsonReader.createNode(JsonReader.java:120)
> And the ROOT.json file is:
> {
> 	"bin" : {
> 	    "jcr:primaryType" : "nt:unstructured",
> 	    "sling" : {
> 		    "jcr:primaryType" : "nt:unstructured",
> 		    "webloader" : {
> 			    "jcr:primaryType" : "nt:unstructured",
> 			    "sling:resourceType" : "sling/webloader"
> 		    }
> 	    }
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-595) Webloader ui ROOT.json fails to create subnodes

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz closed SLING-595.
-------------------------------------

    Resolution: Fixed

Fixed in revision 681368, using a bin.json file instead of ROOT.json

> Webloader ui ROOT.json fails to create subnodes
> -----------------------------------------------
>
>                 Key: SLING-595
>                 URL: https://issues.apache.org/jira/browse/SLING-595
>             Project: Sling
>          Issue Type: Bug
>          Components: Samples
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> This used to work, but I just noticed that the initial content loader fails to create the subnodes defined by the ROOT.json file of the samples/webloader/ui.
> Error in the logs:
> java.util.EmptyStackException
>         at java.util.Stack.peek(Stack.java:79)
>         at java.util.Stack.pop(Stack.java:61)
>         at org.apache.sling.jcr.contentloader.internal.ContentLoader.finishNode(ContentLoader.java:367)
>         at org.apache.sling.jcr.contentloader.internal.JsonReader.createNode(JsonReader.java:120)
> And the ROOT.json file is:
> {
> 	"bin" : {
> 	    "jcr:primaryType" : "nt:unstructured",
> 	    "sling" : {
> 		    "jcr:primaryType" : "nt:unstructured",
> 		    "webloader" : {
> 			    "jcr:primaryType" : "nt:unstructured",
> 			    "sling:resourceType" : "sling/webloader"
> 		    }
> 	    }
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.