有时候(不幸的是,即使经过几个月的调查,我也无法将sometimes
缩小到一组可重复的条件),当尝试通过Eclipse AEM插件将DAM资产发布到AEM时,出现了此错误:< / p>
Failed publishing path=/content/dam/website-demo/issue-replication/ExampleSVG.svg/jcr:content/renditions/original, result=JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException - javax.jcr.nodetype.ConstraintViolationException: OakConstraint0004: /content/dam/website-demo/issue-replication/ExampleSVG.svg/jcr:content/renditions/original/jcr:content[[oak:Resource]]: No matching property definition found for jcr:uuid = 139d4eeb-4308-4b01-8993-c3cb4f7c34c4]
或者,无需长时间水平滚动:
发布失败 path = / content / dam / website-demo / issue-replication / ExampleSVG.svg / jcr:content / renditions / original, result = JcrResult [成功:错误,例外: org.apache.sling.ide.transport.RepositoryException- javax.jcr.nodetype.ConstraintViolationException:OakConstraint0004: /content/dam/website-demo/issue-replication/ExampleSVG.svg/jcr:content/renditions/original/jcr:content[[oak:Resource]]: 找不到jcr:uuid =的匹配属性定义 139d4eeb-4308-4b01-8993-c3cb4f7c34c4]
经过几个月的错误线索,我终于怀疑这可能是由于nodetypes.cnd
中缺少定义所致。可以吗?我使用OOTB附带的任何东西:
<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<'rep'='internal'>
<'dam'='http://www.day.com/dam/1.0'>
<'jcr'='http://www.jcp.org/jcr/1.0'>
[sling:OrderedFolder] > sling:Folder
orderable
+ * (nt:base) = sling:OrderedFolder version
[sling:Folder] > nt:folder
- * (undefined) multiple
- * (undefined)
+ * (nt:base) = sling:Folder version
[rep:RepoAccessControllable]
mixin
+ rep:repoPolicy (rep:Policy) protected ignore
[dam:Asset] > nt:hierarchyNode
primaryitem jcr:content
+ jcr:content (dam:AssetContent) = dam:AssetContent
+ * (nt:base) = nt:base version
[dam:AssetContent] > nt:unstructured
+ metadata (nt:unstructured)
+ related (nt:unstructured)
+ renditions (nt:folder)
导致我找到此文件的原因是对此可能相关但最终不同的问题的最高答案:javax.jcr.nodetype.ConstraintViolationException: No matching property definition: PROPERTY