summaryrefslogtreecommitdiff
path: root/TAO/tests
diff options
context:
space:
mode:
authorsma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-05 11:02:56 +0000
committersma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-05 11:02:56 +0000
commitc40621f28e217bfabde333023691a05553076279 (patch)
tree6274e7ce4839a18ae392bb20835ea445fc26a04f /TAO/tests
parentabeaa4321e616948084009f3eb49fae09624f28a (diff)
downloadATCD-c40621f28e217bfabde333023691a05553076279.tar.gz
ChangeLogTag: Fri Jan 5 11:00:00 UTC 2007 Simon Massey <sma@prismtech.com>
Diffstat (limited to 'TAO/tests')
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp
index a1928755bec..9889379c63d 100644
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp
@@ -154,8 +154,6 @@ Echo_Server_Request_Interceptor::send_exception (
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
- ++server_interceptor_check_;
-
CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -170,6 +168,15 @@ Echo_Server_Request_Interceptor::send_exception (
ACE_CHECK;
CORBA::TypeCode_var type = any->type ();
+ if (0 == type.in())
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "No TypeCode information available; perhaps the user IDL\n"
+ " has been compiled with TAO_IDL \"-St -Sa\" options?\n"));
+ ACE_THROW (CORBA::NO_IMPLEMENT ());
+ }
+
+ ++server_interceptor_check_;
const char *exception_id = type->id (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;