Analyzing problem conditions

The DSOM error codes mentioned below can be obtained directly by the application from the "minor" field of the exception data returned in a system exception, or from an error report message when SOMDDEBUG is set to a positive integer value (see the previous topic, "Error reporting").

Symptom: When running regimpl, a "PERSIST_STORE" or "NO_IMPLEMENT" exception is returned. The DSOM error code is SOMDERROR_IO or SOMDERROR_NoImplDatabase.

Symptom: When starting somdd, an "INITIALIZE" exception is returned with error code SOMDAlreadyRunning.

Symptom: When starting up a server program, an exception is returned with a DSOM error code of SOMDERROR_ServerAlreadyExists.

Symptom: On OS/2, an operating system error occurs indicating a "stack overflow" condition soon after a the first call to a class DLL. Rebuilding the DLL with a larger stack size does not help.

Symptom: When running a DSOM application that uses EMan, an error message is displayed asking that the SOMSOCKETS be set.

Symptom: A remote method invocation fails and an "INTF_REPOS" exception is returned. The DSOM error code is SOMDERROR_BadDescriptor or SOMDERROR_ClassNotlnIR.

Symptom: A SOMDERROR_ClassNotFound error is returned by a client either when creating a remote object using somdNewObject, or when finding a server object using somdFindAnyServerByClass. (The methods are defined on the SOMDObjectMgr class.)

Symptom: A SOMDERROR_ClassNotlnlR error is returned by a server when creating a new object using somdNewObject, somdCreateObj, or somdGetClassObj.