Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions in UML Designer Development #1031

Open
tommazzo89 opened this issue Sep 22, 2018 · 0 comments
Open

Exceptions in UML Designer Development #1031

tommazzo89 opened this issue Sep 22, 2018 · 0 comments

Comments

@tommazzo89
Copy link

tommazzo89 commented Sep 22, 2018

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, 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?

Best regards,
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant