HI,
I tried to use new available procedure in Apache Camel 2.17.0 for calling
stored procedure and getting following error
Code:
from("file://D:/?fileName=test1.txt&noop=true")
.split( body().tokenize("\n") ).streaming()
.process(new LineParser())
.log("Col0: ${body[0]} col1: ${body[1]} ")
.to("sql-stored:termSubsc(INTEGER ${body[0]},INTEGER
${body[1]})?dataSource=#oracleDS");
DefaultErrorHandler ERROR Failed delivery for (MessageId:
ID-1462111577116-0-5 on ExchangeId: ID-1462111577116-0-4). Exhausted after
delivery attempt: 1 caught:
org.apache.camel.component.sql.stored.template.ast.ParseRuntimeException:
org.apache.camel.component.sql.stored.template.generated.ParseException:
Encountered " <IDENTIFIER> "${body "" at line 1, column 24.
Was expecting one of:
<SIMPLE_EXP_TOKEN> ...
<PARAMETER_POS_TOKEN> ...
--
View this message in context:
http://camel.465427.n5.nabble.com/SQL-Stored-Procedure-Component-2-17-0-Parsing-Error-tp5782030.html
Sent from the Camel - Users mailing list archive at Nabble.com.