04-25-2007 07:08 AM
Node rootNode = session.getRootNode();
// first, access the company home
Node companyHome = rootNode.getNode("app:company_home");
Node rssFeeds = companyHome.getNode("app:user_homes");
//To get items from rss feeds.
// create the content nodegud morning
Node channelContent = rssFeeds.addNode("cm:","dml:rsscontent");
org.alfresco.service.namespace.NamespaceException: Namespace prefix dml is not mapped to a namespace URI
at org.alfresco.service.namespace.QName.createQName(QName.java:103)
at org.alfresco.service.namespace.QName.createQName(QName.java:125)
at org.alfresco.jcr.item.NodeImpl.addNode(NodeImpl.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:138)
at $Proxy82.addNode(Unknown Source)
at com.cognizant.digitalmedialab.cms.business.JCRManagerMeta.getJCRRepository(JCRManagerMeta.java:46)
at com.cognizant.digitalmedialab.cms.business.RssFeeds.getChannelDetails(RssFeeds.java:34)
at com.cognizant.digitalmedialab.cms.business.JCRManagerMeta.main(JCRManagerMeta.java:107)
05-04-2007 12:27 PM
05-07-2007 01:32 AM
05-07-2007 02:03 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.