'CmisRuntimeException: nodeRef is a mandatory parameter
I am trying to use OpenCMIS to create a content with certain type (we can call it namespace:documenttype)
I got this error:
Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException:
nodeRef is a mandatory parameter
I tried to create contents of all parent types for the certain type. They are fine.
namespace:documenttype does not have property or aspect called nodeRef.
The code
ContentStream contentStream = <sessionName>.getObjectFactory().createContentStream(
<documentName>, <bytes>.length, <mimetype>, <input>);
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
