SAP Knowledge Base Article - Preview

3792165 - Error "Connection refused: localhost:10001" loop after upgrade to SAP Commerce 2211-JDK21.14+ in local environment

Symptom

After upgrading SAP Commerce Cloud to 2211-JDK21.14 or later, the local server log repeatedly shows a Connection refused: localhost:10001 error every second, even though toggle.combined.eventing.enabled=false is set.

The exact wording of the stack trace can vary slightly between environments (thread name, IPv4 vs IPv6 loopback, and the outermost exception type), but the key signature is always the same: the webhookservices queue polling path fails to connect to localhost:10001.

Both of the following variants describe the same issue:

Variant A

ERROR [task-scheduler-x] [ErrorHandler]  unexpected exception caught
org.springframework.messaging.MessagingException
    at org.springframework.integration.endpoint.AbstractPollingEndpoint.pollForMessage(...)
    ...
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException:
    finishConnect(..) failed with error(-111): Connection refused: localhost/127.0.0.1:10001


Variant B

ERROR [<polling-thread>] [ErrorHandler] unexpected exception caught
    at de.hybris.platform.core.TenantAwareThreadFactory$1.internalRun(TenantAwareThreadFactory.java:163)
Caused by: reactor.core.Exceptions$ReactiveException:
    io.netty.channel.AbstractChannel$AnnotatedConnectException:
    Connection refused: localhost/[0:0:0:0:0:0:0:1]:10001
    at com.azure.spring.integration.storage.queue.inbound.StorageQueueMessageSource.doReceive(StorageQueueMessageSource.java:54)
    at de.hybris.platform.webhookservices.alod.TenantAwareMessageSource.receive(TenantAwareMessageSource.java:76)

In both cases the stack trace goes through the same path:
TenantAwareMessageSource.receiveStorageQueueMessageSource.doReceive → netty finishConnect (failed) → Connection refused: localhost:10001. The error repeats every second and does not stop.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

  • SAP Commerce Cloud 2211-JDK21.14 and later
  • webhookservices extension installed
  • Local development environment where Microsoft Azurite is not running

Product

SAP Commerce 2211 for JDK21 ; SAP Commerce Cloud 2211 for JDK21

Keywords

toggle.combined.eventing.enabled, webhookservices, webhookservices-spring.xml, azureQueueReadAdapter, auto-startup, connection refused, localhost:10001, azurite, azure storage queue, at-least-once delivery, integration apis, continuous error logging, adapter starts by default , KBA , CEC-SCC-INT-IAPI , Integration APIs , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.