Finally I found out the problem.
Ephesoft Community (at least on Windows) uses a very old version of opencmis. Indeed it uses a 0.2 incubation version.
I don't know if the version of that library is directly related whit the error, but for avoid it, you need to configure Ephesoft to create a cmis:document as a major version.
It can be done, changing a parameter in dcma_cmis configuration file.
From
cmis.document_versioning_state=NONE
To
cmis.document_versioning_state=MAJOR
Maybe it helps someone.