You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/06/27 08:12:00 UTC

[jira] [Commented] (CAMEL-18232) camel-core - Invalid ThreadName pattern

    [ https://issues.apache.org/jira/browse/CAMEL-18232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17559062#comment-17559062 ] 

Claus Ibsen commented on CAMEL-18232:
-------------------------------------

 java.specification.name=Java Platform API Specification, java.vm.specification.vendor=Oracle Corporation, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, java.runtime.version=11.0.15+10, user.name=root, path.separator=:, os.version=5.10.47-linuxkit, java.runtime.name=OpenJDK Runtime Environment, file.encoding=UTF-8, java.vm.name=OpenJDK 64-Bit Server VM, java.vendor.version=Temurin-11.0.15+10, java.vendor.url.bug=https://github.com/adoptium/adoptium-support/issues, java.io.tmpdir=/tmp, java.version=11.0.15, user.dir=/, os.arch=amd64, java.vm.specification.name=Java Virtual Machine Specification, java.awt.printerjob=sun.print.PSPrinterJob, sun.os.patch.level=unknown, java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, java.vm.info=mixed mode, java.vendor=Eclipse Adoptium, java.vm.version=11.0.15+10, sun.io.unicode.encoding=UnicodeLittle, java.class.version=55.0}

> 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)