Hi, can you provide the versions of the operators that you used in the two instances? It seems you're using a different set of libraries.
Nicola On Wed, Jun 16, 2021 at 4:50 PM Dennis Wiesemann <dennis.wiesem...@c-a-s.de> wrote: > Hello, > I want to use a groovy script for a small Mapping I'm starting this as > follows: > > new JsonSlurper().parseText(request.body) > > On our AWS Kubernetes Cluster the mapping worked without any problems. > > Later I deployed the same route on our GCP and I got following error > message: > > org.apache.camel.CamelExecutionException: Exception occurred during > execution on the exchange: Exchange[0B25F784644BEC2-0000000000000000] > [1] at > org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:45) > [1] at > org.apache.camel.support.AbstractExchange.setException(AbstractExchange.java:564) > [1] at > org.apache.camel.support.DefaultExchange.setException(DefaultExchange.java:27) > [1] at > org.apache.camel.processor.SetPropertyProcessor.process(SetPropertyProcessor.java:58) > [1] at > org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:439) > [1] at > org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:181) > [1] at > org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:62) > [1] at org.apache.camel.processor.Pipeline.process(Pipeline.java:167) > [1] at > org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:388) > [1] at > org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:209) > [1] at > org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76) > [1] at java.base/java.util.TimerThread.mainLoop(Timer.java:556) > [1] at java.base/java.util.TimerThread.run(Timer.java:506) > [1] Caused by: java.util.ServiceConfigurationError: > org.apache.groovy.json.FastStringServiceFactory: > org.apache.groovy.json.DefaultFastStringServiceFactory not a subtype > [1] at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589) > [1] at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237) > [1] at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) > [1] at > java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) > [1] at > java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) > [1] at > org.apache.groovy.json.internal.FastStringUtils$ServiceHolder.loadService(FastStringUtils.java:42) > [1] at > org.apache.groovy.json.internal.FastStringUtils$ServiceHolder.<clinit>(FastStringUtils.java:33) > [1] at > org.apache.groovy.json.internal.FastStringUtils.getService(FastStringUtils.java:56) > [1] at > org.apache.groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:67) > [1] at > org.apache.groovy.json.internal.BaseJsonParser.parse(BaseJsonParser.java:112) > [1] at groovy.json.JsonSlurper.parseText(JsonSlurper.java:202) > [1] at groovy.json.JsonSlurper$parseText.call(Unknown Source) > [1] at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) > [1] at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > [1] at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139) > [1] at > Script_65dcaa17bc1b80f6d63382ad593b3d36.run(Script_65dcaa17bc1b80f6d63382ad593b3d36.groovy:22) > [1] at > org.apache.camel.language.groovy.GroovyExpression.evaluate(GroovyExpression.java:52) > [1] at > org.apache.camel.processor.SetPropertyProcessor.process(SetPropertyProcessor.java:47) > [1] ... 9 more > > Does anyone know the error and where it comes from? > > Thanks in advance > > Dennis > CAS Concepts and Solutions AG Sitz der Gesellschaft / Headquarter: > Hamburg, Germany Registergericht / Commercial Registry: Hamburg HRB 69 127 > Umsatzsteuer-Identifikationsnummer / German Tax Identification Number: > DE812620974 Vorstand / Authorized Board of Directors: Dirk Blum, Olaf Pagel > Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board: Dr. > Dietmar Saddei >