我尝试更新 JCR 2.0 中的节点
InputStream content = node.getProperty("jcr:content").getProperty("jcr:data").getBinary().getStream();
//TODO same with stream
Binary value = ...;
Node contentNode = node.getProperty("jcr:content");
contentNode.setProperty("jcr:content", value);
Run Code Online (Sandbox Code Playgroud)
我收到异常“javax.jcr.nodetype.ConstraintViolationException:项目受保护”。怎么了?