A fix is available
APAR status
Closed as program error.
Error description
Summary: ********* Unable to set 'Singleton' stereotype for a class using API. Description: ********** When we try to set the 'Singleton' stereotype for a class using API using the below code: IRPModelElement SingletonStereotype = myApp.activeProject().findAllByName('Singleton', 'Stereotype'); myEle1.setStereotype((IRPStereotype)SingletonStereotype); the following error is reported: Exception in thread 'main' com.telelogic.rhapsody.core.RhapsodyRuntimeException: Cannot perform operation. Meta class Class is neither equal nor derived from meta classes supported by the stereotype. However, we are able to select the 'Singleton' stereotype for a class using the GUI. Also the same API code works fine for objects.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Fixed by fixing the set of Stereotype that is meta class is "Object_type" using the COM API.
Problem conclusion
Fixed in 7.6
Temporary fix
Comments
APAR Information
APAR number
PM34941
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
751
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-03-16
Closed date
2011-06-23
Last modified date
2011-06-23
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R751 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
06 January 2022