camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9159) wireTap("log: ...") leads to script engine error
Date Thu, 24 Sep 2015 11:51:05 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906248#comment-14906248
] 

Claus Ibsen commented on CAMEL-9159:
------------------------------------

Its because you have camel-script on the classpath that should not attempt to assume log is
a scripting language.

> wireTap("log: ...") leads to script engine error
> ------------------------------------------------
>
>                 Key: CAMEL-9159
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9159
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Thomas Diesler
>            Assignee: Claus Ibsen
>             Fix For: 2.16.0
>
>
> For 
> {code}
>         // do something in camel that is transactional
>         CamelContext camelctx = new DefaultCamelContext();
>         camelctx.addRoutes(new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 from("direct:start")
>                 .wireTap("log:org.wildfly.camel.test.jpa?level=WARN")
>                 .to("sql:update Account set balance = :#${body} where id = 3?dataSource=java:jboss/datasources/ExampleDS");
>             }
>         });
> {code}
> we get
> {code}
> Caused by: java.lang.IllegalArgumentException: No script engine could be created for:
log
> 	at org.apache.camel.builder.script.ScriptBuilder.createScriptEngine(ScriptBuilder.java:334)
> 	at org.apache.camel.builder.script.ScriptBuilder.<init>(ScriptBuilder.java:111)
> 	at org.apache.camel.builder.script.ScriptBuilder.<init>(ScriptBuilder.java:90)
> 	at org.apache.camel.builder.script.ScriptLanguage.createExpression(ScriptLanguage.java:40)
> 	at org.apache.camel.model.ToDynamicDefinition.createExpression(ToDynamicDefinition.java:95)
> 	at org.apache.camel.model.ToDynamicDefinition.createProcessor(ToDynamicDefinition.java:70)
> 	at org.apache.camel.model.WireTapDefinition.createProcessor(WireTapDefinition.java:80)
> 	at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)
> 	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)
> 	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
> 	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
> {code}
> CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/882



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message