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

Workaround for knative-source loader does not exists any more? #1666

Closed
aslom opened this issue Aug 19, 2020 · 4 comments
Closed

Workaround for knative-source loader does not exists any more? #1666

aslom opened this issue Aug 19, 2020 · 4 comments
Labels
area/knative Related to Knative kind/bug Something isn't working status/stale

Comments

@aslom
Copy link
Contributor

aslom commented Aug 19, 2020

What are current instructions in installing and running Camel-K in OpenSHift 4.4 /deploying_camel_k_integrations_on_openshift/getting-started-with-camel-k#installing-camel-k-operatorhub and I am getting Caused by: java.lang.RuntimeException: Error creating instance of loader: knative-source
at org.apache.camel.k.support.RuntimeSupport.lambda$lookupLoaderFromResource$10(RuntimeSupport.java:202)

To run tests I have followed using https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial-camelk/camel-k-eventing.html#camel-k-es-sink
and for general setup I have used https://access.redhat.com/documentation/en-us/red_hat_integration/2020-q2/html

k apply -f get-started/timed-greeter-source.yaml
camelsource.sources.knative.dev/timed-greeter created
k logs timed-greeter-qthcr-6c6c9bb8b5-qvczv
2020-08-19 01:22:37.450 INFO  [main] LRUCacheFactory - Detected and using LURCacheFactory: camel-caffeine-lrucache
2020-08-19 01:22:37.703 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RuntimeConfigurer@4149c063
2020-08-19 01:22:37.704 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@376a0d86
2020-08-19 01:22:37.707 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@222a59e6
2020-08-19 01:22:37.709 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@4ef74c30
2020-08-19 01:22:37.710 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.PropertiesFunctionsConfigurer@47c81abf
2020-08-19 01:22:37.721 INFO  [main] ApplicationRuntime - Listener org.apache.camel.k.listener.RuntimeConfigurer@4149c063 executed in phase Starting
2020-08-19 01:22:37.786 INFO  [main] ApplicationRuntime - Listener org.apache.camel.k.listener.PropertiesFunctionsConfigurer@47c81abf executed in phase Starting
2020-08-19 01:22:37.788 INFO  [main] BaseMainSupport - Using properties from:
2020-08-19 01:22:37.809 INFO  [main] RuntimeSupport - Looking up loader for id: knative-source
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.
@nicolaferraro nicolaferraro added this to the 1.1.1 milestone Aug 20, 2020
@nicolaferraro nicolaferraro added the kind/bug Something isn't working label Aug 20, 2020
@nicolaferraro
Copy link
Member

That's strange, are you using the 1.1.0 operator?

@aslom
Copy link
Contributor Author

aslom commented Aug 20, 2020

Using operators available in OpenShift 4.4

red-hat-camel-k-operator.v1.0.0
serverless-operator.v1.7.2

Should I use instead

Camel K Operator 1.1.0 provided by The Apache Software Foundation

?

For CLI I am using the lastest version from brew:

$  kamel version
Camel K Client 1.1.0
$ brew upgrade kamel
Updating Homebrew...
==> Auto-updated Homebrew!
...
Warning: kamel 1.1.0 already installed

Should I use other version?

@astefanutti astefanutti added the area/knative Related to Knative label Aug 24, 2020
@nicolaferraro nicolaferraro removed this from the 1.1.1 milestone Aug 31, 2020
@lburgazzoli
Copy link
Contributor

@nicolaferraro is this still an issue ?

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!

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 status/stale
Projects
None yet
Development

No branches or pull requests

4 participants