|
Re: Cannot create xml dataset with xml datasource with special characters [message #821027 is a reply to message #820565] |
Wed, 14 March 2012 21:21 |
|
I set the encoding in the data source to utf-8 and then converted your
data field to utf-8
See attached report example and xml file
Jason
On 3/14/2012 5:38 AM, js Mising name wrote:
> I am using:
>
> Eclipse IDE for Java and Report Developers
> Version: Indigo Service Release 1 Build id: 20110916-0149
>
> I am using the attached xml file as a datasource containing the special character m^3. But I cannot create a xml dataset when this character is in the xml. If I remove the character it works fine.
>
> Where do I find the supported encoding for a xml datasource/dataset or is it possible to change it somehow?
>
>
>
> I get the below error when the character is in the xml.
>
> Quote:
>> 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:431)
>> at org.eclipse.datatools.enablement.oda.xml.ui.wizards.XPathChoosePage.createPageCustomControl(XPathChoosePage.java:108)
>> 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:1183)
>> at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1242)
>> at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
>> at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
>> at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
>> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
>> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at org.eclipse.birt.report.designer.data.ui.actions.NewDataSetAction.createNewDataSet(NewDataSetAction.java:193)
>> at org.eclipse.birt.report.designer.data.ui.actions.NewDataSetAction.run(NewDataSetAction.java:181)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>> at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>> at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>> at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>> 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:622)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>
|
|
|
Powered by
FUDForum. Page generated in 0.03460 seconds