Issue #183

XSD export fails without error message when trying to export an XSD schema related via a 'Complex element' to a 'Complex Type' which owns an 'Element'...

Added by Christophe Demeulemeester almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:06 March 2014
Priority:ImmediatDue date:
Assignee:Antonin Abhervé% Done:

100%

Category:Export
Target version:3.1.03

Description

XSD export fails without error message when trying to export an XSD schema related via a ‘Complex element’ to a ‘Complex Type’ which owns an ‘Element’…

See attached model screenshot.

Steps to reproduce:

  1. Create an XSD Model.
  2. Reproduce the model in the attached screenshot.
  3. Try to export the XSD Schema –> No file generated, no error message, except a NPE in the console !

Error log:

java.lang.NullPointerException
    at org.modelio.xsddesigner.utils.EmfUtils.setObjingId(EmfUtils.java:102)
    at org.modelio.xsddesigner.strategy.objing.ObjingStrategyEcoreBuilder.befor_visitXSDElement(ObjingStrategyEcoreBuilder.java:141)
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDAttribut(ObjingVisitor.java:102)
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDType(ObjingVisitor.java:126)
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDAssociation(ObjingVisitor.java:72)
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDRoot(ObjingVisitor.java:33)
    at org.modelio.xsddesigner.managers.ExportManager.buildElements(ExportManager.java:82)
    at org.modelio.xsddesigner.managers.ExportManager.exportSchema(ExportManager.java:45)
    at org.modelio.xsddesigner.impl.XSDExport.actionPerformed(XSDExport.java:27)
    at org.modelio.module.commands.ExecuteModuleActionHandler.execute(ExecuteModuleActionHandler.java:51)
    ...

ErrorExportXSD.png (19.5 KB) Christophe Demeulemeester, 06 March 2014 14:33

XSD.zip (2.85 MB) Christophe Demeulemeester, 06 March 2014 14:33


Related issues

Related to Issue #159: java.lang.NullPointerException when exporting to XSD file Closed 03 December 2013
Related to Issue #137: XSD export won't create xsd-file, how to some log informa... New 15 October 2013

History

#1 Updated by Christophe Demeulemeester over 6 years ago

  • Status changed from New to Closed
  • Target version set to 3.1.03
  • % Done changed from 0 to 100

Validated with XSD Designer 3.1.03 + Modelio 3.1.1 – 201402210039 64-bit on Windows 8.1 64-bit.

Also available in: Atom PDF