如何获取CData XML的确切错误消息?

问题描述

Class.forName("cdata.jdbc.xml.XMLDriver");
    try {
        Connection conn = DriverManager.getConnection("jdbc:xml:DataModel=Relational;URI=D:\\xml\\vehicles.xml;XPath='/er'");
   /* Properties prop = new Properties();
    prop.setProperty("DataModel","Relational");
    prop.setProperty("URI","C:\\Users\\ddd\\Desktop\\waterfall.xml");*/
        Statement stat = conn.createStatement();
        boolean ret = stat.execute("SELECT * FROM people");

在执行上述查询时,传递错误的xpath并没有得到正确的错误消息“ xcoreXxmlX190X7354.lre:无法检索表[people]的列。”

查询中为错误的根元素获取相同的错误消息,如何为XPath获取正确的错误消息?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)