Exceptions in UML Designer Development [message #1795173] |
Mon, 17 September 2018 17:25 |
Thomas Pusztai Messages: 27 Registered: September 2018 |
Junior Member |
|
|
Hi,
I'm trying to extend UML Designer using Sirius 6.0.1 on Eclipse Photon for my computer science master's thesis. I cloned the repository from Github, merged this pull request, and made some more dependency changes to get Sirius 6.0 compatibility.
I can launch the org.obeonetwork.dsl.uml2.navigator project as an Eclipse application and edit a project that I had created with UML Designer 8.0 on Eclipse Oxygen.
The problem is that when I'm in the Eclipse instance used for development (so not the Eclipse application launched using the org.obeonetwork.dsl.uml2.navigator project) and I create a new class diagram using "Create Representation", the diagram creation works fine, but once I add a new element to the diagram or import an element from my existing UML model, it always has the title "Invalid Feature as Name".
I checked the problems view and there I can see multiple entries of the following types:
Feature: labelExpression Exception while calling service org.obeonetwork.dsl.uml2.design.api.services.PackageHierarchyServices.computeUmlLabel(org.eclipse.uml2.uml.Element).
and
Feature: labelExpression An error has appeared during the evaluation of an expression:
Expression: aql:self.computeAssociationBeginLabel()
Diagnostic: Diagnostic ERROR source=org.eclipse.acceleo.query code=0 computeAssociationBeginLabel(org.eclipse.uml2.uml.Association) with arguments [org.eclipse.uml2.uml.internal.impl.AssociationImpl@2280e4 (name: insulinPumpStatesToBasalRates, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isDerived: false)] failed:
null data=[org.eclipse.acceleo.query.runtime.AcceleoQueryEvaluationException: computeAssociationBeginLabel(org.eclipse.uml2.uml.Association) with arguments [org.eclipse.uml2.uml.internal.impl.AssociationImpl@2280e4 (name: insulinPumpStatesToBasalRates, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isDerived: false)] failed:
null]
Target URI Fragment: platform:/resource/HealthCareTest/model.uml#_ETsN0GaAEeiSn7XRQcELJw
Target: org.eclipse.uml2.uml.internal.impl.AssociationImpl@2280e4 (name: insulinPumpStatesToBasalRates, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isDerived: false)
What is the best way for debugging this problem? I found the method org.obeonetwork.dsl.uml2.design.api.services.PackageHierarchyServices.computeUmlLabel() in the source, but is there any way I can set a breakpoint there that is triggered during the use of Sirius?
|
|
|
|
|
|
Re: Exceptions in UML Designer Development [message #1796159 is a reply to message #1795949] |
Sun, 07 October 2018 13:47 |
Thomas Pusztai Messages: 27 Registered: September 2018 |
Junior Member |
|
|
Hi,
I tried setting up a development environment based on Eclipse Neon, but that didn't succeed, because one of UML Designer's projects has a dependency on org.eclipse.amalgam.explorer.activity.ui version 1.8 or higher and Eclipse Neon only has version 1.7 in its repositories.
So I set up a development environment based on Eclipse Modeling Tools Oxygen 3a, with Sirius 5.1.3, Acceleo 3.7.5, and some other dependencies. However, when I create e.g., a new class diagram and then add a class from my UML model to it, the class and all its members have the label "Invalid feature as name" and in the Eclipse Problems view I get the error:
Description Resource Path Location Type
Feature: labelExpression Exception while calling service org.obeonetwork.dsl.uml2.design.api.services.PackageHierarchyServices.computeUmlLabel(org.eclipse.uml2.uml.Element). uml2.odesign /org.obeonetwork.dsl.uml2.design/description Unknown Sirius Marker
When I hover over a class, the tooltip displays the correct package and class name.
How can I debug this error?
|
|
|
|
Re: Exceptions in UML Designer Development [message #1796228 is a reply to message #1796224] |
Mon, 08 October 2018 14:16 |
Thomas Pusztai Messages: 27 Registered: September 2018 |
Junior Member |
|
|
Hi Maxime,
Thank you for your response. When I launch the org.obeonetwork.dsl.uml2.navigator plugin as an Eclipse application in debug mode, the breakpoint in the computeUmlLabel() method is hit, but in that case there is also no error.
Let's assume that I have an Eclipse instance A, which has the UML Editor source code projects open. When I launch a UML Editor plugin as an Eclipse application in debug mode, I get a new Eclipse instance B. The problem is that the error does not occur when editing a diagram with instance B, but when editing a diagram with instance A.
The way I understood it, Sirius should allow me to develop a modeling tool and test it right in the same Eclipse instance (A), without having to launch a new debug instance (B) every time I make a change. But in the case of UML Designer I get the error I mentioned in instance A.
Best regards,
Thomas
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05346 seconds