Calling WebService (SOAP 1.2) fails with java.lang.IndexOutOfBoundsException: Index: 1, Size: 0

1
0
-1

Hi,

First time I try to call a WS in a Bonita BPM process. I'm calling a WebService we have already been able to call in many other different context.

This is the error detail: org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=8633674342897716852 | PROCESS_NAME=Save documents | PROCESS_VERSION=1.4 | PROCESS_INSTANCE_ID=5016 | ROOT_PROCESS_INSTANCE_ID=5015 | FLOW_NODE_DEFINITION_ID=-7539028856307647718 | FLOW_NODE_INSTANCE_ID=100062 | FLOW_NODE_NAME=Create document | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=Create Gescor Document | CONNECTOR_INSTANCE_ID=80008 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:332) at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:150) at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111) at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:125) 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:70) at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56) 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: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:120) at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:324) ... 12 more Caused by: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at com.bonitasoft.engine.connector.impl.ConnectorExecutorTimedOut.getValue(ConnectorExecutorTimedOut.java:54) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:114) ... 13 more Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.bonitasoft.connectors.ws.cxf.SecureWSConnector.executeBusinessLogic(SecureWSConnector.java:164) at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:74) at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:70) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:189) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:171) at java.util.concurrent.FutureTask.run(Unknown Source) ... 3 more

This is the WebService WSDL: http://srvazgescor01.cloudapp.net/GescorWebService/Documento.asmx?WSDL

Service NS: DocumentoService Service Name: http://tempuri.org/ SOAP action: http://tempuri.org/RegistarDocumento Port name: DocumentoServiceSoap12 End point address: http://srvazgescor01.cloudapp.net/GescorWebService/Documento.asmx Binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ Envelope:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Body>
    <tns:RegistarDocumento xmlns:tns="http://tempuri.org/">
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_Entidade>1</s1:ID_Entidade>
      </s1:d>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_TipoRegisto>6</s1:ID_TipoRegisto>
      </s1:d>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_ObjGestor>5</s1:ID_ObjGestor>
      </s1:d>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_Assunto>1</s1:ID_Assunto>
      </s1:d>
      <tns:EnviaEncAut>false</tns:EnviaEncAut>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_IdentidadeRegisto>5</s1:ID_IdentidadeRegisto>
      </s1:d>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_TipoEntrada>8</s1:ID_TipoEntrada>
      </s1:d>
      <s1:d xmlns:s1="http://tempuri.org/">
        <s1:ID_TipoConfidencialidade>1</s1:ID_TipoConfidencialidade>
      </s1:d>
      <tns:EncComProtocolo>false</tns:EncComProtocolo>
    </tns:RegistarDocumento>
  </env:Body>
</env:Envelope>

Didn't defined any HTTP headers.

1 answer

1
0
-1

Hi.

I have the same problem and nobody response, do you resolve this?

Notifications