file XMI export fails on Time event

4 years 10 months ago - 4 years 10 months ago #3678 by tomhay
Hi,
I'm on 3.4.0.
I have created a package with a State Machine diagram. It exports to XMI just fine until I add a Time event (Expression value = 5000). Export then fails with stack trace:

2015-10-03 22:42:08,718 ERROR org.modelio.xmi - null
java.lang.NullPointerException: null
at org.modelio.xmi.model.objing.OEvent.setTimeProperties(OEvent.java:127)
at org.modelio.xmi.model.objing.OEvent.setProperties(OEvent.java:104)
at org.modelio.xmi.generation.ExportModel.finishElementCreation(ExportModel.java:137)
at org.modelio.xmi.generation.ExportModel.export(ExportModel.java:76)
at org.modelio.xmi.generation.XMIExportBehavior.visitEvent(XMIExportBehavior.java:556)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitEvent(OwnershipMetamodelVisitor.java:780)
at org.modelio.metamodel.impl.uml.behavior.commonBehaviors.EventImpl.accept(EventImpl.java:201)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitBehavior(OwnershipMetamodelVisitor.java:419)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitStateMachine(DefaultModelVisitor.java:1922)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitStateMachine(OwnershipMetamodelVisitor.java:1554)
at org.modelio.metamodel.impl.uml.behavior.stateMachineModel.StateMachineImpl.accept(StateMachineImpl.java:174)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitNameSpace(OwnershipMetamodelVisitor.java:1178)
at org.modelio.metamodel.visitors.DefaultModelVisitor.visitPackage(DefaultModelVisitor.java:1742)
at org.modelio.xmi.generation.OwnershipMetamodelVisitor.visitPackage(OwnershipMetamodelVisitor.java:1329)
at org.modelio.metamodel.impl.uml.statik.PackageImpl.accept(PackageImpl.java:202)
at org.modelio.xmi.generation.ExportServices.createEcoreModel(ExportServices.java:237)
at org.modelio.xmi.gui.ExportThread.run(ExportThread.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

If I remove the Time event, the export works again.

Is this a bug?

Please Log in or Create an account to join the conversation.

4 years 10 months ago #3685 by ebr
It is a bug, an issue has already been posted http://forge.modelio.org/issues/256 .

Thanks for the feedback.

EBR

Please Log in or Create an account to join the conversation.

Moderators: tmaaabcde
Time to create page: 0.053 seconds
^ Back to Top