Get Error when I try to store a file in Alfresco 5.0 or create a directory using Soap Service

1
0
-1

I am new to Bonitasoft, I've created a SOAP web services that I tested before and it's working.
This is the configuration's parameters in Bonita connector Soap Web Services
** I'm using Bonita 7.2 and Alfresco 5.0 **

Form Configuration

The form have only a TextField and Button for calling web service and creating a Directory in Alfresco.
output operator : folderName Task value of : field_foldername

This is the connector configuration "Soap Web service"

Service NS : ttp://localhost:8080/integracionecm/ecm-ws
Service name : IntegracionECMService

SOAP action :
http://ecm-ws.com.pe/IntegracionECMImpl/createDocumentRequest

port name : IntegracionECMPort
end point address : http://localhost:8080/integracionecm/ecm-ws
binding : http://schemas.xmlsoap.org/soap/http
http://www.w3.org/2003/05/soap/bindings/HTTP/

envelope :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ecm="http://ecm-ws.com.pe">
<soapenv:Header/>
<soapenv:Body>
<ecm:createDirectory>
<folderName>/feeeeee</folderName>
</ecm:createDirectory>
</soapenv:Body>
</soapenv:Envelope>

** An error ocurred when I try to create a directory in Alfresco**

**GRAVE: THREAD_ID=122 | HOSTNAME=DESKTOP-F90L23S | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 20007, connectorDefinitionName = wsCreateDirectory] failed. The failure will be handled.
2015-11-05 16:30:14.754 -0500 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log 
GRAVE: THREAD_ID=122 | HOSTNAME=DESKTOP-F90L23S | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=6155796649811596649 | PROCESS_NAME=createDirectory | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1003 | ROOT_PROCESS_INSTANCE_ID=1003 | FLOW_NODE_DEFINITION_ID=6066836410177475766 | FLOW_NODE_INSTANCE_ID=20007 | FLOW_NODE_NAME=Step1 | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=wsCreateDirectory | CONNECTOR_INSTANCE_ID=20003 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List"
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=6155796649811596649 | PROCESS_NAME=createDirectory | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1003 | ROOT_PROCESS_INSTANCE_ID=1003 | FLOW_NODE_DEFINITION_ID=6066836410177475766 | FLOW_NODE_INSTANCE_ID=20007 | FLOW_NODE_NAME=Step1 | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=wsCreateDirectory | CONNECTOR_INSTANCE_ID=20003 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:325)
    at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:143)
    at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111)
    at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:131)
    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(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:128)
    at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:317)
    ... 14 more
Caused by: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:152)
    at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:122)
    ... 15 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    at org.bonitasoft.connectors.ws.cxf.SecureWSConnector.executeBusinessLogic(SecureWSConnector.java:164)
    at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)
    at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:69)
    at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:208)
    at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:179)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    ... 3 more**

**Can someone help me in resolving this error. I really appreciate thanks in advance **

Comments

Submitted by Sean McP on Tue, 11/17/2015 - 10:03

What version Alfresco?

If 3.4 or 4.2 it should work, but if using 5.x or above it will not. You will need to create new Connectors for Alfresco. There is no-known support for these connectors.

After reading through your log the actual error you are receiving is:

java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List

so if you are using 3.4 or 4.2 you may want to check the variable you are using...string should be a list.

regards
Sean

Submitted by vjrojasb on Tue, 11/17/2015 - 16:43

Hi Sean
I'm using "Soap Web Service connector" instead of Alfresco connector because as you said , its only supported for alfresco 3.4 and 4.2
Thanks ,
Victor

No answers yet.
Notifications