Hello All,
I am using Camunda self-managed with version 8.6.9.
I am facing an issue when I tried to use the start message webhook and I added in the result expression modification in the status code returned.
I applied the solutions mentioned in this thread HTTP Webhook Error 500 when supplying a response expression - Camunda 8 Topics / Discussion & Questions - Camunda Forum, but the problem still exists even when I upgraded the Camunda version into 8.6.21
I opened the connectors logs and I found Null pointer exception is thrown
2025-08-12T06:40:01.430Z INFO 1 --- [nio-8080-exec-5] i.c.c.r.i.w.InboundWebhookRestController : Webhook: InboundConnectorDefinition[type=io.camunda:webhook:1, tenantId=<default>, deduplicationId=<default>-Process_169t6jn--1233672396, elements=[ProcessElement[bpmnProcessId=Process_169t6jn, version=1, processDefinitionKey=2251799813705212, elementId=StartEvent_EntityCertificate, tenantId=<default>]]] failed with exception java.lang.NullPointerException: null
at java.base/java.util.Objects.requireNonNull(Unknown Source)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.escapeValue(InboundWebhookRestController.java:89)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.toResponseEntity(InboundWebhookRestController.java:85)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.buildSuccessfulResponse(InboundWebhookRestController.java:207)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.buildResponse(InboundWebhookRestController.java:158)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.processWebhook(InboundWebhookRestController.java:135)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.lambda$inbound$0(InboundWebhookRestController.java:113)
at java.base/java.util.Optional.map(Unknown Source)
at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.inbound(InboundWebhookRestController.java:108)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
and this is the workflow sample
test.bpmn (6.0 KB)
and this is the curl for the initiation with the result
curl --location 'http://localhost:8085/inbound/initiate-test-workflow' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic RXN0YWJsaXNobWVudDpFU1RARGV2MTIzNA==' \
--data '{
"requestId": "12345"
}'
