I have a request to add a working cmis plugin for version 4.2.
Plugin from version 4.0 has stopped working.
Tnx 
Caused by: java.lang.NoSuchMethodError: ‘java.util.Map org.cmdbuild.dms.cmis.CmisDmsProviderService.getConfigs(java.lang.Class, java.lang.Object, java.lang.String)’
at org.cmdbuild.dms.cmis.CmisDmsProviderService.getConfigs(CmisDmsProviderService.java:278) ~[cmdbuild-dms-cmis-1.0.1.jar:4.0.5]
at org.cmdbuild.plugin.manager.PluginManagerServiceImpl.lambda$getConfigs$1(PluginManagerServiceImpl.java:88) ~[cmdbuild-plugin-core-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.utils.lang.CmPreconditions.applyOrNull(CmPreconditions.java:240) ~[cmdbuild-utils-lang-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.plugin.manager.PluginManagerServiceImpl.getConfigs(PluginManagerServiceImpl.java:88) ~[cmdbuild-plugin-core-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.service.rest.v4.wshelpers.SystemPluginHelper.serializePluginDetailed(SystemPluginHelper.java:72) ~[cmdbuild-services-rest-v4-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
Hello,
we have uploaded the updated version of the plugin compatible with CMDBuild 4.2 on SourceForge. You can proceed with the download and testing.
We remain available for any feedback.
1 Like
Thank you for updating the plugin.
The plugin loads into cmdbuild without any problems,
but when I try to add an attachment, I get the error.
Problem is with: P:cm:author", "P:cm:titled"
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type ‘P:cm:author’ is unknown!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:499) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:701) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:976) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:93) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:153) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:131) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:836) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:439) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1159) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:471) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.cmdbuild.dms.cmis.CmisDmsProviderService.create(CmisDmsProviderService.java:221) ~[cmdbuild-dms-cmis-2.0.0.jar:2.0.0]
at org.cmdbuild.dms.core.DmsServiceImpl.doCreate(DmsServiceImpl.java:486) ~[cmdbuild-dms-core-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.dms.core.DmsServiceImpl.create(DmsServiceImpl.java:361) ~[cmdbuild-dms-core-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.service.rest.common.helpers.AttachmentWsHelper.create(AttachmentWsHelper.java:96) ~[cmdbuild-services-rest-commons-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.service.rest.common.helpers.AttachmentWsHelper.create(AttachmentWsHelper.java:71) ~[cmdbuild-services-rest-commons-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at org.cmdbuild.service.rest.v4.endpoint.CardAttachmentWs.create(CardAttachmentWs.java:108) ~[cmdbuild-services-rest-v4-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.cmdbuild.utils.ws3.inner.WsRequestMethodHandler.handleRequest(WsRequestMethodHandler.java:82) ~[cmdbuild-utils-ws3-4.2-DEV-SNAPSHOT.jar:4.2-DEV-SNAPSHOT]
… 92 common frames omitted
If you are using Alfresco as your DMS, could you please verify that the XML models have been configured as described in the official documentation?
I use : chemistry-opencmis-server-fileshare-1.1.0
It seems to me that these two fields were added specifically for Alfresco and the plugin will not work with other CMIS implementations. Can I count on a solution to this problem?
Alfresco attributes are being pushed by the CMD Build side during createDocument().
OpenCMIS cannot resolve such secondary kinds and throws because the fileshare CMIS backend does not support them.