Jump to content

SOMobjects Error Codes: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
{{IBM-Reprint}}
{{IBM-Reprint}}


This section covers the following subjects:  
This section covers the following subjects:
*SOM Kernel Error Codes  
*SOM Kernel Error Codes
*DSOM Error Codes  
*DSOM Error Codes
*Metaclass Framework Error Codes  
*Metaclass Framework Error Codes


==SOM Kernel Error Codes ==
==SOM Kernel Error Codes ==
Following are error codes with messages/explanations for the SOM kernel and the various frameworks of the SOMobjects Developer Toolkit.  
Following are error codes with messages/explanations for the SOM kernel and the various frameworks of the SOMobjects Developer Toolkit.
<PRE>
{|
Value Symbolic Name and Description  
!Value||Symbolic Name||Description  
 
|-
20011 SOMERROR_CCNullClass  
|20011||SOMERROR_CCNullClass||The somDescendedFrom method was passed a null class argument.
The somDescendedFrom method was passed a null class argument.  
|-
 
|20029||SOMERROR_SompntOverflow||The internal buffer used in somPrintf overflowed.
20029 SOMERROR_SompntOverflow  
|-
The internal buffer used in somPrintf overflowed.  
|20039||SOMERROR_MethodNotFound||somFindMethodOk failed to find the indicated method.
 
|-
20039 SOMERROR_MethodNotFound  
|20049||SOMERROR_StaticMethodTableOverflow||A Method-table overflow occurred in somAddStaticMethod.
somFindMethodOk failed to find the indicated method.  
|-
 
|20059||SOMERROR_DefaultMethod||The somDefaultMethod was called; a defined method probably was not added before it was invoked.
20049 SOMERROR_StaticMethodTableOverflow  
|-
A Method-table overflow occurred in somAddStaticMethod.  
|20069||SOMERROR_MissingMethod||The specified method was not defined on the target object.
 
|-
20059 SOMERROR_DefaultMethod  
|20079||SOMERROR_BadVersion||An attempt to load, create, or use a version of a class-object implementation is incompatible with the using program.
The somDefaultMethod was called; a defined method probably was not added before it was invoked.  
|-
 
|20089||SOMERROR_NullId||The SOM_CheckId was given a null ID to check.
20069 SOMERROR_MissingMethod  
|-
The specified method was not defined on the target object.  
|20099||SOMERROR_OutOfMemory||Memory is exhausted.
 
|-
20079 SOMERROR_BadVersion  
|20109||SOMERROR_TestObjectFailure||The somObjectTest found problems with the object it was testing.
An attempt to load, create, or use a version of a class-object implementation is incompatible with the using program.  
|-
 
|20119||SOMERROR_FailedTest||The somTest detected a failure; generated only by test code.
20089 SOMERROR_NullId  
|-
The SOM_CheckId was given a null ID to check.  
|20121||SOMERROR_ClassNotFound||The somFindClass could not find the requested class.
 
|-
20099 SOMERROR_OutOfMemory  
|20131||SOMERROR_OldMethod||An old-style method name was used; change to an appropriate name.
Memory is exhausted.  
|-
 
|20149||SOMERROR_CouldNotStartup||The somEnvironmentNew failed to complete.
20109 SOMERROR_TestObjectFailure  
|-
The somObjectTest found problems with the object it was testing.  
|20159||SOMERROR_NotRegistered||The somUnloadClassFile argument was not a registered class.
 
|-
20119 SOMERROR_FailedTest  
|20169||SOMERROR_BadOverride||The somOverrideSMethod was invoked for a method that was not defined in a parent class.
The somTest detected a failure; generated only by test code.  
|-
 
|20179||SOMERROR_NotImplementedYet||The method raising the error message is not implemented yet.  
20121 SOMERROR_ClassNotFound  
|-
The somFindClass could not find the requested class.  
|20189||SOMERROR_MustOverride||The method raising the error message should have been overridden.
 
|-
20131 SOMERROR_OldMethod  
|20199||SOMERROR_BadArgument||An argument to a core SOM method failed a validity test.
An old-style method name was used; change to an appropriate name.  
|-
 
|20219||SOMERROR_NoParentClass||During the creation of a class object, the parent class could not be found.
20149 SOMERROR_CouldNotStartup  
|-
The somEnvironmentNew failed to complete.  
|20229||SOMERROR_NoMetaClass||During the creation of a class object, the metaclass object could not be found.
 
|}
20159 SOMERROR_NotRegistered  
The somUnloadClassFile argument was not a registered class.  
 
20169 SOMERROR_BadOverride  
The somOverrideSMethod was invoked for a method that was not defined in a parent class.  
 
20179 SOMERROR_NotImplementedYet  
The method raising the error message is not implemented yet.  
 
20189 SOMERROR_MustOverride  
The method raising the error message should have been overridden.  
 
20199 SOMERROR_BadArgument  
An argument to a core SOM method failed a validity test.  
 
20219 SOMERROR_NoParentClass  
During the creation of a class object, the parent class could not be found.  
 
20229 SOMERROR_NoMetaClass  
During the creation of a class object, the metaclass object could not be found.  
</PRE>


==DSOM Error Codes ==
==DSOM Error Codes ==
The following table lists the error codes that may be encountered when using DSOM.  
The following table lists the error codes that may be encountered when using DSOM.  
<PRE>
{|
Value Description  
!Value||Symbolic Name||Description  
 
|-
30001 SOMDERROR_NoMemory  
|30001||SOMDERROR_NoMemory||Memory is exhausted.
Memory is exhausted.  
|-
 
|30002||SOMDERROR_NotImplemented||Function or method has a null implementation.
30002 SOMDERROR_NotImplemented  
|-
Function or method has a null implementation.  
|30003||SOMDERROR_UnexpectedNULL||Internal error: a pointer variable was found to be NULL, unexpectedly.
 
|-
30003 SOMDERROR_UnexpectedNULL  
|30004||SOMDERROR_IO||I/O error while accessing a file located in SOMDDIR.
Internal error: a pointer variable was found to be NULL, unexpectedly.  
|-
 
|30005||SOMDERROR_BadVersion||Internal error: incorrect version of an object reference data table.
30004 SOMDERROR_IO  
|-
I/O error while accessing a file located in SOMDDIR.  
|30006||SOMDERROR_ParmSize||Internal error: a parameter of incorrect size was detected.
 
|-
30005 SOMDERROR_BadVersion  
|30007||SOMDERROR_HostName||Communications error: unable to retrieve local host name.
Internal error: incorrect version of an object reference data table.  
|-
 
|30008||SOMDERROR_HostAddress||Communications error: unable to retrieve local host address.
30006 SOMDERROR_ParmSize  
|-
Internal error: a parameter of incorrect size was detected.  
|30009||SOMDERROR_SocketCreate||Communications error: unable to create socket.
 
|-
30007 SOMDERROR_HostName  
|30010||SOMDERROR_SocketBind||Communications error: unable to bind address to socket.
Communications error: unable to retrieve local host name.  
|-
 
|30011||SOMDERROR_SocketName||Communications error: unable to query socket information.
30008 SOMDERROR_HostAddress  
|-
Communications error: unable to retrieve local host address.  
|30012||SOMDERROR_SocketReceive||Communications error: unable to receive message from socket.
 
|-
30009 SOMDERROR_SocketCreate  
|30013||SOMDERROR_SocketSend||Communications error: indicates socket error.  
Communications error: unable to create socket.  
|-
 
|30014||SOMDERROR_SocketIoctl||Communications error: unable to set socket blocking state.
30010 SOMDERROR_SocketBind  
|-
Communications error: unable to bind address to socket.  
|30015||SOMDERROR_SocketSelect||Communications error: unable to select on socket.
 
|-
30011 SOMDERROR_SocketName  
|30016||SOMDERROR_PacketSequence||Communications error: unexpected message packet received.
Communications error: unable to query socket information.  
|-
 
|30017||SOMDERROR_PacketTooBig||Communications error: packet too big for allocated message space.
30012 SOMDERROR_SocketReceive  
|-
Communications error: unable to receive message from socket.  
|30018||SOMDERROR_AddressNotFound||Uninitialized DSOM communications object.
 
|-
30013 SOMDERROR_SocketSend  
|30019||SOMDERROR_NoMessages||No messages available (and caller specified "no wait").
Communications error: indicates socket error.  
|-
 
|30020||SOMDERROR_UnknownAddress||Invalid client or server address.
30014 SOMDERROR_SocketIoctl  
|-
Communications error: unable to set socket blocking state.  
|30021||SOMDERROR_RecvError||Communications error during receive.
 
|-
30015 SOMDERROR_SocketSelect  
|30022||SOMDERROR_SendError||Communications error in sending the request.
Communications error: unable to select on socket.  
|-
 
|30023||SOMDERROR_CommTimeOut||Communications timeout.
30016 SOMDERROR_PacketSequence  
|-
Communications error: unexpected message packet received.  
|30024||SOMDERROR_CannotConnect||Unable to initialize connection information.
 
|-
30017 SOMDERROR_PacketTooBig  
|30025||SOMDERROR_BadConnection||Invalid connection information detected.
Communications error: packet too big for allocated message space.  
|-
 
|30026||SOMDERROR_NoHostName||Unable to get host name.
30018 SOMDERROR_AddressNotFound  
|-
Uninitialized DSOM communications object.  
|30027||SOMDERROR_BadBinding||Invalid server location information in proxy object.
 
|-
30019 SOMDERROR_NoMessages  
|30028||SOMDERROR_BadMethodName||Invalid method name in request message.
No messages available (and caller specified "no wait").  
|-
 
|30029||SOMDERROR_BadEnvironment||Invalid Environment value in request message.
30020 SOMDERROR_UnknownAddress  
|-
Invalid client or server address.  
|30030||SOMDERROR_BadContext||Invalid Context object in request message.
 
|-
30021 SOMDERROR_RecvError  
|30031||SOMDERROR_BadNVList||Invalid Named Value List (NVList).
Communications error during receive.  
|-
 
|30032||SOMDERROR_BadFlag||Bad flag in NVList item.
30022 SOMDERROR_SendError  
|-
Communications error in sending the request.  
|30033||SOMDERROR_BadLength||Bad length in NVList item.
 
|-
30023 SOMDERROR_CommTimeOut  
|30034||SOMDERROR_BadObjref||Invalid object reference.
Communications timeout.  
|-
 
|30035||SOMDERROR_NullField||Unexpected null field in request message.
30024 SOMDERROR_CannotConnect  
|-
Unable to initialize connection information.  
|30036||SOMDERROR_UnknownReposId||Attempt to use Invalid Interface Repository ID.
 
|-
30025 SOMDERROR_BadConnection  
|30037||SOMDERROR_NVListAccess||Invalid NVList object in request message.
Invalid connection information detected.  
|-
 
|30038||SOMDERROR_NVIndexError||Attempt to use an out-of-range NVList index.
30026 SOMDERROR_NoHostName  
|-
Unable to get host name.  
|30039||SOMDERROR_SysTime||Error retrieving system time.
 
|-
30027 SOMDERROR_BadBinding  
|30040||SOMDERROR_SystemCallFailed||System call failed.
Invalid server location information in proxy object.  
|-
 
|30041||SOMDERROR_CouldNotStartProcess||Unable to start a new process.
30028 SOMDERROR_BadMethodName  
|-
Invalid method name in request message.  
|30042||SOMDERROR_NoServerClass||No SOMDServer (sub)class specified for server implementation.
 
|-
30029 SOMDERROR_BadEnvironment  
|30043||SOMDERROR_NoSOMDInit||Missing SOMD_Init call in program.
Invalid Environment value in request message.  
|-
 
|30044||SOMDERROR_SOMDDIRNotSet||SOMDDIR environment variable not set.
30030 SOMDERROR_BadContext  
|-
Invalid Context object in request message.  
|30045||SOMDERROR_NoImplDatabase||Could not open Implementation Repository database.
 
|-
30031 SOMDERROR_BadNVList  
|30046||SOMDERROR_ImplNotFound||Implementation not found in implementation repository.
Invalid Named Value List (NVList).  
|-
 
|30047||SOMDERROR_ClassNotFound||Class not found in implementation repository.
30032 SOMDERROR_BadFlag  
|-
Bad flag in NVList item.  
|30048||SOMDERROR_ServerNotFound||Server not found in somdd's active server table.
 
|-
30033 SOMDERROR_BadLength  
|30049||SOMDERROR_ServerAlreadyExists||Server already exists in somdd's active server table.
Bad length in NVList item.  
|-
 
|30050||SOMDERROR_ServerNotActive||Server is not active.
30034 SOMDERROR_BadObjref  
|-
Invalid object reference.  
|30051||SOMDERROR_CouldNotStartSOM||SOM initialization error.
 
|-
30035 SOMDERROR_NullField  
|30052||SOMDERROR_ObjectNotFound||Could not find desired object.
Unexpected null field in request message.  
|-
 
|30053||SOMDERROR_NoParentClass||Unable to find / load parent class during proxy class creation.
30036 SOMDERROR_UnknownReposId  
|-
Attempt to use Invalid Interface Repository ID.  
|30054||SOMDERROR_DispatchError||Unable to dispatch method.
 
|-
30037 SOMDERROR_NVListAccess  
|30055||SOMDERROR_BadTypeCode||Invalid type code.
Invalid NVList object in request message.  
|-
 
|30056||SOMDERROR_BadDescriptor||Invalid method descriptor.
30038 SOMDERROR_NVIndexError  
|-
Attempt to use an out-of-range NVList index.  
|30057||SOMDERROR_BadResultType||Invalid method result type.  
 
|-
30039 SOMDERROR_SysTime  
|30058||SOMDERROR_KeyInUse||Internal object key is in use.  
Error retrieving system time.  
|-
 
|30059||SOMDERROR_KeyNotFound||Internal object key not found.  
30040 SOMDERROR_SystemCallFailed  
|-
System call failed.  
|30060||SOMDERROR_CtxInvalidPropName||Illegal context property name.  
 
|-
30041 SOMDERROR_CouldNotStartProcess  
|30061||SOMDERROR_CtxNoPropFound||Could not find property name in context.  
Unable to start a new process.  
|-
 
|30062||SOMDERROR_CtxStartScopeNotFound||Could not find specified context start scope.  
30042 SOMDERROR_NoServerClass  
|-
No SOMDServer (sub)class specified for server implementation.  
|30063||SOMDERROR_CtxAccess||Error accessing context object.  
 
|-
30043 SOMDERROR_NoSOMDInit  
|30064||SOMDERROR_CouldNotStartThread||System error: Could not start thread.
Missing SOMD_Init call in program.  
|-
 
|30065||SOMDERROR_AccessDenied||System error: Access to a system resource (file, queue, shared memory, etc.) denied.
30044 SOMDERROR_SOMDDIRNotSet  
|-
SOMDDIR environment variable not set.  
|30066||SOMDERROR_BadParm||System error: invalid parameter supplied to a operating system call.
 
|-
30045 SOMDERROR_NoImplDatabase  
|30067||SOMDERROR_Interrupt||System error: Interrupted system call.
Could not open Implementation Repository database.  
|-
 
|30068||SOMDERROR_Locked||System error: Drive locked by another process.
30046 SOMDERROR_ImplNotFound  
|-
Implementation not found in implementation repository.  
|30069||SOMDERROR_Pointer||System error: Invalid physical address.
 
|-
30047 SOMDERROR_ClassNotFound  
|30070||SOMDERROR_Boundary||OS/2 system error: ERROR_CROSSES_OBJECT_BOUNDARY.
Class not found in implementation repository.  
|-
 
|30071||SOMDERROR_UnknownError||System error: Unknown error on operating system call.
30048 SOMDERROR_ServerNotFound  
|-
Server not found in somdd's active server table.  
|30072||SOMDERROR_NoSpace||System error: No space left on device.
 
|-
30049 SOMDERROR_ServerAlreadyExists  
|30073||SOMDERROR_DuplicateQueue||System error: Duplicate queue name.
Server already exists in somdd's active server table.  
|-
 
|30074||SOMDERROR_BadQueueName||System error: Invalid queue name.
30050 SOMDERROR_ServerNotActive  
|-
Server is not active.  
|30075||SOMDERROR_DuplicateSem||System error: Duplicate semaphore name used.
 
|-
30051 SOMDERROR_CouldNotStartSOM  
|30076||SOMDERROR_BadSemName||System error: Invalid semaphore name.
SOM initialization error.  
|-
 
|30077||SOMDERROR_TooManyHandles||System error: Too many files open (no file handles left).
30052 SOMDERROR_ObjectNotFound  
|-
Could not find desired object.  
|30078||SOMDERROR_BadAddrFamily||System error: Invalid address family.
 
|-
30053 SOMDERROR_NoParentClass  
|30079||SOMDERROR_BadFormat||System error: Invalid format.
Unable to find / load parent class during proxy class creation.  
|-
 
|30080||SOMDERROR_BadDrive||System error: Invalid drive.
30054 SOMDERROR_DispatchError  
|-
Unable to dispatch method.  
|30081||SOMDERROR_SharingViolation||System error: Sharing violation.
 
|-
30055 SOMDERROR_BadTypeCode  
|30082||SOMDERROR_BadExeSignature||System error: Program file contains a DOS mode program or invalid program.
Invalid type code.  
|-
 
|30083||SOMDERROR_BadExe||Executable file is invalid (linker errors occurred when program file was created).
30056 SOMDERROR_BadDescriptor  
|-
Invalid method descriptor.  
|30084||SOMDERROR_Busy||System error: Segment is busy.
 
|-
30057 SOMDERROR_BadResultType  
|30085||SOMDERROR_BadThread||System error: Invalid thread id.
Invalid method result type.  
|-
 
|30086||SOMDERROR_SOMDPORTNotDefined||SOMDPORT not defined.
30058 SOMDERROR_KeyInUse  
|-
Internal object key is in use.  
|30087||SOMDERROR_ResourceExists||System resource (file, queue, shared memory segment,. etc.) already exists.
 
|-
30059 SOMDERROR_KeyNotFound  
|30088||SOMDERROR_UserName||USER environment variable is not set.
Internal object key not found.  
|-
 
|30089||SOMDERROR_WrongRefType||Operation attempted on an object reference is incompatible with the reference type.
30060 SOMDERROR_CtxInvalidPropName  
|-
Illegal context property name.  
|30090||SOMDERROR_MustOverride||This method has no default implementation and must be overridden.
 
|-
30061 SOMDERROR_CtxNoPropFound  
|30091||SOMDERROR_NoSocketsClass||Could not find/load Sockets class.
Could not find property name in context.  
|-
 
|30092||SOMDERROR_EManRegData||Unable to register DSOM events with the Event Manager.
30062 SOMDERROR_CtxStartScopeNotFound  
|-
Could not find specified context start scope.  
|30093||SOMDERROR_NoRemoteComm||Remote communications is disabled (for Workstation DSOM).
 
|-
30063 SOMDERROR_CtxAccess  
|30096||SOMDERROR_GlobalAtomError||On Windows only, an error occurred while adding a segment name to the Windows atom table.
Error accessing context object.  
|-
 
|30097||SOMDERROR_NamedMemoryTableError||On Windows only, an error occurred while creating or deleting a (named) shared memory segment.
30064 SOMDERROR_CouldNotStartThread  
|-
System error: Could not start thread.  
|30098||SOMDERROR_WMQUIT||On Windows only, indicates DSOM received a Windows WM_QUIT message. The developer of a server application should check for SOMDERROR_WMQUIT returned from method execute_request_loop and handle the error by cleaning up and exiting.
|-
|30105||SOMDERROR_DuplicateImplEntry||Implementation repository identifier already exists. Add wait time between `regimpl' calls.
|-
|30106||SOMDERROR_InvalidSOMSOCKETS||SOMSOCKETS environment variable set incorrectly.
|-
|30107||SOMDERR0R_IRNotFound||Interface Repository not found.
|-
|30108||SOMDERR0R_ClassNotInIR||Attempt to create an object whose Class is not in the Interface Repository.
|-
|30110||SOMDERROR_SocketError||A communications socket error has occurred. Make sure the DSOM daemon is running.
|-
|30111||SOMDERROR_PacketError||A communications packet error has occurred.
|-
|30112||SOMDERROR_Marshal||
|-
|30113||SOMDERROR_NotProcessOwner||This error code is returned when the somdd daemon is trying to kill the server process and if the owner of the server process is different from that of the somdd daemon.
|-
|30114||SOMDERROR_ServerInactive||The specified server is in the process of being activated.
|-
|30115||SOMDERROR_ServerDisabled||The server has been disabled by the program servmgr.
|-
|30117||SOMDERROR_SOMDAlreadyRunning||The DSOM daemon has been started when another daemon is already running.
|-
|30118||SOMDERROR_ServerToBeDeleted||An attempt has been made to start or connect to a server marked for deletion.
|-
|30119||SOMDERROR_NoObjRefTable||The Object Reference Table cannot be found.
|-
|30120||SOMDERROR_UpdateImplDef||The Implementation Repository cannot be updated.
|-
|30138||SOMDERROR_NoImplDirectory||The directory signified by SOMDDIR does not exist.
|-
|30169||SOMDERROR_ServerNotStoppable||An attempt has been made to stop a server (using the dsom stop command or a SOMDServerMgr object) registered as nonstoppable.
|-
|XXXXX||SOMDERROR_OperatingSystem||On AIX, this is the value of the C error variable "errno" defined in errno.h; on OS/2 and Windows, it is the DOS API return code.  
|}


30065 SOMDERROR_AccessDenied
System error: Access to a system resource (file, queue, shared memory, etc.) denied.
30066 SOMDERROR_BadParm
System error: invalid parameter supplied to a operating system call.
30067 SOMDERROR_Interrupt
System error: Interrupted system call.
30068 SOMDERROR_Locked
System error: Drive locked by another process.
30069 SOMDERROR_Pointer
System error: Invalid physical address.
30070 SOMDERROR_Boundary
OS/2 system error: ERROR_CROSSES_OBJECT_BOUNDARY.
30071 SOMDERROR_UnknownError
System error: Unknown error on operating system call.
30072 SOMDERROR_NoSpace
System error: No space left on device.
30073 SOMDERROR_DuplicateQueue
System error: Duplicate queue name.
30074 SOMDERROR_BadQueueName
System error: Invalid queue name.
30075 SOMDERROR_DuplicateSem
System error: Duplicate semaphore name used.
30076 SOMDERROR_BadSemName
System error: Invalid semaphore name.
30077 SOMDERROR_TooManyHandles
System error: Too many files open (no file handles left).
30078 SOMDERROR_BadAddrFamily
System error: Invalid address family.
30079 SOMDERROR_BadFormat
System error: Invalid format.
30080 SOMDERROR_BadDrive
System error: Invalid drive.
30081 SOMDERROR_SharingViolation
System error: Sharing violation.
30082 SOMDERROR_BadExeSignature
System error: Program file contains a DOS mode program or invalid program.
30083 SOMDERROR_BadExe
Executable file is invalid (linker errors occurred when program file was created).
30084 SOMDERROR_Busy
System error: Segment is busy.
30085 SOMDERROR_BadThread
System error: Invalid thread id.
30086 SOMDERROR_SOMDPORTNotDefined
SOMDPORT not defined.
30087 SOMDERROR_ResourceExists
System resource (file, queue, shared memory segment,. etc.) already exists.
30088 SOMDERROR_UserName
USER environment variable is not set.
30089 SOMDERROR_WrongRefType
Operation attempted on an object reference is incompatible with the reference type.
30090 SOMDERROR_MustOverride
This method has no default implementation and must be overridden.
30091 SOMDERROR_NoSocketsClass
Could not find/load Sockets class.
30092 SOMDERROR_EManRegData
Unable to register DSOM events with the Event Manager.
30093 SOMDERROR_NoRemoteComm
Remote communications is disabled (for Workstation DSOM).
30096 SOMDERROR_GlobalAtomError
On Windows only, an error occurred while adding a segment name          to the Windows atom table.
30097 SOMDERROR_NamedMemoryTableError
On Windows only, an error occurred while creating or deleting a (named) shared memory segment.
30098 SOMDERROR_WMQUIT
On Windows only, indicates DSOM received a Windows WM_QUIT message. The developer of a server application should check for SOMDERROR_WMQUIT returned from method execute_request_loop and handle the error by cleaning up and exiting.
30105 SOMDERROR_DuplicateImplEntry
Implementation repository identifier already exists. Add wait time between `regimpl' calls.
30106 SOMDERROR_InvalidSOMSOCKETS
SOMSOCKETS environment variable set incorrectly.
30107 SOMDERR0R_IRNotFound
Interface Repository not found.
30108 SOMDERR0R_ClassNotInIR
Attempt to create an object whose Class is not in the Interface Repository.
30110 SOMDERROR_SocketError
A communications socket error has occurred. Make sure the DSOM daemon is running.
30111 SOMDERROR_PacketError
A communications packet error has occurred.
30112 SOMDERROR_Marshal
30113 SOMDERROR_NotProcessOwner
This error code is returned when the somdd daemon is trying to kill the server process and if the owner of the server process is different from that of the somdd daemon.
30114 SOMDERROR_ServerInactive
The specified server is in the process of being activated.
30115 SOMDERROR_ServerDisabled
The server has been disabled by the program servmgr.
30117 SOMDERROR_SOMDAlreadyRunning
The DSOM daemon has been started when another daemon is already running.
30118 SOMDERROR_ServerToBeDeleted
An attempt has been made to start or connect to a server marked for deletion.
30119 SOMDERROR_NoObjRefTable
The Object Reference Table cannot be found.
30120 SOMDERROR_UpdateImplDef
The Implementation Repository cannot be updated.
30138 SOMDERROR_NoImplDirectory
The directory signified by SOMDDIR does not exist.
30169 SOMDERROR_ServerNotStoppable
An attempt has been made to stop a server (using the dsom stop command or a SOMDServerMgr object) registered as nonstoppable.
XXXXX SOMDERROR_OperatingSystem
On AIX, this is the value of the C error variable "errno" defined in errno.h; on OS/2 and Windows, it is the DOS API return code.
</PRE>
==Metaclass Framework Error Codes==
==Metaclass Framework Error Codes==
It is possible to receive the following messages from the Metaclass Framework while an application is running.  
It is possible to receive the following messages from the Metaclass Framework while an application is running.  
<PRE>
60001 An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somNew. That is, some other metaclass has already claimed the right to return the value for somNew.


60002 An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somFree. That is, some other metaclass has already claimed this right to override somFree.  
;60001
:An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somNew. That is, some other metaclass has already claimed the right to return the value for somNew.
 
;60002  
:An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somFree. That is, some other metaclass has already claimed this right to override somFree.  


60004 An invocation of somrRepInit was made with a logging type other tha `o' or `v'.  
;60004
:An invocation of somrRepInit was made with a logging type other tha `o' or `v'.  


60005 The sommBeforeMethod or the sommAfterMethod was invoked on a SOMRReplicableObject whose logging type is other than `o' or `v'. This error cannot occur normally. The likely cause is that some method invoked on another object has overwritten this object's memory.  
;60005  
:The sommBeforeMethod or the sommAfterMethod was invoked on a SOMRReplicableObject whose logging type is other than `o' or `v'. This error cannot occur normally. The likely cause is that some method invoked on another object has overwritten this object's memory.  


60006 A Before/After Metaclass must override both sommBeforeMethod and sommAfterMethod. This message indicates an attempt to create a Before/After Metaclass where only one of the above methods is overridden.  
;60006  
</PRE>
:A Before/After Metaclass must override both sommBeforeMethod and sommAfterMethod. This message indicates an attempt to create a Before/After Metaclass where only one of the above methods is overridden.

Latest revision as of 19:06, 12 May 2021

System Object Model Programming Guide
  1. About This Book
  2. Introduction to the SOMobjects Developer Toolkit
  3. Tutorial for Implementing SOM Classes
  4. Using SOM Classes in Client Programs
  5. SOM IDL and the SOM Compiler
  6. Implementing Classes in SOM
  7. Distributed SOM (DSOM)
  8. The SOM Interface Repository Framework
  9. The Metaclass Framework
  10. The Event Management Framework
  11. SOMobjects Error Codes
  12. SOM IDL Language Grammar
  13. Implementing Sockets Subclasses
  14. Glossary

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

This section covers the following subjects:

  • SOM Kernel Error Codes
  • DSOM Error Codes
  • Metaclass Framework Error Codes

SOM Kernel Error Codes

Following are error codes with messages/explanations for the SOM kernel and the various frameworks of the SOMobjects Developer Toolkit.

Value Symbolic Name Description
20011 SOMERROR_CCNullClass The somDescendedFrom method was passed a null class argument.
20029 SOMERROR_SompntOverflow The internal buffer used in somPrintf overflowed.
20039 SOMERROR_MethodNotFound somFindMethodOk failed to find the indicated method.
20049 SOMERROR_StaticMethodTableOverflow A Method-table overflow occurred in somAddStaticMethod.
20059 SOMERROR_DefaultMethod The somDefaultMethod was called; a defined method probably was not added before it was invoked.
20069 SOMERROR_MissingMethod The specified method was not defined on the target object.
20079 SOMERROR_BadVersion An attempt to load, create, or use a version of a class-object implementation is incompatible with the using program.
20089 SOMERROR_NullId The SOM_CheckId was given a null ID to check.
20099 SOMERROR_OutOfMemory Memory is exhausted.
20109 SOMERROR_TestObjectFailure The somObjectTest found problems with the object it was testing.
20119 SOMERROR_FailedTest The somTest detected a failure; generated only by test code.
20121 SOMERROR_ClassNotFound The somFindClass could not find the requested class.
20131 SOMERROR_OldMethod An old-style method name was used; change to an appropriate name.
20149 SOMERROR_CouldNotStartup The somEnvironmentNew failed to complete.
20159 SOMERROR_NotRegistered The somUnloadClassFile argument was not a registered class.
20169 SOMERROR_BadOverride The somOverrideSMethod was invoked for a method that was not defined in a parent class.
20179 SOMERROR_NotImplementedYet The method raising the error message is not implemented yet.
20189 SOMERROR_MustOverride The method raising the error message should have been overridden.
20199 SOMERROR_BadArgument An argument to a core SOM method failed a validity test.
20219 SOMERROR_NoParentClass During the creation of a class object, the parent class could not be found.
20229 SOMERROR_NoMetaClass During the creation of a class object, the metaclass object could not be found.

DSOM Error Codes

The following table lists the error codes that may be encountered when using DSOM.

Value Symbolic Name Description
30001 SOMDERROR_NoMemory Memory is exhausted.
30002 SOMDERROR_NotImplemented Function or method has a null implementation.
30003 SOMDERROR_UnexpectedNULL Internal error: a pointer variable was found to be NULL, unexpectedly.
30004 SOMDERROR_IO I/O error while accessing a file located in SOMDDIR.
30005 SOMDERROR_BadVersion Internal error: incorrect version of an object reference data table.
30006 SOMDERROR_ParmSize Internal error: a parameter of incorrect size was detected.
30007 SOMDERROR_HostName Communications error: unable to retrieve local host name.
30008 SOMDERROR_HostAddress Communications error: unable to retrieve local host address.
30009 SOMDERROR_SocketCreate Communications error: unable to create socket.
30010 SOMDERROR_SocketBind Communications error: unable to bind address to socket.
30011 SOMDERROR_SocketName Communications error: unable to query socket information.
30012 SOMDERROR_SocketReceive Communications error: unable to receive message from socket.
30013 SOMDERROR_SocketSend Communications error: indicates socket error.
30014 SOMDERROR_SocketIoctl Communications error: unable to set socket blocking state.
30015 SOMDERROR_SocketSelect Communications error: unable to select on socket.
30016 SOMDERROR_PacketSequence Communications error: unexpected message packet received.
30017 SOMDERROR_PacketTooBig Communications error: packet too big for allocated message space.
30018 SOMDERROR_AddressNotFound Uninitialized DSOM communications object.
30019 SOMDERROR_NoMessages No messages available (and caller specified "no wait").
30020 SOMDERROR_UnknownAddress Invalid client or server address.
30021 SOMDERROR_RecvError Communications error during receive.
30022 SOMDERROR_SendError Communications error in sending the request.
30023 SOMDERROR_CommTimeOut Communications timeout.
30024 SOMDERROR_CannotConnect Unable to initialize connection information.
30025 SOMDERROR_BadConnection Invalid connection information detected.
30026 SOMDERROR_NoHostName Unable to get host name.
30027 SOMDERROR_BadBinding Invalid server location information in proxy object.
30028 SOMDERROR_BadMethodName Invalid method name in request message.
30029 SOMDERROR_BadEnvironment Invalid Environment value in request message.
30030 SOMDERROR_BadContext Invalid Context object in request message.
30031 SOMDERROR_BadNVList Invalid Named Value List (NVList).
30032 SOMDERROR_BadFlag Bad flag in NVList item.
30033 SOMDERROR_BadLength Bad length in NVList item.
30034 SOMDERROR_BadObjref Invalid object reference.
30035 SOMDERROR_NullField Unexpected null field in request message.
30036 SOMDERROR_UnknownReposId Attempt to use Invalid Interface Repository ID.
30037 SOMDERROR_NVListAccess Invalid NVList object in request message.
30038 SOMDERROR_NVIndexError Attempt to use an out-of-range NVList index.
30039 SOMDERROR_SysTime Error retrieving system time.
30040 SOMDERROR_SystemCallFailed System call failed.
30041 SOMDERROR_CouldNotStartProcess Unable to start a new process.
30042 SOMDERROR_NoServerClass No SOMDServer (sub)class specified for server implementation.
30043 SOMDERROR_NoSOMDInit Missing SOMD_Init call in program.
30044 SOMDERROR_SOMDDIRNotSet SOMDDIR environment variable not set.
30045 SOMDERROR_NoImplDatabase Could not open Implementation Repository database.
30046 SOMDERROR_ImplNotFound Implementation not found in implementation repository.
30047 SOMDERROR_ClassNotFound Class not found in implementation repository.
30048 SOMDERROR_ServerNotFound Server not found in somdd's active server table.
30049 SOMDERROR_ServerAlreadyExists Server already exists in somdd's active server table.
30050 SOMDERROR_ServerNotActive Server is not active.
30051 SOMDERROR_CouldNotStartSOM SOM initialization error.
30052 SOMDERROR_ObjectNotFound Could not find desired object.
30053 SOMDERROR_NoParentClass Unable to find / load parent class during proxy class creation.
30054 SOMDERROR_DispatchError Unable to dispatch method.
30055 SOMDERROR_BadTypeCode Invalid type code.
30056 SOMDERROR_BadDescriptor Invalid method descriptor.
30057 SOMDERROR_BadResultType Invalid method result type.
30058 SOMDERROR_KeyInUse Internal object key is in use.
30059 SOMDERROR_KeyNotFound Internal object key not found.
30060 SOMDERROR_CtxInvalidPropName Illegal context property name.
30061 SOMDERROR_CtxNoPropFound Could not find property name in context.
30062 SOMDERROR_CtxStartScopeNotFound Could not find specified context start scope.
30063 SOMDERROR_CtxAccess Error accessing context object.
30064 SOMDERROR_CouldNotStartThread System error: Could not start thread.
30065 SOMDERROR_AccessDenied System error: Access to a system resource (file, queue, shared memory, etc.) denied.
30066 SOMDERROR_BadParm System error: invalid parameter supplied to a operating system call.
30067 SOMDERROR_Interrupt System error: Interrupted system call.
30068 SOMDERROR_Locked System error: Drive locked by another process.
30069 SOMDERROR_Pointer System error: Invalid physical address.
30070 SOMDERROR_Boundary OS/2 system error: ERROR_CROSSES_OBJECT_BOUNDARY.
30071 SOMDERROR_UnknownError System error: Unknown error on operating system call.
30072 SOMDERROR_NoSpace System error: No space left on device.
30073 SOMDERROR_DuplicateQueue System error: Duplicate queue name.
30074 SOMDERROR_BadQueueName System error: Invalid queue name.
30075 SOMDERROR_DuplicateSem System error: Duplicate semaphore name used.
30076 SOMDERROR_BadSemName System error: Invalid semaphore name.
30077 SOMDERROR_TooManyHandles System error: Too many files open (no file handles left).
30078 SOMDERROR_BadAddrFamily System error: Invalid address family.
30079 SOMDERROR_BadFormat System error: Invalid format.
30080 SOMDERROR_BadDrive System error: Invalid drive.
30081 SOMDERROR_SharingViolation System error: Sharing violation.
30082 SOMDERROR_BadExeSignature System error: Program file contains a DOS mode program or invalid program.
30083 SOMDERROR_BadExe Executable file is invalid (linker errors occurred when program file was created).
30084 SOMDERROR_Busy System error: Segment is busy.
30085 SOMDERROR_BadThread System error: Invalid thread id.
30086 SOMDERROR_SOMDPORTNotDefined SOMDPORT not defined.
30087 SOMDERROR_ResourceExists System resource (file, queue, shared memory segment,. etc.) already exists.
30088 SOMDERROR_UserName USER environment variable is not set.
30089 SOMDERROR_WrongRefType Operation attempted on an object reference is incompatible with the reference type.
30090 SOMDERROR_MustOverride This method has no default implementation and must be overridden.
30091 SOMDERROR_NoSocketsClass Could not find/load Sockets class.
30092 SOMDERROR_EManRegData Unable to register DSOM events with the Event Manager.
30093 SOMDERROR_NoRemoteComm Remote communications is disabled (for Workstation DSOM).
30096 SOMDERROR_GlobalAtomError On Windows only, an error occurred while adding a segment name to the Windows atom table.
30097 SOMDERROR_NamedMemoryTableError On Windows only, an error occurred while creating or deleting a (named) shared memory segment.
30098 SOMDERROR_WMQUIT On Windows only, indicates DSOM received a Windows WM_QUIT message. The developer of a server application should check for SOMDERROR_WMQUIT returned from method execute_request_loop and handle the error by cleaning up and exiting.
30105 SOMDERROR_DuplicateImplEntry Implementation repository identifier already exists. Add wait time between `regimpl' calls.
30106 SOMDERROR_InvalidSOMSOCKETS SOMSOCKETS environment variable set incorrectly.
30107 SOMDERR0R_IRNotFound Interface Repository not found.
30108 SOMDERR0R_ClassNotInIR Attempt to create an object whose Class is not in the Interface Repository.
30110 SOMDERROR_SocketError A communications socket error has occurred. Make sure the DSOM daemon is running.
30111 SOMDERROR_PacketError A communications packet error has occurred.
30112 SOMDERROR_Marshal
30113 SOMDERROR_NotProcessOwner This error code is returned when the somdd daemon is trying to kill the server process and if the owner of the server process is different from that of the somdd daemon.
30114 SOMDERROR_ServerInactive The specified server is in the process of being activated.
30115 SOMDERROR_ServerDisabled The server has been disabled by the program servmgr.
30117 SOMDERROR_SOMDAlreadyRunning The DSOM daemon has been started when another daemon is already running.
30118 SOMDERROR_ServerToBeDeleted An attempt has been made to start or connect to a server marked for deletion.
30119 SOMDERROR_NoObjRefTable The Object Reference Table cannot be found.
30120 SOMDERROR_UpdateImplDef The Implementation Repository cannot be updated.
30138 SOMDERROR_NoImplDirectory The directory signified by SOMDDIR does not exist.
30169 SOMDERROR_ServerNotStoppable An attempt has been made to stop a server (using the dsom stop command or a SOMDServerMgr object) registered as nonstoppable.
XXXXX SOMDERROR_OperatingSystem On AIX, this is the value of the C error variable "errno" defined in errno.h; on OS/2 and Windows, it is the DOS API return code.

Metaclass Framework Error Codes

It is possible to receive the following messages from the Metaclass Framework while an application is running.

60001
An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somNew. That is, some other metaclass has already claimed the right to return the value for somNew.
60002
An attempt was made to construct a class with SOMMSingleInstance as a metaclass constraint. (This may occur indirectly because of the construction of a derived metaclass). The initialization of the class failed because somInitMIClass defined by SOMMSingleInstance is in conflict with another metaclass that has overridden somFree. That is, some other metaclass has already claimed this right to override somFree.
60004
An invocation of somrRepInit was made with a logging type other tha `o' or `v'.
60005
The sommBeforeMethod or the sommAfterMethod was invoked on a SOMRReplicableObject whose logging type is other than `o' or `v'. This error cannot occur normally. The likely cause is that some method invoked on another object has overwritten this object's memory.
60006
A Before/After Metaclass must override both sommBeforeMethod and sommAfterMethod. This message indicates an attempt to create a Before/After Metaclass where only one of the above methods is overridden.