Upload .docx file in Alfresco folder Problem

1
0
-1

I want to upload folder using bonita connector in folder path like Repository> News> Hello> folder. Its uploading all other format files like .pdf .png .jpg but its not uploading .docx file. Its uploading .docx file when folder path is like Repository> News> folder. Its giving error like.

Error:

FLOW_NODE_INSTANCE_ID=151 | FLOW_NODE_NAME=Step2 | CONNECTOR_IMPLEMENTATION_CLASS_NAME=uploaddoc | CONNECTOR_INSTANCE_ID=27 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:275)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:148)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:114)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:138)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:125)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:269)
... 14 more
Caused by: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:149)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:122)
... 15 more
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomEntryWriter.(AtomEntryWriter.java:84)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:116)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1028)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:75)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:449)
at org.bonitasoft.connectors.cmis.cmisclient.AbstractCmisClient.uploadNewDocument(AbstractCmisClient.java:186)
at org.bonitasoft.connectors.cmis.UploadNewDocument.executeBusinessLogic(UploadNewDocument.java:59)
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:73)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:205)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:176)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more

1 answer

1
0
-1

If t works for all other document types and not docx it sounds like a bug.

Please open a Bug Report here:
https://bonita.atlassian.net

regards
Seán

PS: I realise this may not be the answer you are looking for but it's the best we can do for this type of error on the community forum, please mark as resolved so others don't have to reply.

Notifications