Multiple instances
(Replacing message template with parser tag)
No edit summary
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>If you get an error like this:
If you get an error like this:
[[File:2023-08-09 09h57 07.png|none|thumb|629x629px]]
[[File:2023-08-09 09h57 07.png|none|thumb|629x629px]]
The Singleton class SOMECLASSNAME has multiple instances.
It means: the Singleton class SOMECLASSNAME has multiple instances.


This means that for some reason, there is more than one object of the class that is marked as Singleton - and there should per definition only be one.
This means that for some reason, there is more than one object of the class that is marked as Singleton - and there should per definition only be one.


To fix this, start the MDriven [[ocl debugger|OCL Debugger]] towards the same database that has the error.
To fix this, start the MDriven [[Documentation:Ocl debugger|OCL Debugger]] towards the same database that has the error.


Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a Seeker (1 & 2), Search (3), then delete all but 1 of the objects(4&5).
Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a Seeker (1 & 2), Search (3), then delete all but 1 of the objects(4&5).

Revision as of 05:26, 5 March 2025

If you get an error like this:

2023-08-09 09h57 07.png

It means: the Singleton class SOMECLASSNAME has multiple instances.

This means that for some reason, there is more than one object of the class that is marked as Singleton - and there should per definition only be one.

To fix this, start the MDriven OCL Debugger towards the same database that has the error.

Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a Seeker (1 & 2), Search (3), then delete all but 1 of the objects(4&5).

2023-08-09 10h00 45.png
This page was edited 10 days ago on 03/05/2025. What links here