Issue #306

<<use>>-Link prevents XMI export

Added by Bernd Wagner 10 months ago. Updated 9 months ago.

Status:AssignedStart date:29 November 2016
Priority:MediumDue date:
Assignee:Etienne Brosse% Done:

0%

Category:-
Target version:-

Description

The existence of a usage-dependency in a package seems to cause a Null Pointer exception when the package is XMI-exported.

Example: Create a package with a deployment diagram with two nodes. Check, that XMI export of the package works. Draw a <> link between the two nodes. Then XMI export produces the following error message in the logfile:

2016-11-29 11:02:29,684 ERROR org.modelio.xmi – null java.lang.NullPointerException: null

at org.modelio.xmi.util.ScopeChecker.contains(ScopeChecker.java:175)
at org.modelio.xmi.generation.ExportModel.export(ExportModel.java:54)
at org.modelio.xmi.generation.XMIExportBehavior.visitUsage(XMIExportBehavior.java:1104)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitUsage(OwnershipMetamodelVisitor.java:1840)
at org.modelio.metamodel.impl.uml.infrastructure.UsageImpl.accept(UsageImpl.java:87)
at org.modelio.metamodel.impl.uml.infrastructure.UsageImpl.accept(UsageImpl.java:80)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitModelElement(OwnershipMetamodelVisitor.java:1222)
at org.modelio.xmi.generation.GenericMetamodelVisitor.visitUmlModelElement(GenericMetamodelVisitor.java:56)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitModelTree(DefaultModelVisitor.java:1413)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitModelTree(OwnershipMetamodelVisitor.java:1237)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitNameSpace(DefaultModelVisitor.java:1419)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitNameSpace(OwnershipMetamodelVisitor.java:1261)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitClassifier(DefaultModelVisitor.java:963)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitClassifier(OwnershipMetamodelVisitor.java:531)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitNode(DefaultModelVisitor.java:1461)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitNode(OwnershipMetamodelVisitor.java:1354)
at org.modelio.metamodel.impl.uml.statik.NodeImpl.accept(NodeImpl.java:100)
at org.modelio.metamodel.impl.uml.infrastructure.UmlModelElementImpl.accept(UmlModelElementImpl.java:377)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitModelTree(OwnershipMetamodelVisitor.java:1239)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitNameSpace(DefaultModelVisitor.java:1419)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitNameSpace(OwnershipMetamodelVisitor.java:1261)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitPackage(DefaultModelVisitor.java:1515)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitPackage(OwnershipMetamodelVisitor.java:1461)
at org.modelio.metamodel.impl.uml.statik.PackageImpl.accept(PackageImpl.java:200)
at org.modelio.metamodel.impl.uml.infrastructure.UmlModelElementImpl.accept(UmlModelElementImpl.java:377)
at org.modelio.xmi.generation.ExportServices.createEcoreModel(ExportServices.java:178)
at org.modelio.xmi.gui.ExportThread.run(ExportThread.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Here is my version information: Version 3.6.00 Build: 201611021053 System: linux (4.4.0-47-generic) Architecture: x86_64 Ubuntu 16.04

History

#1 Updated by Antonio Pedro 9 months ago

  • Assignee set to Etienne Brosse

#2 Updated by Etienne Brosse 9 months ago

  • Status changed from New to Assigned

Also available in: Atom PDF