DefaultComponent

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

DefaultComponent

Thomas Thiele
Hi,

I got this error. What is missing?

java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent

Stacktrace:

java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
        at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[na:na]
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[na:na]
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802) ~[na:na]
        at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700) ~[na:na]
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623) ~[na:na]
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na]
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
        at org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474) ~[camel-util-3.0.0.jar:3.0.0]
        at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378) ~[camel-util-3.0.0.jar:3.0.0]
        at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355) ~[camel-util-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultClassResolver.java:140) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(DefaultClassResolver.java:55) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(DefaultFactoryFinder.java:120) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0(DefaultFactoryFinder.java:77) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:155) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:151) ~[camel-base-3.0.0.jar:3.0.0]
        at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
        at org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(DefaultFactoryFinder.java:151) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:74) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:66) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(DefaultComponentResolver.java:83) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:56) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.initComponent(AbstractCamelContext.java:568) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractCamelContext.java:165) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:496) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:492) ~[camel-base-3.0.0.jar:3.0.0]
        at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
        at org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:492) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:468) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:745) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55) ~[camel-support-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:120) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:363) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:108) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:323) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:302) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(AbstractModelCamelContext.java:342) ~[camel-core-engine-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2597) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2445) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2462) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2443) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBootCamelContext.java:39) ~[camel-spring-boot-3.0.0.jar:3.0.0]
        at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) ~[camel-api-3.0.0.jar:3.0.0]
        at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2352) ~[camel-base-3.0.0.jar:3.0.0]
        at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:121) ~[camel-spring-3.0.0.jar:3.0.0]
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:157) ~[camel-spring-3.0.0.jar:3.0.0]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowApplication.java:40) ~[classes/:na]
Caused by: java.lang.ClassNotFoundException: org.apache.camel.impl.DefaultComponent
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na]
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
        ... 63 common frames omitted

Reply | Threaded
Open this post in threaded view
|

Re: DefaultComponent

Andrea Cosentino-3
In Camel 3 the DefaultComponent is located at

org.apache.camel.support

It is reported in the migration guide

https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_migrating_custom_components

Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
scritto:

> Hi,
>
> I got this error. What is missing?
>
> java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
>
> Stacktrace:
>
> java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
>         at java.base/java.lang.ClassLoader.defineClass1(Native Method)
> ~[na:na]
>         at
> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
>         at
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
> ~[na:na]
>         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> ~[na:na]
>         at
> org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultClassResolver.java:140)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(DefaultClassResolver.java:55)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(DefaultFactoryFinder.java:120)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0(DefaultFactoryFinder.java:77)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:155)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:151)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
> ~[na:na]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(DefaultFactoryFinder.java:151)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:74)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:66)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(DefaultComponentResolver.java:83)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:56)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.initComponent(AbstractCamelContext.java:568)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractCamelContext.java:165)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:496)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:492)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
> ~[na:na]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:492)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:468)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:745)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55)
> ~[camel-support-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:120)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:363)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:108)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:323)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:302)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(AbstractModelCamelContext.java:342)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2597)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2445)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2462)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2443)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBootCamelContext.java:39)
> ~[camel-spring-boot-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117)
> ~[camel-api-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2352)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:121)
> ~[camel-spring-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:157)
> ~[camel-spring-3.0.0.jar:3.0.0]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
> ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
> ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
> ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
> ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
> ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowApplication.java:40)
> ~[classes/:na]
> Caused by: java.lang.ClassNotFoundException:
> org.apache.camel.impl.DefaultComponent
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
> ~[na:na]
>         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> ~[na:na]
>         ... 63 common frames omitted
>
>
Reply | Threaded
Open this post in threaded view
|

AW: DefaultComponent

Thomas Thiele
Yes. I know and my own components use this. But it seems spring or flowable needs this class there.


-----Ursprüngliche Nachricht-----
Von: Andrea Cosentino <[hidden email]>
Gesendet: Dienstag, 3. Dezember 2019 13:01
An: [hidden email]
Cc: dev <[hidden email]>
Betreff: Re: DefaultComponent

In Camel 3 the DefaultComponent is located at

org.apache.camel.support

It is reported in the migration guide

https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_migrating_custom_components

Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
scritto:

> Hi,
>
> I got this error. What is missing?
>
> java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
>
> Stacktrace:
>
> java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
>         at java.base/java.lang.ClassLoader.defineClass1(Native Method)
> ~[na:na]
>         at
> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
>         at
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoade
> r.java:174)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinCl
> assLoader.java:802)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathO
> rNull(BuiltinClassLoader.java:700)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Built
> inClassLoader.java:623)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClas
> sLoader.java:581)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Cl
> assLoaders.java:178)
> ~[na:na]
>         at
> java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> ~[na:na]
>         at
> org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> ~[camel-util-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultCla
> ssResolver.java:140)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Default
> ClassResolver.java:55)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(Defaul
> tFactoryFinder.java:120)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0(D
> efaultFactoryFinder.java:77)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFacto
> ryFinder.java:155)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFacto
> ryFinder.java:151)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Concu
> rrentHashMap.java:1705)
> ~[na:na]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(Defaul
> tFactoryFinder.java:151)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFac
> toryFinder.java:74)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFac
> toryFinder.java:66)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(De
> faultComponentResolver.java:83)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent
> (DefaultComponentResolver.java:56)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Abstra
> ctCamelContext.java:568)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractC
> amelContext.java:165)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCame
> lContext.java:496)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCame
> lContext.java:492)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Concu
> rrentHashMap.java:1705)
> ~[na:na]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstrac
> tCamelContext.java:492)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstrac
> tCamelContext.java:468)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abstract
> CamelContext.java:745)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(Camel
> ContextHelper.java:55)
> ~[camel-support-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(Defau
> ltRouteContext.java:120)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> 363)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:10
> 8)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> java:323)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> java:302)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(
> AbstractModelCamelContext.java:342)
> ~[camel-core-engine-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abstrac
> tCamelContext.java:2597)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(Abs
> tractCamelContext.java:2445)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLo
> ader(AbstractCamelContext.java:2462)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCame
> lContext.java:2443)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBoot
> CamelContext.java:39)
> ~[camel-spring-boot-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.j
> ava:117)
> ~[camel-api-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelC
> ontext.java:2352)
> ~[camel-base-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.ja
> va:121)
> ~[camel-spring-3.0.0.jar:3.0.0]
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCa
> melContext.java:157)
> ~[camel-spring-3.0.0.jar:3.0.0]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.do
> InvokeListener(SimpleApplicationEventMulticaster.java:172)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.in
> vokeListener(SimpleApplicationEventMulticaster.java:165)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.mu
> lticastEvent(SimpleApplicationEventMulticaster.java:139)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.publish
> Event(AbstractApplicationContext.java:403)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.publish
> Event(AbstractApplicationContext.java:360)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.finishR
> efresh(AbstractApplicationContext.java:897)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (AbstractApplicationContext.java:553)
> ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.j
> ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.refreshContext(SpringApplic
> ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
>         at
> de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowA
> pplication.java:40)
> ~[classes/:na]
> Caused by: java.lang.ClassNotFoundException:
> org.apache.camel.impl.DefaultComponent
>         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClas
> sLoader.java:583)
> ~[na:na]
>         at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Cl
> assLoaders.java:178)
> ~[na:na]
>         at
> java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> ~[na:na]
>         ... 63 common frames omitted
>
>
Reply | Threaded
Open this post in threaded view
|

Re: DefaultComponent

Claus Ibsen-2
Hi

If you have custom components you need to source code migrate them to
Camel 3 and rebuild them. Camel 3 does not run with Camel 2
components.

On Tue, Dec 3, 2019 at 1:21 PM <[hidden email]> wrote:

>
> Yes. I know and my own components use this. But it seems spring or flowable needs this class there.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Andrea Cosentino <[hidden email]>
> Gesendet: Dienstag, 3. Dezember 2019 13:01
> An: [hidden email]
> Cc: dev <[hidden email]>
> Betreff: Re: DefaultComponent
>
> In Camel 3 the DefaultComponent is located at
>
> org.apache.camel.support
>
> It is reported in the migration guide
>
> https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_migrating_custom_components
>
> Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
> scritto:
>
> > Hi,
> >
> > I got this error. What is missing?
> >
> > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
> >
> > Stacktrace:
> >
> > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
> >         at java.base/java.lang.ClassLoader.defineClass1(Native Method)
> > ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
> >         at
> > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoade
> > r.java:174)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinCl
> > assLoader.java:802)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathO
> > rNull(BuiltinClassLoader.java:700)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Built
> > inClassLoader.java:623)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClas
> > sLoader.java:581)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Cl
> > assLoaders.java:178)
> > ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > ~[na:na]
> >         at
> > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474)
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultCla
> > ssResolver.java:140)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Default
> > ClassResolver.java:55)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(Defaul
> > tFactoryFinder.java:120)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0(D
> > efaultFactoryFinder.java:77)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFacto
> > ryFinder.java:155)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFacto
> > ryFinder.java:151)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Concu
> > rrentHashMap.java:1705)
> > ~[na:na]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(Defaul
> > tFactoryFinder.java:151)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFac
> > toryFinder.java:74)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFac
> > toryFinder.java:66)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(De
> > faultComponentResolver.java:83)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent
> > (DefaultComponentResolver.java:56)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Abstra
> > ctCamelContext.java:568)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractC
> > amelContext.java:165)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCame
> > lContext.java:496)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCame
> > lContext.java:492)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Concu
> > rrentHashMap.java:1705)
> > ~[na:na]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstrac
> > tCamelContext.java:492)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstrac
> > tCamelContext.java:468)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abstract
> > CamelContext.java:745)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(Camel
> > ContextHelper.java:55)
> > ~[camel-support-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(Defau
> > ltRouteContext.java:120)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> > 363)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:10
> > 8)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > java:323)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > java:302)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(
> > AbstractModelCamelContext.java:342)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abstrac
> > tCamelContext.java:2597)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(Abs
> > tractCamelContext.java:2445)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLo
> > ader(AbstractCamelContext.java:2462)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCame
> > lContext.java:2443)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBoot
> > CamelContext.java:39)
> > ~[camel-spring-boot-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.j
> > ava:117)
> > ~[camel-api-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelC
> > ontext.java:2352)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.ja
> > va:121)
> > ~[camel-spring-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCa
> > melContext.java:157)
> > ~[camel-spring-3.0.0.jar:3.0.0]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.do
> > InvokeListener(SimpleApplicationEventMulticaster.java:172)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.in
> > vokeListener(SimpleApplicationEventMulticaster.java:165)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.mu
> > lticastEvent(SimpleApplicationEventMulticaster.java:139)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.publish
> > Event(AbstractApplicationContext.java:403)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.publish
> > Event(AbstractApplicationContext.java:360)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.finishR
> > efresh(AbstractApplicationContext.java:897)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.refresh
> > (AbstractApplicationContext.java:553)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.refresh(SpringApplication.j
> > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.refreshContext(SpringApplic
> > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowA
> > pplication.java:40)
> > ~[classes/:na]
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.camel.impl.DefaultComponent
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClas
> > sLoader.java:583)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Cl
> > assLoaders.java:178)
> > ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > ~[na:na]
> >         ... 63 common frames omitted
> >
> >



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

AW: DefaultComponent

Thomas Thiele
Its not my components.
Its spring boot or flowable. But I cannot see in dependeny tree where flowble-camel
uses camel-core or camel-support.

When I patch the classes DefaultComponent /-Consumer etc. it works.


-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <[hidden email]>
Gesendet: Dienstag, 3. Dezember 2019 13:29
An: [hidden email]
Betreff: Re: DefaultComponent

Hi

If you have custom components you need to source code migrate them to Camel 3 and rebuild them. Camel 3 does not run with Camel 2 components.

On Tue, Dec 3, 2019 at 1:21 PM <[hidden email]> wrote:

>
> Yes. I know and my own components use this. But it seems spring or flowable needs this class there.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Andrea Cosentino <[hidden email]>
> Gesendet: Dienstag, 3. Dezember 2019 13:01
> An: [hidden email]
> Cc: dev <[hidden email]>
> Betreff: Re: DefaultComponent
>
> In Camel 3 the DefaultComponent is located at
>
> org.apache.camel.support
>
> It is reported in the migration guide
>
> https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_m
> igrating_custom_components
>
> Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
> scritto:
>
> > Hi,
> >
> > I got this error. What is missing?
> >
> > java.lang.NoClassDefFoundError:
> > org/apache/camel/impl/DefaultComponent
> >
> > Stacktrace:
> >
> > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
> >         at java.base/java.lang.ClassLoader.defineClass1(Native
> > Method) ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
> >         at
> > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoa
> > de
> > r.java:174)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Builtin
> > Cl
> > assLoader.java:802)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPat
> > hO
> > rNull(BuiltinClassLoader.java:700)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Bui
> > lt
> > inClassLoader.java:623)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > as
> > sLoader.java:581)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > Cl
> > assLoaders.java:178)
> > ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > ~[na:na]
> >         at
> > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474
> > )
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> > ~[camel-util-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultC
> > la
> > ssResolver.java:140)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Defau
> > lt
> > ClassResolver.java:55)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(Defa
> > ul
> > tFactoryFinder.java:120)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0
> > (D
> > efaultFactoryFinder.java:77)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > to
> > ryFinder.java:155)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > to
> > ryFinder.java:151)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > cu
> > rrentHashMap.java:1705)
> > ~[na:na]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(Defa
> > ul
> > tFactoryFinder.java:151)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > ac
> > toryFinder.java:74)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > ac
> > toryFinder.java:66)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(
> > De
> > faultComponentResolver.java:83)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultComponentResolver.resolveCompone
> > nt
> > (DefaultComponentResolver.java:56)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Abst
> > ra
> > ctCamelContext.java:568)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.access$000(Abstrac
> > tC
> > amelContext.java:165)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > me
> > lContext.java:496)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > me
> > lContext.java:492)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > cu
> > rrentHashMap.java:1705)
> > ~[na:na]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > ac
> > tCamelContext.java:492)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > ac
> > tCamelContext.java:468)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abstra
> > ct
> > CamelContext.java:745)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(Cam
> > el
> > ContextHelper.java:55)
> > ~[camel-support-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(Def
> > au
> > ltRouteContext.java:120)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> > 363)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:
> > 10
> > 8)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > java:323)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > java:302)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinition
> > s(
> > AbstractModelCamelContext.java:342)
> > ~[camel-core-engine-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abstr
> > ac
> > tCamelContext.java:2597)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(A
> > bs
> > tractCamelContext.java:2445)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClass
> > Lo
> > ader(AbstractCamelContext.java:2462)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCa
> > me
> > lContext.java:2443)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBo
> > ot
> > CamelContext.java:39)
> > ~[camel-spring-boot-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport
> > .j
> > ava:117)
> > ~[camel-api-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCame
> > lC
> > ontext.java:2352)
> > ~[camel-base-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.
> > ja
> > va:121)
> > ~[camel-spring-3.0.0.jar:3.0.0]
> >         at
> > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(Spring
> > Ca
> > melContext.java:157)
> > ~[camel-spring-3.0.0.jar:3.0.0]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > do
> > InvokeListener(SimpleApplicationEventMulticaster.java:172)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > in
> > vokeListener(SimpleApplicationEventMulticaster.java:165)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > mu
> > lticastEvent(SimpleApplicationEventMulticaster.java:139)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.publi
> > sh
> > Event(AbstractApplicationContext.java:403)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.publi
> > sh
> > Event(AbstractApplicationContext.java:360)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.finis
> > hR
> > efresh(AbstractApplicationContext.java:897)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.context.support.AbstractApplicationContext.refre
> > sh
> > (AbstractApplicationContext.java:553)
> > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.refresh(SpringApplication
> > .j
> > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.refreshContext(SpringAppl
> > ic
> > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> >         at
> > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflo
> > wA
> > pplication.java:40)
> > ~[classes/:na]
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.camel.impl.DefaultComponent
> >         at
> > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > as
> > sLoader.java:583)
> > ~[na:na]
> >         at
> > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > Cl
> > assLoaders.java:178)
> > ~[na:na]
> >         at
> > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > ~[na:na]
> >         ... 63 common frames omitted
> >
> >



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: DefaultComponent

Claus Ibsen-2
Hi

Oh didnt know so much about flowable-camel as its 3rd party and not ASF.
Same thing, its likely not Camel 3 compatible, so they need to do a
new release that supports Camel 3.



On Tue, Dec 3, 2019 at 1:36 PM <[hidden email]> wrote:

>
> Its not my components.
> Its spring boot or flowable. But I cannot see in dependeny tree where flowble-camel
> uses camel-core or camel-support.
>
> When I patch the classes DefaultComponent /-Consumer etc. it works.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Claus Ibsen <[hidden email]>
> Gesendet: Dienstag, 3. Dezember 2019 13:29
> An: [hidden email]
> Betreff: Re: DefaultComponent
>
> Hi
>
> If you have custom components you need to source code migrate them to Camel 3 and rebuild them. Camel 3 does not run with Camel 2 components.
>
> On Tue, Dec 3, 2019 at 1:21 PM <[hidden email]> wrote:
> >
> > Yes. I know and my own components use this. But it seems spring or flowable needs this class there.
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Andrea Cosentino <[hidden email]>
> > Gesendet: Dienstag, 3. Dezember 2019 13:01
> > An: [hidden email]
> > Cc: dev <[hidden email]>
> > Betreff: Re: DefaultComponent
> >
> > In Camel 3 the DefaultComponent is located at
> >
> > org.apache.camel.support
> >
> > It is reported in the migration guide
> >
> > https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_m
> > igrating_custom_components
> >
> > Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
> > scritto:
> >
> > > Hi,
> > >
> > > I got this error. What is missing?
> > >
> > > java.lang.NoClassDefFoundError:
> > > org/apache/camel/impl/DefaultComponent
> > >
> > > Stacktrace:
> > >
> > > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
> > >         at java.base/java.lang.ClassLoader.defineClass1(Native
> > > Method) ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
> > >         at
> > > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoa
> > > de
> > > r.java:174)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Builtin
> > > Cl
> > > assLoader.java:802)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPat
> > > hO
> > > rNull(BuiltinClassLoader.java:700)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Bui
> > > lt
> > > inClassLoader.java:623)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > > as
> > > sLoader.java:581)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > > Cl
> > > assLoaders.java:178)
> > > ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474
> > > )
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultC
> > > la
> > > ssResolver.java:140)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Defau
> > > lt
> > > ClassResolver.java:55)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(Defa
> > > ul
> > > tFactoryFinder.java:120)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0
> > > (D
> > > efaultFactoryFinder.java:77)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > > to
> > > ryFinder.java:155)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > > to
> > > ryFinder.java:151)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > > cu
> > > rrentHashMap.java:1705)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(Defa
> > > ul
> > > tFactoryFinder.java:151)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > > ac
> > > toryFinder.java:74)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > > ac
> > > toryFinder.java:66)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(
> > > De
> > > faultComponentResolver.java:83)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultComponentResolver.resolveCompone
> > > nt
> > > (DefaultComponentResolver.java:56)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Abst
> > > ra
> > > ctCamelContext.java:568)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.access$000(Abstrac
> > > tC
> > > amelContext.java:165)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > > me
> > > lContext.java:496)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > > me
> > > lContext.java:492)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > > cu
> > > rrentHashMap.java:1705)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > > ac
> > > tCamelContext.java:492)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > > ac
> > > tCamelContext.java:468)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abstra
> > > ct
> > > CamelContext.java:745)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(Cam
> > > el
> > > ContextHelper.java:55)
> > > ~[camel-support-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(Def
> > > au
> > > ltRouteContext.java:120)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> > > 363)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:
> > > 10
> > > 8)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > java:323)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > java:302)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinition
> > > s(
> > > AbstractModelCamelContext.java:342)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abstr
> > > ac
> > > tCamelContext.java:2597)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(A
> > > bs
> > > tractCamelContext.java:2445)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClass
> > > Lo
> > > ader(AbstractCamelContext.java:2462)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCa
> > > me
> > > lContext.java:2443)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBo
> > > ot
> > > CamelContext.java:39)
> > > ~[camel-spring-boot-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport
> > > .j
> > > ava:117)
> > > ~[camel-api-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCame
> > > lC
> > > ontext.java:2352)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.
> > > ja
> > > va:121)
> > > ~[camel-spring-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(Spring
> > > Ca
> > > melContext.java:157)
> > > ~[camel-spring-3.0.0.jar:3.0.0]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > do
> > > InvokeListener(SimpleApplicationEventMulticaster.java:172)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > in
> > > vokeListener(SimpleApplicationEventMulticaster.java:165)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > mu
> > > lticastEvent(SimpleApplicationEventMulticaster.java:139)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.publi
> > > sh
> > > Event(AbstractApplicationContext.java:403)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.publi
> > > sh
> > > Event(AbstractApplicationContext.java:360)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.finis
> > > hR
> > > efresh(AbstractApplicationContext.java:897)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.refre
> > > sh
> > > (AbstractApplicationContext.java:553)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.refresh(SpringApplication
> > > .j
> > > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.refreshContext(SpringAppl
> > > ic
> > > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflo
> > > wA
> > > pplication.java:40)
> > > ~[classes/:na]
> > > Caused by: java.lang.ClassNotFoundException:
> > > org.apache.camel.impl.DefaultComponent
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > > as
> > > sLoader.java:583)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > > Cl
> > > assLoaders.java:178)
> > > ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > ~[na:na]
> > >         ... 63 common frames omitted
> > >
> > >
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: DefaultComponent

Andrea Cosentino-3
They are supporting 2.24.0

https://github.com/flowable/flowable-engine/blob/master/pom.xml#L25

Il giorno mar 3 dic 2019 alle ore 13:43 Claus Ibsen <[hidden email]>
ha scritto:

> Hi
>
> Oh didnt know so much about flowable-camel as its 3rd party and not ASF.
> Same thing, its likely not Camel 3 compatible, so they need to do a
> new release that supports Camel 3.
>
>
>
> On Tue, Dec 3, 2019 at 1:36 PM <[hidden email]> wrote:
> >
> > Its not my components.
> > Its spring boot or flowable. But I cannot see in dependeny tree where
> flowble-camel
> > uses camel-core or camel-support.
> >
> > When I patch the classes DefaultComponent /-Consumer etc. it works.
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Claus Ibsen <[hidden email]>
> > Gesendet: Dienstag, 3. Dezember 2019 13:29
> > An: [hidden email]
> > Betreff: Re: DefaultComponent
> >
> > Hi
> >
> > If you have custom components you need to source code migrate them to
> Camel 3 and rebuild them. Camel 3 does not run with Camel 2 components.
> >
> > On Tue, Dec 3, 2019 at 1:21 PM <[hidden email]> wrote:
> > >
> > > Yes. I know and my own components use this. But it seems spring or
> flowable needs this class there.
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Andrea Cosentino <[hidden email]>
> > > Gesendet: Dienstag, 3. Dezember 2019 13:01
> > > An: [hidden email]
> > > Cc: dev <[hidden email]>
> > > Betreff: Re: DefaultComponent
> > >
> > > In Camel 3 the DefaultComponent is located at
> > >
> > > org.apache.camel.support
> > >
> > > It is reported in the migration guide
> > >
> > > https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_m
> > > igrating_custom_components
> > >
> > > Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]> ha
> > > scritto:
> > >
> > > > Hi,
> > > >
> > > > I got this error. What is missing?
> > > >
> > > > java.lang.NoClassDefFoundError:
> > > > org/apache/camel/impl/DefaultComponent
> > > >
> > > > Stacktrace:
> > > >
> > > > java.lang.NoClassDefFoundError:
> org/apache/camel/impl/DefaultComponent
> > > >         at java.base/java.lang.ClassLoader.defineClass1(Native
> > > > Method) ~[na:na]
> > > >         at
> > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
> ~[na:na]
> > > >         at
> > > > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoa
> > > > de
> > > > r.java:174)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Builtin
> > > > Cl
> > > > assLoader.java:802)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPat
> > > > hO
> > > > rNull(BuiltinClassLoader.java:700)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Bui
> > > > lt
> > > > inClassLoader.java:623)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > > > as
> > > > sLoader.java:581)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > > > Cl
> > > > assLoaders.java:178)
> > > > ~[na:na]
> > > >         at
> > > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > > ~[na:na]
> > > >         at
> > > > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474
> > > > )
> > > > ~[camel-util-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378)
> > > > ~[camel-util-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355)
> > > > ~[camel-util-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultC
> > > > la
> > > > ssResolver.java:140)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Defau
> > > > lt
> > > > ClassResolver.java:55)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(Defa
> > > > ul
> > > > tFactoryFinder.java:120)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0
> > > > (D
> > > > efaultFactoryFinder.java:77)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > > > to
> > > > ryFinder.java:155)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFac
> > > > to
> > > > ryFinder.java:151)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > > > cu
> > > > rrentHashMap.java:1705)
> > > > ~[na:na]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(Defa
> > > > ul
> > > > tFactoryFinder.java:151)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > > > ac
> > > > toryFinder.java:74)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultF
> > > > ac
> > > > toryFinder.java:66)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(
> > > > De
> > > > faultComponentResolver.java:83)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultComponentResolver.resolveCompone
> > > > nt
> > > > (DefaultComponentResolver.java:56)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Abst
> > > > ra
> > > > ctCamelContext.java:568)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.access$000(Abstrac
> > > > tC
> > > > amelContext.java:165)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > > > me
> > > > lContext.java:496)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCa
> > > > me
> > > > lContext.java:492)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Con
> > > > cu
> > > > rrentHashMap.java:1705)
> > > > ~[na:na]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > > > ac
> > > > tCamelContext.java:492)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abstr
> > > > ac
> > > > tCamelContext.java:468)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abstra
> > > > ct
> > > > CamelContext.java:745)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(Cam
> > > > el
> > > > ContextHelper.java:55)
> > > > ~[camel-support-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(Def
> > > > au
> > > > ltRouteContext.java:120)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > >
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> > > > 363)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:
> > > > 10
> > > > 8)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > >
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > > java:323)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > >
> org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > > java:302)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinition
> > > > s(
> > > > AbstractModelCamelContext.java:342)
> > > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abstr
> > > > ac
> > > > tCamelContext.java:2597)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(A
> > > > bs
> > > > tractCamelContext.java:2445)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClass
> > > > Lo
> > > > ader(AbstractCamelContext.java:2462)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCa
> > > > me
> > > > lContext.java:2443)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBo
> > > > ot
> > > > CamelContext.java:39)
> > > > ~[camel-spring-boot-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport
> > > > .j
> > > > ava:117)
> > > > ~[camel-api-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCame
> > > > lC
> > > > ontext.java:2352)
> > > > ~[camel-base-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.
> > > > ja
> > > > va:121)
> > > > ~[camel-spring-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(Spring
> > > > Ca
> > > > melContext.java:157)
> > > > ~[camel-spring-3.0.0.jar:3.0.0]
> > > >         at
> > > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > > do
> > > > InvokeListener(SimpleApplicationEventMulticaster.java:172)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > > in
> > > > vokeListener(SimpleApplicationEventMulticaster.java:165)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > > mu
> > > > lticastEvent(SimpleApplicationEventMulticaster.java:139)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.support.AbstractApplicationContext.publi
> > > > sh
> > > > Event(AbstractApplicationContext.java:403)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.support.AbstractApplicationContext.publi
> > > > sh
> > > > Event(AbstractApplicationContext.java:360)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.support.AbstractApplicationContext.finis
> > > > hR
> > > > efresh(AbstractApplicationContext.java:897)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.context.support.AbstractApplicationContext.refre
> > > > sh
> > > > (AbstractApplicationContext.java:553)
> > > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > > >         at
> > > > org.springframework.boot.SpringApplication.refresh(SpringApplication
> > > > .j
> > > > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > > >         at
> > > > org.springframework.boot.SpringApplication.refreshContext(SpringAppl
> > > > ic
> > > > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > > >         at
> > > >
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > > >         at
> > > >
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > > >         at
> > > >
> org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > > >         at
> > > > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflo
> > > > wA
> > > > pplication.java:40)
> > > > ~[classes/:na]
> > > > Caused by: java.lang.ClassNotFoundException:
> > > > org.apache.camel.impl.DefaultComponent
> > > >         at
> > > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCl
> > > > as
> > > > sLoader.java:583)
> > > > ~[na:na]
> > > >         at
> > > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> > > > Cl
> > > > assLoaders.java:178)
> > > > ~[na:na]
> > > >         at
> > > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > > ~[na:na]
> > > >         ... 63 common frames omitted
> > > >
> > > >
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
Reply | Threaded
Open this post in threaded view
|

AW: DefaultComponent

Thomas Thiele
In reply to this post by Claus Ibsen-2
I have it. Its flowable that uses 2-style DefaultComponent etc.

-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <[hidden email]>
Gesendet: Dienstag, 3. Dezember 2019 13:44
An: [hidden email]
Betreff: Re: DefaultComponent

Hi

Oh didnt know so much about flowable-camel as its 3rd party and not ASF.
Same thing, its likely not Camel 3 compatible, so they need to do a new release that supports Camel 3.



On Tue, Dec 3, 2019 at 1:36 PM <[hidden email]> wrote:

>
> Its not my components.
> Its spring boot or flowable. But I cannot see in dependeny tree where
> flowble-camel uses camel-core or camel-support.
>
> When I patch the classes DefaultComponent /-Consumer etc. it works.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Claus Ibsen <[hidden email]>
> Gesendet: Dienstag, 3. Dezember 2019 13:29
> An: [hidden email]
> Betreff: Re: DefaultComponent
>
> Hi
>
> If you have custom components you need to source code migrate them to Camel 3 and rebuild them. Camel 3 does not run with Camel 2 components.
>
> On Tue, Dec 3, 2019 at 1:21 PM <[hidden email]> wrote:
> >
> > Yes. I know and my own components use this. But it seems spring or flowable needs this class there.
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Andrea Cosentino <[hidden email]>
> > Gesendet: Dienstag, 3. Dezember 2019 13:01
> > An: [hidden email]
> > Cc: dev <[hidden email]>
> > Betreff: Re: DefaultComponent
> >
> > In Camel 3 the DefaultComponent is located at
> >
> > org.apache.camel.support
> >
> > It is reported in the migration guide
> >
> > https://camel.apache.org/manual/latest/camel-3-migration-guide.html#
> > _m
> > igrating_custom_components
> >
> > Il giorno mar 3 dic 2019 alle ore 12:59 <[hidden email]>
> > ha
> > scritto:
> >
> > > Hi,
> > >
> > > I got this error. What is missing?
> > >
> > > java.lang.NoClassDefFoundError:
> > > org/apache/camel/impl/DefaultComponent
> > >
> > > Stacktrace:
> > >
> > > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent
> > >         at java.base/java.lang.ClassLoader.defineClass1(Native
> > > Method) ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na]
> > >         at
> > > java.base/java.security.SecureClassLoader.defineClass(SecureClassL
> > > oa
> > > de
> > > r.java:174)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Built
> > > in
> > > Cl
> > > assLoader.java:802)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassP
> > > at
> > > hO
> > > rNull(BuiltinClassLoader.java:700)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(B
> > > ui
> > > lt
> > > inClassLoader.java:623)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Builtin
> > > Cl
> > > as
> > > sLoader.java:581)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClas
> > > s(
> > > Cl
> > > assLoaders.java:178)
> > > ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:4
> > > 74
> > > )
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378
> > > )
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355
> > > )
> > > ~[camel-util-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(Defaul
> > > tC
> > > la
> > > ssResolver.java:140)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(Def
> > > au
> > > lt
> > > ClassResolver.java:55)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(De
> > > fa
> > > ul
> > > tFactoryFinder.java:120)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass
> > > $0
> > > (D
> > > efaultFactoryFinder.java:77)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultF
> > > ac
> > > to
> > > ryFinder.java:155)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultF
> > > ac
> > > to
> > > ryFinder.java:151)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(C
> > > on
> > > cu
> > > rrentHashMap.java:1705)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(De
> > > fa
> > > ul
> > > tFactoryFinder.java:151)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(Defaul
> > > tF
> > > ac
> > > toryFinder.java:74)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(Defaul
> > > tF
> > > ac
> > > toryFinder.java:66)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultComponentResolver.findComponen
> > > t(
> > > De
> > > faultComponentResolver.java:83)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultComponentResolver.resolveCompo
> > > ne
> > > nt
> > > (DefaultComponentResolver.java:56)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(Ab
> > > st
> > > ra
> > > ctCamelContext.java:568)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.access$000(Abstr
> > > ac
> > > tC
> > > amelContext.java:165)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(Abstract
> > > Ca
> > > me
> > > lContext.java:496)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(Abstract
> > > Ca
> > > me
> > > lContext.java:492)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(C
> > > on
> > > cu
> > > rrentHashMap.java:1705)
> > > ~[na:na]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abs
> > > tr
> > > ac
> > > tCamelContext.java:492)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(Abs
> > > tr
> > > ac
> > > tCamelContext.java:468)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(Abst
> > > ra
> > > ct
> > > CamelContext.java:745)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(C
> > > am
> > > el
> > > ContextHelper.java:55)
> > > ~[camel-support-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(D
> > > ef
> > > au
> > > ltRouteContext.java:120)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:
> > > 363)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:
> > > 10
> > > 8)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:33
> > > 0) ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > java:323)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.
> > > java:302)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefiniti
> > > on
> > > s(
> > > AbstractModelCamelContext.java:342)
> > > ~[camel-core-engine-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(Abs
> > > tr
> > > ac
> > > tCamelContext.java:2597)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2
> > > (A
> > > bs
> > > tractCamelContext.java:2445)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedCla
> > > ss
> > > Lo
> > > ader(AbstractCamelContext.java:2462)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.doStart(Abstract
> > > Ca
> > > me
> > > lContext.java:2443)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(Spring
> > > Bo
> > > ot
> > > CamelContext.java:39)
> > > ~[camel-spring-boot-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.support.service.ServiceSupport.start(ServiceSuppo
> > > rt
> > > .j
> > > ava:117)
> > > ~[camel-api-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCa
> > > me
> > > lC
> > > ontext.java:2352)
> > > ~[camel-base-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.
> > > ja
> > > va:121)
> > > ~[camel-spring-3.0.0.jar:3.0.0]
> > >         at
> > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(Spri
> > > ng
> > > Ca
> > > melContext.java:157)
> > > ~[camel-spring-3.0.0.jar:3.0.0]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > do
> > > InvokeListener(SimpleApplicationEventMulticaster.java:172)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > in
> > > vokeListener(SimpleApplicationEventMulticaster.java:165)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.event.SimpleApplicationEventMulticaster.
> > > mu
> > > lticastEvent(SimpleApplicationEventMulticaster.java:139)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.pub
> > > li
> > > sh
> > > Event(AbstractApplicationContext.java:403)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.pub
> > > li
> > > sh
> > > Event(AbstractApplicationContext.java:360)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.fin
> > > is
> > > hR
> > > efresh(AbstractApplicationContext.java:897)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.ref
> > > re
> > > sh
> > > (AbstractApplicationContext.java:553)
> > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.refresh(SpringApplicati
> > > on
> > > .j
> > > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.refreshContext(SpringAp
> > > pl
> > > ic
> > > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > org.springframework.boot.SpringApplication.run(SpringApplication.java:
> > > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]
> > >         at
> > > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkf
> > > lo
> > > wA
> > > pplication.java:40)
> > > ~[classes/:na]
> > > Caused by: java.lang.ClassNotFoundException:
> > > org.apache.camel.impl.DefaultComponent
> > >         at
> > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Builtin
> > > Cl
> > > as
> > > sLoader.java:583)
> > > ~[na:na]
> > >         at
> > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClas
> > > s(
> > > Cl
> > > assLoaders.java:178)
> > > ~[na:na]
> > >         at
> > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> > > ~[na:na]
> > >         ... 63 common frames omitted
> > >
> > >
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2