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

routes.yaml example fails with NoSuchLanguageException #929

Closed
jamesnetherton opened this issue Sep 10, 2019 · 1 comment · Fixed by #957
Closed

routes.yaml example fails with NoSuchLanguageException #929

jamesnetherton opened this issue Sep 10, 2019 · 1 comment · Fixed by #957
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@jamesnetherton
Copy link
Contributor

The body uppercase transformation in the routes.yaml example results in:

2019-09-10 08:50:02.245 WARN  [Camel (camel-k) thread #2 - timer://tick] TimerConsumer - Error processing exchange. Exchange[ID-routes-6559d6b457-vlsxl-1568105397257-0-3]. Caused by: [org.apache.camel.NoSuchLanguageException - No language could be found for: bean]
org.apache.camel.NoSuchLanguageException: No language could be found for: bean
	at org.apache.camel.impl.engine.DefaultLanguageResolver.noSpecificLanguageFound(DefaultLanguageResolver.java:91) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.impl.engine.DefaultLanguageResolver.resolveLanguage(DefaultLanguageResolver.java:67) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.impl.engine.AbstractCamelContext.resolveLanguage(AbstractCamelContext.java:1619) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.support.builder.ExpressionBuilder$68.evaluate(ExpressionBuilder.java:1527) ~[org.apache.camel.camel-support-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:34) ~[org.apache.camel.camel-support-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.language.simple.SimpleExpressionBuilder$29.evaluate(SimpleExpressionBuilder.java:668) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:34) ~[org.apache.camel.camel-support-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.builder.SimpleBuilder.evaluate(SimpleBuilder.java:99) ~[org.apache.camel.camel-core-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.processor.SetBodyProcessor.process(SetBodyProcessor.java:43) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryState.run(RedeliveryErrorHandler.java:480) ~[org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:185) [org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:59) [org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:87) [org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:222) [org.apache.camel.camel-base-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:193) [org.apache.camel.camel-timer-3.0.0-M4.jar:3.0.0-M4]
	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:75) [org.apache.camel.camel-timer-3.0.0-M4.jar:3.0.0-M4]
	at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_191]
	at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_191]

If you manually add a dependency for camel-bean it works fine. Not sure if that's the intended way to make the example work, but it'd be nice if it worked OOTB.

@lburgazzoli
Copy link
Contributor

it maybe because of some relocation of classes in camel 3 rc1, we probably need to add camel-bean as common dependency

@nicolaferraro nicolaferraro added this to the 1.0.0-M2 milestone Sep 20, 2019
@nicolaferraro nicolaferraro added the kind/bug Something isn't working label Sep 20, 2019
@jamesnetherton jamesnetherton self-assigned this Sep 25, 2019
jamesnetherton added a commit to jamesnetherton/camel-k that referenced this issue Sep 26, 2019
jamesnetherton added a commit to jamesnetherton/camel-k that referenced this issue Sep 26, 2019
jamesnetherton added a commit to jamesnetherton/camel-k that referenced this issue Sep 26, 2019
jamesnetherton added a commit to jamesnetherton/camel-k that referenced this issue Sep 26, 2019
jamesnetherton added a commit to jamesnetherton/camel-k that referenced this issue Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants