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

Update Camel-K/Knative examples for 1.0.0-M1 release #908

Closed
mgencur opened this issue Aug 19, 2019 · 6 comments
Closed

Update Camel-K/Knative examples for 1.0.0-M1 release #908

mgencur opened this issue Aug 19, 2019 · 6 comments

Comments

@mgencur
Copy link

mgencur commented Aug 19, 2019

The goal is to update https://github.com/apache/camel-k/tree/1.0.0-M1/examples/knative so that it works with the latest 1.0.0-M1 release.
Currently, I'm getting this error when running the examples:

Exception in thread "main" org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
Unable to find loader for: Source{location='file:/etc/camel/sources/i-source-000/source.flow', language=flow ,
compressed=false} at org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:52) at 

According to @lburgazzoli the examples need to be updated because "the flow does not exists anymore and we now have a full yaml DSL for Camel"

@sully6768
Copy link

@mgencur, I have been running the knative examples with 1.0.0-M1 for a few days now sorting out a few issues. I haven't seen this one though. Which source file were you running? And in which variation of Kube are you running it in (minishift, codeready, minikube, full OCP/OKD, etc)?

@mgencur
Copy link
Author

mgencur commented Aug 22, 2019

@sully6768 actually, it's probably not caused by examples from the URL above, I'm doing this:

camelSource, err := ctx.Clients.Namespaced.Knative.CamelSourceInterface.Create(&camel.CamelSource{
		ObjectMeta: meta.ObjectMeta{
			Name: "camel-timer-source",
		},
		Spec: camel.CamelSourceSpec{
			Source: camel.CamelSourceOriginSpec{
				Component: &camel.CamelSourceOriginComponentSpec{
					URI: "timer:tick?period=3s",
				},
			},
			Sink: test.ChannelReference(channel),
		},
	})

Right now I"m not sure what could cause the issue. I think we'll need to investigate more on our side.

We're running on OCP 4.1.11

@maschmid
Copy link

That part comes from the Knative Eventing Camel Source sample, not the camel-k sample.

https://knative.dev/docs/eventing/samples/apache-camel-source/
https://knative.dev/docs/eventing/samples/apache-camel-source/source_timer.yaml

@astefanutti
Copy link
Member

@mgencur could you specify what version of Knative and Knative Camel sources you use?

@lburgazzoli
Copy link
Contributor

@mgencur is this still an issue ?

@lburgazzoli lburgazzoli added the status/waiting-for-feedback Needs some feedback label Jun 5, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2020

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants