Bug 1267290 - Copying XML Schema Model problem
Summary: Copying XML Schema Model problem
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Tooling
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Barry LaFond
QA Contact: Matus Makovy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-29 14:45 UTC by skaleta
Modified: 2015-12-07 13:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-07 13:21:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
project with schemas (3.02 KB, application/zip)
2015-09-29 14:45 UTC, skaleta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIIDDES-2670 0 Optional Open Copying XML Schema Model problem 2015-12-08 12:03:58 UTC

Description skaleta 2015-09-29 14:45:23 UTC
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 message: 
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

Comment 1 Barry LaFond 2015-12-07 13:21:26 UTC
Using only JIRA now.  Marking as closed


Note You need to log in before you can comment on or make changes to this bug.