[
https://issues.jboss.org/browse/TEIIDDES-1568?page=com.atlassian.jira.plu...
]
Barry LaFond updated TEIIDDES-1568:
-----------------------------------
Description:
While trying to create simple XML document for "Employee" from the attached
Employees.xsd schema, there were NPE's.
Tracked in Debug and seems the created MappingDocument class does not have it's
variable "parent" set which is required to walk the mapping nodes and create
children.
!ENTRY org.teiid.designer.transformation 4 0 2013-01-28 08:29:47.504
!MESSAGE
!STACK 0
java.lang.NullPointerException
at
org.teiid82.sql.impl.xml.MappingDocumentFactory.addNamespace(MappingDocumentFactory.java:66)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createNamespaceAttribute(MappingDocumentFormatter.java:833)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMapping(MappingDocumentFormatter.java:787)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.processChildren(MappingDocumentFormatter.java:1118)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.processNamespaces(MappingDocumentFormatter.java:1198)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createDocumentNode(MappingDocumentFormatter.java:702)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMapping(MappingDocumentFormatter.java:748)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMappingString(MappingDocumentFormatter.java:821)
at
org.teiid.designer.transformation.aspects.sql.TreeMappingRootSqlAspect.getTransformation(TreeMappingRootSqlAspect.java:285)
at
org.teiid.designer.transformation.aspects.sql.TreeMappingRootSqlAspect.getTransformationInfo(TreeMappingRootSqlAspect.java:333)
at
org.teiid.designer.core.metadata.runtime.RuntimeAdapter.addTransformationWords(RuntimeAdapter.java:412)
at
org.teiid.designer.core.metadata.runtime.RuntimeAdapter.addIndexWord(RuntimeAdapter.java:172)
at org.teiid.designer.core.index.ModelIndexer.addIndexWord(ModelIndexer.java:311)
at org.teiid.designer.core.index.ModelIndexer.index(ModelIndexer.java:164)
was:
While trying to create simple XML document for "Employee" from the attached
Employees.xsd schema, there were NPE's.
Tracked in Debug and seems the created MappingDocument class does not have it's
variable "parent" set which is required to walk the mapping nodes and create
children.
NPEs resulting from null parent mapping nodes on XML Document
creation from schema
----------------------------------------------------------------------------------
Key: TEIIDDES-1568
URL:
https://issues.jboss.org/browse/TEIIDDES-1568
Project: Teiid Designer
Issue Type: Feature Request
Components: Modeling
Affects Versions: 8.1
Reporter: Barry LaFond
Assignee: Paul Richardson
Fix For: 8.1
While trying to create simple XML document for "Employee" from the attached
Employees.xsd schema, there were NPE's.
Tracked in Debug and seems the created MappingDocument class does not have it's
variable "parent" set which is required to walk the mapping nodes and create
children.
!ENTRY org.teiid.designer.transformation 4 0 2013-01-28 08:29:47.504
!MESSAGE
!STACK 0
java.lang.NullPointerException
at
org.teiid82.sql.impl.xml.MappingDocumentFactory.addNamespace(MappingDocumentFactory.java:66)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createNamespaceAttribute(MappingDocumentFormatter.java:833)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMapping(MappingDocumentFormatter.java:787)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.processChildren(MappingDocumentFormatter.java:1118)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.processNamespaces(MappingDocumentFormatter.java:1198)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createDocumentNode(MappingDocumentFormatter.java:702)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMapping(MappingDocumentFormatter.java:748)
at
org.teiid.designer.transformation.aspects.sql.MappingDocumentFormatter.createMappingString(MappingDocumentFormatter.java:821)
at
org.teiid.designer.transformation.aspects.sql.TreeMappingRootSqlAspect.getTransformation(TreeMappingRootSqlAspect.java:285)
at
org.teiid.designer.transformation.aspects.sql.TreeMappingRootSqlAspect.getTransformationInfo(TreeMappingRootSqlAspect.java:333)
at
org.teiid.designer.core.metadata.runtime.RuntimeAdapter.addTransformationWords(RuntimeAdapter.java:412)
at
org.teiid.designer.core.metadata.runtime.RuntimeAdapter.addIndexWord(RuntimeAdapter.java:172)
at org.teiid.designer.core.index.ModelIndexer.addIndexWord(ModelIndexer.java:311)
at org.teiid.designer.core.index.ModelIndexer.index(ModelIndexer.java:164)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira