org.apache.camel.RuntimeCamelException

org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> To[direct-vm:testHZ] <<< in route: Route(route2)[[From[jms:queue:startEndpoint]] -> [To[direct-... because of Failed to resolve endpoint: direct-vm://testHZ due to: Cannot auto create component: direct-vm

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web316

  • via GitHub by thomasmodeneis
    ,
  • via Unknown by Unknown author,
  • Stack trace

    • org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> To[direct-vm:testHZ] <<< in route: Route(route2)[[From[jms:queue:startEndpoint]] -> [To[direct-... because of Failed to resolve endpoint: direct-vm://testHZ due to: Cannot auto create component: direct-vm at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:317) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> To[direct-vm:testHZ] <<< in route: Route(route2)[[From[jms:queue:startEndpoint]] -> [To[direct-... because of Failed to resolve endpoint: direct-vm://testHZ due to: Cannot auto create component: direct-vm at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:912) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:778) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1959) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1709) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1583) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1551) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:254) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120) ... 10 more Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: direct-vm://testHZ due to: Cannot auto create component: direct-vm at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:531) at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71) at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:192) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112) at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61) at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55) at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:500) at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:909) ... 19 more Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: direct-vm at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:361) at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:337) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:501) ... 28 more Caused by: java.lang.IllegalArgumentException: Invalid URI, no org.apache.camel.Component registered for scheme : direct-vm at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:414) at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:400) at org.apache.camel.impl.osgi.Activator$BundleComponentResolver.resolveComponent(Activator.java:195) at org.apache.camel.core.osgi.OsgiComponentResolver.getComponent(OsgiComponentResolver.java:76) at org.apache.camel.core.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:64) at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:350) ... 30 more Caused by: java.lang.ClassNotFoundException: org.apache.camel.component.directvm.DirectVmComponent not found by com.hazelcast.api.hazelcast-endpoint [343] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1870) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:937) at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:408) ... 35 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    mindenaronmindenaron
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    42 more bugmates