Jawad Ahmad created CAMEL-21853:
-----------------------------------
Summary: camel-salesforce - PubSub Client Initial Subscription
Timeout Error
Key: CAMEL-21853
URL: https://issues.apache.org/jira/browse/CAMEL-21853
Project: Camel
Issue Type: Bug
Components: camel-salesforce
Affects Versions: 4.10.1
Reporter: Jawad Ahmad
When using CUSTOM replayPreset and providing initial replayId, i am seeing the
timeout errors on applcation startup.
PubSubClient is configured with 10s timeout, which seems rather low. Inceasing
the timeout seems to help (tried in debug).
{code:java}
2025-03-09T19:33:43.871+01:00 ERROR 24704 --- [ main]
o.s.boot.SpringApplication : Application run failed
org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: timeout
while checking initialReplayId.
at
org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:53)
~[camel-api-4.10.1.jar:4.10.1]
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:123)
~[camel-spring-4.10.1.jar:4.10.1]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:153)
~[camel-spring-4.10.1.jar:4.10.1]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:454)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:387)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1009)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:630)
~[spring-context-6.2.3.jar:6.2.3]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752)
~[spring-boot-3.4.3.jar:3.4.3]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
~[spring-boot-3.4.3.jar:3.4.3]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:318)
~[spring-boot-3.4.3.jar:3.4.3]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
~[spring-boot-3.4.3.jar:3.4.3]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
~[spring-boot-3.4.3.jar:3.4.3]
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)