我正在尝试使用以下jdbcConnector将此数据保存到数据库,但我得到了一个 无法分派事件的错误。
<jdbc:connector name="DatabaseConnector" dataSource-ref="datasource" >
<jdbc:query key="insertVolumeDetails" value="insert into VolumeSearchInfo
( Id,
subCategoryId,
subCategoryDetailId,
classification,
Author,
ISBN,
createdDate,
createdBy,
updatedDate,
updatedBy
)
VALUES(#[Long.valueOf(xpath('Document/Heading/Id'))],
#[Long.valueOf(xpath("Document/Title/SubCategoryId/SubCategoryId[text()`enter code here`='EDFL']/../Manuscript/text()"))],
#[xpath('Document/Catalog/SubCategory/SubCategoryDetails/SubCategoryDetailId/text()'],
#[xpath('Document/Catalog/SubCategory/SubCategoryDetails/Topic/classification/text()'],
#[xpath('Document/Catalog/SubCategory/SubCategoryDetails/Author/text()'],
#[xpath('Document/Catalog/SubCategory/SubCategoryDetails/ISBN/text()'],
#[function:now],
#[server.userName],
#[function:now],
#[server.userName])">
</jdbc:query>
</jdbc:connector>
有谁知道问题是什么,即使我设置了
,Mule确实提供了很多信息mule.exception.verbose为true。上面的连接器确实连接到数据库,但是 无法使用上面的JDBCConnector插入数据。