aem - 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
解决方案
推荐阅读
- python-3.x - 关于使用 skimage 执行基于区域边界的 RAG 的代码
- machine-learning - 梯度下降本身可以解决 ANN 中的非线性问题吗?
- python - 文件的异步下载
- python - 如何在熊猫中放置 2 个不同的数据框
- python - 如何通过同一个套接字连接发送多条消息?
- sql - 带有数据库更新的 SQL 选择案例
- python - 如何使用 scikit-learn API 实现元估计器?
- mysql - 如何允许任何用户在共享主机mysql中运行存储过程
- php - Laravel:如何处理表单请求中的可选数据?
- java - 如何从 kubernetes java 客户端连接到 Istio api 并检索虚拟服务?