cancel
Showing results for 
Search instead for 
Did you mean: 

Secondary types error with CMIS 1.1

ephesoft
Champ in-the-making
Champ in-the-making
Hi,

I am facing following issue with Alfresco 5.0.3 with CMIS 1.1:

Caused by: java.lang.IllegalArgumentException: Secondary types property contains a type that is not a secondary type: P:sj:location
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:350)
at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:343)

Please let me know the what more artefacts you need and probable cause of the issue.

Thanks,
Diksha
4 REPLIES 4

gravitonian
Star Collaborator
Star Collaborator
Hi,

How does the content model definition look like for P:sj:location, is it starting like this:


<aspect name="sj:location">…

ephesoft
Champ in-the-making
Champ in-the-making
Yes the aspect name is "sj:location".

vandoor
Champ in-the-making
Champ in-the-making
I've the same problem with alfresco 4.2 community and the secondary type "P:cm:titled".
Have you find a solution?

thanks
Geoffrey

vandoor
Champ in-the-making
Champ in-the-making
Hi, i've find a solution in another post.

I'm using OpenCMIS and the session parameter FORCE_CMIS_VERSION is not used (correctly).
You have to specify de repository url [http://{server}/alfresco/api/-default-/public/cmis/versions/1.1/atom] to use CMIS 1.1.