Hi,
We automate our builds to a qa server and staging server in TeamCity, then after the package gets deployed to author and publish, we flush the dispatcher via curl.
curl -L -u login:pw -X POST http://ca1ts-aem-author-qa01:4502/etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/config...
This methodology works great. The problem were having is the ConstraintViolationException being thrown. What does this mean?
javax.jcr.nodetype.ConstraintViolationException: No default node type available for /etc/acs-commons/dispatcher-flush/completefluch/flush/true
This is not the standard dispatcher flushing but one that was created for us by a consulting firm. I'm still pretty new to AEM. Do I need to create a specific node called flush inside this completefluch (it was misspelled) node and what type of node?
Here is a screenshot of our JCR for that directory.
Exception
07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush ------------------------------------------------ 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush Replication (DELETE) of /etc successful. 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui Create new HttpClient for Flush UI 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui * HTTP Version: 1.1 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui Sending GET request to http://localhost:80/dispatcher/invalidate.cache 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui sent. Response: 200 OK 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui ------------------------------------------------ 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui Sending message to localhost:80 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> GET /dispatcher/invalidate.cache HTTP/1.0 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> CQ-Action: Delete 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> CQ-Handle: /etc 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> CQ-Path: /etc 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> Referer: about:blank 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> Content-Length: 0 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui >> Content-Type: application/octet-stream 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui -- 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << HTTP/1.1 200 OK 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << Date: Tue, 07 Feb 2017 20:31:46 GMT 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << Server: Apache/2.2.13 (Win32) Communique/4.1.8 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << Content-Length: 13 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << Content-Type: text/html 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui << 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui Message sent. 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui ------------------------------------------------ 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.Agent.flush_ui Replication (DELETE) of /etc successful. 07.02.2017 12:31:46.020 *INFO* [10.20.14.29 [1486499505645] POST /etc/acs-commons/dispatcher-flush/completefluch/_jcr_content/configuration.flush.html HTTP/1.1] com.day.cq.replication.impl.ReplicatorImpl Processed replication: setup 0ms, checked 219ms, pre 16ms, build 0ms, queued 0ms, status 0ms, total 235ms 07.02.2017 12:31:46.020 *WARN* [pool-11-thread-16-null(null)] org.apache.jackrabbit.oak.jcr.session.NodeImpl Large multi valued property [/var/audit/com.day.cq.replication/etc/85fde99f-ff02-4029-8e80-dbb0935a2eb3/paths] detected (8024 values). 07.02.2017 12:31:46.035 *ERROR* [10.20.14.29 [1486499506035] POST /etc/acs-commons/dispatcher-flush/completefluch.html/flush/true/flush_ui/true HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Unable to create resource named true in /etc/acs-commons/dispatcher-flush/completefluch/flush 07.02.2017 12:31:46.035 *ERROR* [10.20.14.29 [1486499506035] POST /etc/acs-commons/dispatcher-flush/completefluch.html/flush/true/flush_ui/true HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing. javax.jcr.nodetype.ConstraintViolationException: No default node type available for /etc/acs-commons/dispatcher-flush/completefluch/flush/true at org.apache.jackrabbit.oak.util.TreeUtil.addChild(TreeUtil.java:186) at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.addChild(NodeDelegate.java:692) at org.apache.jackrabbit.oak.jcr.session.NodeImpl$5.perform(NodeImpl.java:296) at org.apache.jackrabbit.oak.jcr.session.NodeImpl$5.perform(NodeImpl.java:262) at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:202) at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112) at org.apache.jackrabbit.oak.jcr.session.NodeImpl.addNode(NodeImpl.java:262) at org.apache.jackrabbit.oak.jcr.session.NodeImpl.addNode(NodeImpl.java:247) at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.create(JcrResourceProvider.java:567) ... at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)
Views
Replies
Total Likes
Views
Replies
Total Likes