Home
Analytics
org.eclipse.datatools.connectivity.oda.OdaException
humtumitcs
<p>I am getting the error below when I select the XML file and the XSD file. I have verified that the XML is valid against the XSD and the XSD is valid. Any further pointers?</p><p> </p><p>org.eclipse.datatools.connectivity.oda.OdaException: The provided xsd file is invalid.
at org.eclipse.datatools.enablement.oda.xml.util.ui.XSDFileSchemaTreePopulator.loadSchema(SchemaPopulationUtil.java:433)
at org.eclipse.datatools.enablement.oda.xml.util.ui.XSDFileSchemaTreePopulator.getSchemaTree(SchemaPopulationUtil.java:352)
at org.eclipse.datatools.enablement.oda.xml.util.ui.SchemaPopulationUtil.getSchemaTree(SchemaPopulationUtil.java:65)
at org.eclipse.datatools.enablement.oda.xml.ui.wizards.XPathChoosePage.populateXMLTree(XPathChoosePage.java:390)
at org.eclipse.datatools.enablement.oda.xml.ui.wizards.XPathChoosePage.createPageCustomControl(XPathChoosePage.java:109)
at org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSetWizardPage.createControl(DataSetWizardPage.java:123)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1083)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1142)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.birt.report.designer.ui.actions.NewDataSetAction.createNewDataSet(NewDataSetAction.java:157)
at org.eclipse.birt.report.designer.ui.actions.NewDataSetAction.run(NewDataSetAction.java:142)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
</p>
Find more posts tagged with
Comments
mwilliams
<p>Can you attach your files or sample files that fail the same way? </p><p> </p><p>Also, what is your BIRT version? Thanks.</p>
humtumitcs
<blockquote class="ipsBlockquote" data-author="mwilliams" data-cid="119076" data-time="1375934809"><div><p>Can you attach your files or sample files that fail the same way? </p><p> </p><p>Also, what is your BIRT version? Thanks.</p></div></blockquote><p>Hi Michael,</p><p> </p><p>I was further working on this and found that the issue is when the XSD is saved in UTF-8 encoding. The same works fine when the XSD is saved with ANSI encoding. The BIRT version is 2.x.</p><p> </p><p>Regards,</p><p>Rajan</p>
mwilliams
<p>Glad to hear you found a way around it! Let us know whenever you have questions!</p>
humtumitcs
<blockquote class="ipsBlockquote" data-author="mwilliams" data-cid="119229" data-time="1376452054"><div><p>Glad to hear you found a way around it! Let us know whenever you have questions!</p></div></blockquote><p>We have not yet found a solution to it. One XSD which was in ANSI encoding works fine whereas one which has UTF-8 encoding does not. Do you have any thoughts on it.</p>
mwilliams
<p>The only thing I can think of is to change the encoding on the other file, if you have that control, or maybe you could read the file in, change the encoding with code, then use it. Unfortunately I've not tried this ever, so I don't know much more.</p>
humtumitcs
<blockquote class="ipsBlockquote" data-author="mwilliams" data-cid="119320" data-time="1376585985"><div><p>The only thing I can think of is to change the encoding on the other file, if you have that control, or maybe you could read the file in, change the encoding with code, then use it. Unfortunately I've not tried this ever, so I don't know much more.</p></div></blockquote><p>The issue could be resolved when I saved the UTF-8 encoding file with UTF-8 without BOM encoding. A Unicode/UTF-8 article says using a UTF-8 encoding file with BOM is not recommended. Thanks anyways for your response.</p><p> </p><p>-Rajan</p>
mwilliams
<p>Great! Glad you found a solution! Let us know whenever you have questions!
</p>