You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "glew02 (via GitHub)" <gi...@apache.org> on 2023/02/27 19:35:11 UTC
[GitHub] [camel-kafka-connector] glew02 opened a new issue, #1513: NoSuchMethodError: org.apache.camel.util.StringHelper.replaceAll
glew02 opened a new issue, #1513:
URL: https://github.com/apache/camel-kafka-connector/issues/1513
Hi,
To get this error, I was using the 3.18.2 CAMEL-HTTPS-KAFKA-CONNECTOR SINK. I'm getting this error:
```
java.lang.NoSuchMethodError: 'java.lang.String org.apache.camel.util.StringHelper.replaceAll(java.lang.String, java.lang.String, java.lang.String)'
at org.apache.camel.impl.DefaultCamelContext.doDumpRoutes(DefaultCamelContext.java:156)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3293)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2951)
at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2902)
at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2586)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:247)
at org.apache.camel.main.SimpleMain.doStart(SimpleMain.java:43)
at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
at org.apache.camel.kafkaconnector.CamelSinkTask.start(CamelSinkTask.java:152)
at org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:312)
at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:186)
at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:243)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
```
Looking at the camel-util-**3.18.2**.jar:
https://jar-download.com/artifacts/org.apache.camel/camel-util/3.18.2/source-code/org/apache/camel/util/StringHelper.java
The code in the StringHelper class no longer has the method replaceAll.
Looking at the camel-util-**3.14.2**.jar:
https://jar-download.com/artifacts/org.apache.camel/camel-util/3.14.0/source-code/org/apache/camel/util/StringHelper.java
The code in the StringHelper class has this method.
So the issue seems to be that the StringHelper.replaceAll method was removed from the latest package for being obsolete (since you guys want to use String.replace). But not all the calls to the method were removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kafka-connector] oscerd commented on issue #1513: NoSuchMethodError: org.apache.camel.util.StringHelper.replaceAll
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #1513:
URL: https://github.com/apache/camel-kafka-connector/issues/1513#issuecomment-1447783290
Are you sure your classpath is not polluted with something old? https://github.com/apache/camel/blob/camel-3.18.2/core/camel-core-engine/src/main/java/org/apache/camel/impl/DefaultCamelContext.java#L169
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kafka-connector] oscerd closed issue #1513: NoSuchMethodError: org.apache.camel.util.StringHelper.replaceAll
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd closed issue #1513: NoSuchMethodError: org.apache.camel.util.StringHelper.replaceAll
URL: https://github.com/apache/camel-kafka-connector/issues/1513
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org