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:


Target version:3.1.03


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:

    at org.modelio.xsddesigner.utils.EmfUtils.setObjingId(
    at org.modelio.xsddesigner.strategy.objing.ObjingStrategyEcoreBuilder.befor_visitXSDElement(
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDAttribut(
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDType(
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDAssociation(
    at org.modelio.xsddesigner.strategy.objing.ObjingVisitor.visitXSDRoot(
    at org.modelio.xsddesigner.managers.ExportManager.buildElements(
    at org.modelio.xsddesigner.managers.ExportManager.exportSchema(
    at org.modelio.xsddesigner.impl.XSDExport.actionPerformed(
    at org.modelio.module.commands.ExecuteModuleActionHandler.execute(

ErrorExportXSD.png (19.5 KB) Christophe Demeulemeester, 06 March 2014 14:33 (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


#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