SQL Updating BDM on h2 (ok!) but & Postgres (no ok!)

1
0
-1

Helo! My code updates the required field in "BDM" when using the h2 database, but using the TOMCAT bundle with Postgres database an error occurs.

my connector output

import groovy.json.JsonBuilder;

resultset.next ();

Long i = resultset.getLong ('IDOS');

return i

---------------

Catalina log ....

2021-04-05 17:51:33.421 -0300 GRAVE (ConnectorExecutor-2) org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=80 | HOSTNAME=Win7-PC | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 120003, connectorDefinitionName = ObtemOS] failed. The failure will be handled.
2021-04-05 17:51:33.562 -0300 GRAVE (ConnectorExecutor-2) org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=80 | HOSTNAME=Win7-PC | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=7089742653120197280 | PROCESS_NAME=Solicitação de Serviço | PROCESS_VERSION=9.0 | PROCESS_INSTANCE_ID=6001 | ROOT_PROCESS_INSTANCE_ID=6001 | FLOW_NODE_DEFINITION_ID=4951245809224895010 | FLOW_NODE_INSTANCE_ID=120003 | FLOW_NODE_NAME=Recuperar do ERP | CONNECTOR_IMPLEMENTATION_CLASS_NAME=ObtemOS | CONNECTOR_INSTANCE_ID=120002 | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.business.data.SBusinessDataRepositoryException: java.lang.NoSuchMethodException: public class com.company.model.SolicitacaoServico.setIdOS(java.lang.Long)."

1 answer

1
0
-1

Sorted out! The problem was not to update the BDM in the bundle, thus not recognizing the object's field change messages.

Notifications