Upload a file to Alfresco 5.0

hello,

i tried to upload a file to alfresco 5.0 with the Alfresco 4.2 Connector.

I get many errors and i am not sure how to use the connector.

My Settings:

incommingDocument is defined as application/octet-stream on the workflow-lane (intern pdf-Document)
the event into the step with the connector is set on finished.
i have an external AlfrescoServer.
Host: http://winalfresco01
Port: 8080
Username: admin
Password: admin

UploadingFile *: $(incommingDocument)
Filename:
Description:
MIME-Typ *: application/pdf
DestinationFolder *: /User%20Homes/

When i click on Test i get an error like this:

java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.connector.exception.SConnectorException: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: org.bonitasoft.engine.bpm.document.DocumentNotFoundException: USERNAME=ConnectorAPIAccessorImpl | org.bonitasoft.engine.document.SDocumentNotFoundException: Document not found: $(incommingDocument) for process instance: -1

When i try to change the following:
UploadingFile *: incommingDocument (as a Reference of the document)

i get the Message:

Not supported Parameter for testing:
Inputparameter “fileObject” uses a not callable value.
(it is difficult to translate the message)

Do you have any examples or hints for me?

Thanks

Jathagrimon

as far as I know Afresco connectors are version specific and the 4.2 ones do not work for version 5. You will need to find newer versions of the connectors…but last I heard it was “…can you update them for us…”.

Connectors are usually (though not always) supplied by the vendor of the target so - best to speak with Alfresco.

I’m currently using OpenKM for this functionality.

regards
Seán

ok, now i have changed the connector and want to try it with the cmis-Connector.

My Settings in CMIS-UploadFile:
User *: admin
pass *: admin
Repository-Name *: Main Repository
binding *: atompub
URL *: http://winalfresco01:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom
ServiceFields are empty

documentName *: (see below)
Folder above *: /
DestinationName *: myFile.pdf

I get different messages by different values in documentName-Field (i will add a list to describe it):

*documentName : incommingDocument (selected Refrerence of the document)
At the testing button on configuration panel i get the error:

  • Inputparameter “fileObject” uses a not callable value.
    (it is difficult to translate the message)*

When i try to test it with the process directly i get the error:
CONNECTOR_INSTANCE_ID=7 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Authentication provider does not implement AuthenticationProvider!"

*documentName : incommingDocument (selected Refrerence of the document)
At the testing button on configuration panel i get the error:

  • Inputparameter “fileObject” uses a not callable value.
    (it is difficult to translate the message)*

When i try to test it with the process directly i get the error:
CONNECTOR_INSTANCE_ID=4 | Declared return type class java.lang.String is not compatible with evaluated type class org.bonitasoft.engine.bpm.document.impl.DocumentImpl for expression incommingDocument

*documentName : $(incommingDocument)
At the testing button on configuration panel i get the error:
java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.connector.exception.SConnectorException: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: Failed to retrieve document $(incommingDocument)

When i try to test it with the process directly i get the error:
CONNECTOR_INSTANCE_ID=7 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Authentication provider does not implement AuthenticationProvider!"

Note: (incommingDocument is my DocumentVariable which is defined at the lane as application/pdf with intern pdf-document)*

Note2: removing geronimo-stax-api_1.0_spec-n.jar from the dependencies of the connector → i have done, otherwise the process is not executable.

HELP!