Robert Munteanu created SLING-3590:
--------------------------------------

             Summary: Exception when processing reordering of content nodes for 
partial coverage aggregates
                 Key: SLING-3590
                 URL: https://issues.apache.org/jira/browse/SLING-3590
             Project: Sling
          Issue Type: Bug
          Components: IDE
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
             Fix For: Sling Eclipse IDE 1.0.0


Assume the following filesystem structure

{code}
.
├── apps
│   └── example
│       └── item
│           └── html.jsp
└── content
    └── example (nt:unstructured)
        ├── .content.xml
        └── nested (nt:unstructured)
            └── .content.xml
{code}

When modifying the properties of /content/example ( in 
/content/example/.content.xml ) a NoSuchElementException is thrown

{code}
java.util.NoSuchElementException
        at java.util.ArrayList$Itr.next(ArrayList.java:834)
        at 
org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.reorderChildNodes(AddOrUpdateNodeCommand.java:174)
        at 
org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.update(AddOrUpdateNodeCommand.java:119)
        at 
org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:80)
        at 
org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:1)
        at org.apache.sling.ide.impl.vlt.JcrCommand.execute(JcrCommand.java:54)
        at 
org.apache.sling.ide.transport.TracingCommand.execute(TracingCommand.java:43)
        at 
org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.execute(SlingLaunchpadBehaviour.java:356)
        at 
org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishContentModule(SlingLaunchpadBehaviour.java:322)
        at 
org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:174)
        at 
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
        at 
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
        at 
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
        at 
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
        at 
org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3154)
        at 
org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to