Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-08 Thread Robert Munteanu
On Thu, 2016-03-03 at 13:13 -0800, Andreas Schaefer Sr. wrote: > I tried to do some testing in Eclipse but I cannot connect. Always > get the exception > Connection Refused. > > No repository found at http://localhost:4052/ > http://localhost:4052/server/-/jcr:root : java.net.ConnectException: >

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-03 Thread Andreas Schaefer Sr.
I tried to do some testing in Eclipse but I cannot connect. Always get the exception Connection Refused. No repository found at http://localhost:4052/ http://localhost:4052/server/-/jcr:root : java.net.ConnectException: Connection refused http://localhost:4052/crx/-/jcr:root :

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-03 Thread Robert Munteanu
On Thu, 2016-03-03 at 06:57 -0800, Andreas Schaefer Sr. wrote: > Hi Robert > > Not sure why but I think this is a timing issue as a 100ms delay does > prevent it for me. > > Ruben was suggesting to change the order of the updates where the > /renditions/original is added last (after the other

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-03 Thread Andreas Schaefer Sr.
Hi Robert Not sure why but I think this is a timing issue as a 100ms delay does prevent it for me. Ruben was suggesting to change the order of the updates where the /renditions/original is added last (after the other renditions) but I think that is just masking the problem once more. I think

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-03 Thread Robert Munteanu
On Wed, 2016-03-02 at 17:05 -0800, Andreas Schaefer Sr. wrote: > I went ahead and took out any changed resource that contains a path > with /renditions/ but not /renditions/original > > That solves the issue if a workflow is present and active but, of > course, if the workflow is not enabled then

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-02 Thread Andreas Schaefer Sr.
I went ahead and took out any changed resource that contains a path with /renditions/ but not /renditions/original That solves the issue if a workflow is present and active but, of course, if the workflow is not enabled then there will be no renditions. We could make it configurable to ignore

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-02 Thread Andreas Schaefer Sr.
Hi Robert Yes, the Workflow are the most likely culprit as I did not encounter a problem when the Workflow were disabled but as soon as I switched them back on the error was back. So I am wondering if the /renditions folder should be replicated at all. BTW the error occurs even if the

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-03-02 Thread Robert Munteanu
On Mon, 2016-02-29 at 16:02 -0800, Andreas Schaefer Sr. wrote: > Sorry for the late reply but I got bogged down by a customer going > live. > > Here is the stack trace: >  > Caused by: org.apache.sling.ide.transport.RepositoryException: > javax.jcr.ItemExistsException: Cannot add child node >

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-02-29 Thread Andreas Schaefer Sr.
Sorry for the late reply but I got bogged down by a customer going live. Here is the stack trace: [ 122101] ERROR - plication.impl.ApplicationImpl - org.apache.sling.ide.io.ConnectorException: /content/dam/aembase/asset.jpg/jcr:content/renditions/cq5dam.web.1280.1280.jpeg

Re: Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-02-18 Thread Robert Munteanu
Hi Andy, On Wed, 2016-02-17 at 19:41 -0500, Andreas Schaefer Sr. wrote: > Hi > > During the development of the IntelliJ plugin I ran into some random > failures to deploy. > Looking deeper I save that the failure is happening when > session.save() is called and > to my surprise a slight delay

Random Failure to Deploy a File using AddOrUpdateNodeCommand

2016-02-17 Thread Andreas Schaefer Sr.
Hi During the development of the IntelliJ plugin I ran into some random failures to deploy. Looking deeper I save that the failure is happening when session.save() is called and to my surprise a slight delay (Thread.sleep(100)) does fix it on my Mac. The code is in JcrCommand inside the