Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.15.0
-
None
-
Unknown
Description
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
│ 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)
Attachments
Attachments
Issue Links
- links to