summaryrefslogtreecommitdiff
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
commit8f68ae97d2df322205c0c2c7b245d0028c52265f (patch)
tree6274e7ce4839a18ae392bb20835ea445fc26a04f
parent5830212cdbda3e5aa93f22b920165678e892cbec (diff)
downloadATCD-8f68ae97d2df322205c0c2c7b245d0028c52265f.tar.gz
ChangeLogTag: Fri Jan 5 11:00:00 UTC 2007 Simon Massey <sma@prismtech.com>
-rw-r--r--TAO/ChangeLog6
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp11
2 files changed, 15 insertions, 2 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index ce16624e594..e25f61e93fc 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jan 5 11:00:00 UTC 2007 Simon Massey <sma@prismtech.com>
+
+ * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp:
+
+ Error if the typecode info is not available to display.
+
Fri Jan 5 10:10:18 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
* MPC/config/compression.mpb:
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;