[omniORB] "import _GlobalIDL" runtime error
Bob.Barry@Level3.com
Bob.Barry@Level3.com
Thu, 16 May 2002 15:42:23 -0600
The instruction "import _GlobalIDL" raises the following runtime error:
Traceback (most recent call last):
File "test.py", line 3, in ?
import _GlobalIDL
File "/export/home/bbarry/PY/Test/_GlobalIDL/__init__.py", line 6, in ?
import Proxy_idl
File "/export/home/bbarry/PY/Test/Proxy_idl.py", line 21, in ?
class ProxyAgent :
File "/export/home/bbarry/PY/Test/Proxy_idl.py", line 54, in ProxyAgent
class ProxyAgentError (CORBA.UserException):
File "/export/home/bbarry/PY/Test/Proxy_idl.py", line 68, in
ProxyAgentError
_m_ProxyAgentErrorInfo = ((100, "memory_problem_info",
_0__GlobalIDL.ProxyAgent._d_MemoryProblemInfoType),)
AttributeError: _d_MemoryProblemInfoType
Here is the text of the only IDL file involved:
interface ProxyAgent
{
typedef short ProxyAgentErrorType;
typedef string MemoryProblemInfoType;
const ProxyAgentErrorType ProxyAgentErrorIdBase = 100;
const ProxyAgentErrorType MemoryProblem = ProxyAgentErrorIdBase;
exception ProxyAgentError
{
union ProxyAgentErrorInfo switch(ProxyAgentErrorType)
{
case MemoryProblem:
MemoryProblemInfoType
memory_problem_info;
}proxy_agent_error_info;
};
};
interface proxyAgentFactory
{
typedef short FactoryErrorType;
typedef string MemoryProblemInfoType;
const FactoryErrorType FactoryErrorIdBase = 100;
const FactoryErrorType MemoryProblem = FactoryErrorIdBase;
exception ProxyAgentFactoryError
{
union FactoryErrorInfo switch(FactoryErrorType)
{
case MemoryProblem:
MemoryProblemInfoType
memory_problem_info;
}factory_error_info;
};
};
A vendor gave me IDL similar to this, so I hope it's something fixed in
omniidl; the vendor never will fix it.
-Bob
Bob Barry
Level (3) Communications
1025 Eldorado Blvd (32A - 219)
Broomfield, CO 80021
720.888.2927 - phone
720.888.5249 - fax
877.841.9082 - page
<mailto:bob.barry@level3.com> - email
<mailto:8778419082@skytel.com> - email pager