[
https://issues.apache.org/jira/browse/CAMEL-18232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reopened CAMEL-18232:
---------------------------------
Since it was a OS arch problem we could consider going back but keep a few
improvements. However the committed code now works in both situations which
make Camel work better overall ;)
> camel-core - Invalid ThreadName pattern
> ---------------------------------------
>
> Key: CAMEL-18232
> URL: https://issues.apache.org/jira/browse/CAMEL-18232
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 3.15.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.18.0
>
>
> On some JDK11 then it may be that the string replace does not seem to work as
> StringHelper.replaceAll we used in the past, that was removed in this commit
> https://github.com/apache/camel/commit/8d900aba707710e60de40f4d5b60c2c2ddc270b3
> Then you can see this kind of errors
> {code}
> │ 2022-06-27 07:56:40.833 INFO 1 --- [ main]
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 3.18.0-SNAPSHOT
> (camel-1) shutdown in 111ms (uptime:282ms JVM-uptime:6s428ms) │
> │ Exception in thread "main" java.lang.IllegalArgumentException: Pattern is
> invalid: Camel (camel-1) thread ##counter# - #name# in resolved thread name:
> Camel (camel-1) thread ##counter# - timer:/ │
> │ at
> org.apache.camel.util.concurrent.ThreadHelper.resolveThreadName(ThreadHelper.java:65)
>
> │
> │ at
> org.apache.camel.impl.engine.BaseExecutorServiceManager.resolveThreadName(BaseExecutorServiceManager.java:159)
>
> │
> │ at
> org.apache.camel.component.timer.TimerComponent.getTimer(TimerComponent.java:57)
>
> │
> │ at
> org.apache.camel.component.timer.TimerEndpoint.getTimer(TimerEndpoint.java:247)
>
> │
> │ at
> org.apache.camel.component.timer.TimerConsumer.onCamelContextStarted(TimerConsumer.java:149)
>
> │
> │ at
> org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:223)
> │
> │ at
> org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:147)
> │
> │ at
> org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3361)
>
> │
> │ at
> org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:3032)
>
> │
> │ at
> org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2987)
>
> │
> │ at
> org.apache.camel.support.service.BaseService.start(BaseService.java:119)
>
> │
> │ at
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2648)
>
> │
> │ at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:262)
>
> │
> │ at org.apache.camel.main.Main.doStart(Main.java:139)
>
> │
> │ at
> org.apache.camel.support.service.BaseService.start(BaseService.java:119)
>
> │
> │ at org.apache.camel.main.MainSupport.run(MainSupport.java:89)
>
> │
> │ at
> org.apache.camel.main.MainCommandLineSupport.run(MainCommandLineSupport.java:221)
>
> │
> │ at com.foo.acme.CamelApplication.main(CamelApplication.java:9)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)