Red Hat Bugzilla – Bug 1267290
Copying XML Schema Model problem
Last modified: 2015-12-07 08:21:26 EST
Created attachment 1078402 [details]
project with schemas
When creating new XML Schema (XSD) Model by copying from existing model (see steps to reproduce), action fails with error (and new empty schema) for some schemas (e.g. schemas in attachement).
Error attempting to load a Model Editor Page plugin
ID = org.teiid.designer.xsd.ui.editor.XsdSimpleDatatypesEditorPage@611ddac3
Exception Stack Trace:
Caused by: org.xml.sax.SAXParseException ... ... lineNumber: 1; columnNumber: 1; Premature end of file.
I assume it might be something with line endings of Windows text files, because it happened only for files originally created in Windows for me (However some schemas created in Windows works properly).
Steps to reproduce:
1. Import attached project
2. Right-click on project and select New > Teiid Metadata Model
3. Set new name and select "XML Schema (XSD)" Model Class, "Datatype" Model Type, Module Builder: "Copy from existing model of the same model class" and click Next >
4. browse for existing: <ImportedProjectName>/notWorking.xsd (or notWorking2.xsd) and click OK and Finish
Using only JIRA now. Marking as closed