0

我正在使用带有蓝图的 Jboss Fuse 作为 DSL。我使用在 SQlite 中插入数据的 sql 组件编写了一个简单的骆驼路线。

   <route id="testDBRoute">
        <from uri="timer://foo?fixedRate=true&amp;period=10000"/>
        <log message="calling DB"/>
        <to uri="sql:insert into TestTable (ID, FName, LName) values (1, 'Beena', 'Singh')"/>
   </route>

但我在日志中得到以下异常:

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)

我在 sqlite DB 中运行了相同的查询并插入了记录。但是异常说它找不到数据库或表。我已经安装了 camel-sql 和 camel-spring 作为功能。但我不知道为什么它无法连接到 Sqllite DB。任何帮助将不胜感激。

4

0 回答 0