【发布时间】:2014-07-04 13:14:26
【问题描述】:
我创建了一个从本地应用程序获取 XML 数据的 XML 数据源。创建数据集时出现以下错误。
org.eclipse.datatools.connectivity.oda.OdaException: XML data source cannot be retrieved. XML data source file is invalid or the file doesn't exist.
at org.eclipse.datatools.enablement.oda.xml.ui.wizards.XPathChoosePage.populateXMLTree(XPathChoosePage.java:482)
at org.eclipse.datatools.enablement.oda.xml.ui.wizards.XPathChoosePage.createPageCustomControl(XPathChoosePage.java:121)
at org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSetWizardPage.createControl(DataSetWizardPage.java:123)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1182)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1241)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1225)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
XML URL 返回以下数据:
<table>
<row>
<marketName>dd</marketName>
<commodityName>Black Barley</commodityName>
<priceType>Wholesale</priceType>
<pricePerQtl>58.0</pricePerQtl>
<date>2014-07-03 15:18:21</date>
</row>
</table>
【问题讨论】:
-
您能否提供更多详细信息,例如软件版本?
-
@Miki Spring Tool Suite 版本:3.5.1.RELEASE 构建 ID:201405030657 平台:Eclipse Kepler SR2 (4.3.2)
-
我可以根据您的数据在 BIRT 4.3.2 中生成报告。您是否只在应用程序或 BIRT 设计器中遇到问题?
-
@Miki 当我使用 XML 文件作为数据源时它适用于我,但现在当我向 XML 文件生成器提供 URL 时。
-
你能保存/检查生成的 XML 文件吗? URL 语法是否正确?