You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/04/20 16:38:29 UTC

[GitHub] [camel-k] nicolaferraro opened a new issue #1419: CamelSources not working in nightly

nicolaferraro opened a new issue #1419:
URL: https://github.com/apache/camel-k/issues/1419


   Get this error:
   
   ```
   Exception in thread "main" org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Error creating instance of loader: knative-source
   	at org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:52)
   	at org.apache.camel.k.listener.RoutesConfigurer.load(RoutesConfigurer.java:64)
   	at org.apache.camel.k.listener.RoutesConfigurer.accept(RoutesConfigurer.java:52)
   	at org.apache.camel.k.listener.AbstractPhaseListener.accept(AbstractPhaseListener.java:32)
   	at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.lambda$invokeListeners$0(ApplicationRuntime.java:179)
   	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
   	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
   	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
   	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
   	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
   	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
   	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
   	at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.invokeListeners(ApplicationRuntime.java:178)
   	at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.beforeConfigure(ApplicationRuntime.java:152)
   	at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:584)
   	at org.apache.camel.main.BaseMainSupport.initCamelContext(BaseMainSupport.java:423)
   	at org.apache.camel.k.main.ApplicationRuntime$MainAdapter.doInit(ApplicationRuntime.java:195)
   	at org.apache.camel.support.service.ServiceSupport.init(ServiceSupport.java:83)
   	at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:112)
   	at org.apache.camel.main.MainSupport.run(MainSupport.java:82)
   	at org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:71)
   	at org.apache.camel.k.main.Application.main(Application.java:42)
   Caused by: java.lang.RuntimeException: Error creating instance of loader: knative-source
   	at org.apache.camel.k.support.RuntimeSupport.lambda$lookupLoaderFromResource$10(RuntimeSupport.java:212)
   	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
   	at org.apache.camel.k.support.RuntimeSupport.lookupLoaderFromResource(RuntimeSupport.java:212)
   	at org.apache.camel.k.support.RuntimeSupport.lookupLoaderById(RuntimeSupport.java:189)
   	at org.apache.camel.k.support.RuntimeSupport.lambda$loaderFor$8(RuntimeSupport.java:173)
   	at java.base/java.util.Optional.map(Optional.java:265)
   	at org.apache.camel.k.support.RuntimeSupport.loaderFor(RuntimeSupport.java:172)
   	at org.apache.camel.k.listener.RoutesConfigurer.load(RoutesConfigurer.java:82)
   	at org.apache.camel.k.listener.RoutesConfigurer.load(RoutesConfigurer.java:62)
   	... 21 more
   ```
   
   
   Apparently the dependencies for a simple timer to channel contain:
   ```
       - camel:timer
       - mvn:org.apache.camel.k/camel-k-runtime-main
   ```
   
   While in RC2 it was:
   ```
       - camel:timer
       - mvn:org.apache.camel.k/camel-k-loader-knative
       - mvn:org.apache.camel.k/camel-k-loader-yaml
       - mvn:org.apache.camel.k/camel-k-runtime-knative
       - mvn:org.apache.camel.k/camel-k-runtime-main
   ```
   
   We can add an example of Camel Source from last released Knative in the CI to avoid such regressions.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org