Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Is there JCR API to get/reset page/node data

Avatar

Former Community Member

Following is snippet code but last happen exception:

session = repository.login(credentials); Node root = session.getRootNode(); Node cNode = root.getNode("content/geometrixx/en/services/banking"); cNode = cNode.getNode("jcr:content"); System.out.println(cNode.getProperty("title").getValue().getString());

 

Exception in thread "main" javax.jcr.PathNotFoundException: title at org.apache.jackrabbit.jcr2spi.NodeImpl.getProperty(NodeImpl.java:474) at com.globalsight.cn.CQ5Test.testWrite(CQ5Test.java:62) at com.globalsight.cn.CQ5Test.main(CQ5Test.java:49)

 

 

Anyone could help see it?

Thanks in advance.

0 Replies