I am using Jboss Fuse with blueprint as DSL. I wrote a simple camel route using sql component which inserts data in SQlite.
<route id="testDBRoute">
<from uri="timer://foo?fixedRate=true&period=10000"/>
<log message="calling DB"/>
<to uri="sql:insert into TestTable (ID, FName, LName) values (1, 'Beena', 'Singh')"/>
</route>
But I got below exception in logs:
org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL []; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: TestTable); nested exception is java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: TestTable)
I ran the same query in sqlite DB and the record is inserted. But the exception says it can't find either the db or the table. I have installed camel-sql and camel-spring as a feature. But I am clueless as to why its not able to connect to Sqllite DB.Any help will be appreciated.