Skip to main content



      Home
Home » Eclipse Projects » Sirius » Feature not found exception when trying to create node
Feature not found exception when trying to create node [message #1850701] Mon, 14 March 2022 16:05 Go to next message
Eclipse UserFriend
Hello, I followed the tutorial and wanted to make a node creating tool. The first one I made worked, which is a ServiceDomain, but the second one where i try to create an Asset doesn't work. When I try to use my Asset creation tool nothing happens. The full error is this:

org.eclipse.sirius.ecore.extender.business.api.accessor.exception.FeatureNotFoundException: asset on org.eclipse.sirius.bankingelements.impl.BusinessScenarioImpl@5f38dc75 (name: null)

I attached my metamodel. I use BusinessScenario as my root node.
index.php/fa/41760/0/

Any help is appreciated.
  • Attachment: metamodel.PNG
    (Size: 20.95KB, Downloaded 496 times)

[Updated on: Tue, 15 March 2022 01:50] by Moderator

Re: Feature not found exception when trying to create node [message #1850899 is a reply to message #1850701] Mon, 21 March 2022 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Based on the screenshot and the error, it looks like your tool is trying to add an Asset directly to a BusinessScenario instead of a ServiceDomain. My guess is that you have the node mapping for Asset at the same level as the node/container mapping for ServiceDomain so your tool has the wrong container type on execution.
If it is not the case, can you attach your odesign or a screenshot of the mappings, node creation tool and its model tasks?

Best regards,
Steve
Re: Feature not found exception when trying to create node [message #1850954 is a reply to message #1850899] Wed, 23 March 2022 06:19 Go to previous messageGo to next message
Eclipse UserFriend
Yes, that was my problem. I thought I could do that and show all the elements in one diagram. I guess I cannot do that. Thank you for your answer.
Re: Feature not found exception when trying to create node [message #1850982 is a reply to message #1850954] Wed, 23 March 2022 17:53 Go to previous message
Eclipse UserFriend
Hello,

You can indeed have your node mappings with the Domain class and no "semantic candidate expression" so Sirius will look for any element of that type in the resource to display them. However, as you can see for the creation tool the containment information is missing. You can have a more complicated tool where you would select on which container the element should be created but it is easier (and recommended) to have a proper hierarchy between mappings and have semantic candidate expressions set. These expressions do not need to follow exactly the features in your metamodel, it is just a way to navigate through your model. However, if you are starting with Sirius, it is easier to start by have your mappings to reflect the metamodel containment features. Later, you can have more complex references if you want.

Best regards,
Steve
Previous Topic:Plug-in does not work after installing via update site
Next Topic:Edge creation maps multiple edges
Goto Forum:
  


Current Time: Sun May 18 13:42:41 EDT 2025

Powered by FUDForum. Page generated in 0.04210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top