首页 > 解决方案 > AEM6.3 nodetypes.cnd 导致 OakConstraint0004 通过 Eclipse 插件部署 DAM 资产?

问题描述

有时(不幸的是,即使经过数月的调查,我也无法将其sometimes缩小到一组可重现的条件)尝试通过 Eclipse AEM 插件将 DAM 资产发布到 AEM 时出现此错误:

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]

或者,没有长的水平滚动:

发布失败路径=/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]]:没有匹配的属性找到 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

标签: aemslingjcr

解决方案


推荐阅读