My code:
79 ServiceRegistry serviceRegistry = (ServiceRegistry) beanFactory.getBean(ServiceRegistry.SERVICE_REGISTRY);
80 NodeService nodeService = serviceRegistry.getNodeService();
81
82 NodeRef nodeRef = new NodeRef("workspace://SpacesStore/" + IdNode);
83 System.out.println("Node: "+nodeRef.getId());
84 QName CUSTOM_ASPECT_QNAME = QName.createQName("custom.model", "tipo_documento");
85 nodeService.setProperty(nodeRef, CUSTOM_ASPECT_QNAME, propertyOne);
I get(in line 79):
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at Telas.SubMenuNovo.adicionaPropriedades(SubMenuNovo.java:79)
I want set up properties in a document with custom metadata with my application. The custom metadata just work at interface Alfresco Explorer. The line 83 prints ok the IDnode(Node of the document). Anyone help me? Thanks!