Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamelSources not working in nightly #1419

Closed
nicolaferraro opened this issue Apr 20, 2020 · 0 comments · Fixed by #1421
Closed

CamelSources not working in nightly #1419

nicolaferraro opened this issue Apr 20, 2020 · 0 comments · Fixed by #1421
Assignees
Labels
area/knative Related to Knative kind/bug Something isn't working
Milestone

Comments

@nicolaferraro
Copy link
Member

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.

@nicolaferraro nicolaferraro added kind/bug Something isn't working area/knative Related to Knative labels Apr 20, 2020
@nicolaferraro nicolaferraro added this to the 1.0.0 milestone Apr 20, 2020
@nicolaferraro nicolaferraro self-assigned this Apr 21, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Apr 22, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/knative Related to Knative kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant