Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problem When Calling Services
Problem When Calling Services [message #1847406] Tue, 26 October 2021 11:02 Go to next message
Hakan  Yüksek is currently offline Hakan YüksekFriend
Messages: 22
Registered: October 2021
Junior Member
Hi, I have a problem when calling services; my service class like this;

public class Services{
public String getName(EObject self){
return "abcd";
}
}

I can't call this method from .odesign file,

In validation it gives the following error;

"Couldn't find the getName(EClassifier=MyClass)" service.

Could you help me to solve this problem? What should I do?
Re: Problem When Calling Services [message #1847499 is a reply to message #1847406] Fri, 29 October 2021 07:48 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Did you register your custom service class in the VSM as documented here: https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods ?

Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Problem When Calling Services [message #1847608 is a reply to message #1847499] Tue, 02 November 2021 10:14 Go to previous message
Hakan  Yüksek is currently offline Hakan YüksekFriend
Messages: 22
Registered: October 2021
Junior Member
Pierre-Charles David wrote on Fri, 29 October 2021 07:48
Did you register your custom service class in the VSM as documented here: https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods ?


Yes I did
Previous Topic:NullPointerException when I create session using aird file
Next Topic:Old-EcoreTools-style examples
Goto Forum:
  


Current Time: Thu Apr 25 15:32:58 GMT 2024

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

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

Back to the top