summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-02-06 19:22:55 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-02-06 19:22:55 +0000
commita6bb07fe48cb32a52170b7a16a6ff9467612d7d9 (patch)
tree4dc118129fc4bd9f58fcb3242a219f8a75d3e270
parentc78b21e66270413e39bbe6424b7ecdef3ae0f561 (diff)
downloadATCD-a6bb07fe48cb32a52170b7a16a6ff9467612d7d9.tar.gz
ChangeLogTag: Fri Feb 6 19:22:40 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
-rw-r--r--flat/CIAO/ChangeLog26
-rw-r--r--flat/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp79
2 files changed, 70 insertions, 35 deletions
diff --git a/flat/CIAO/ChangeLog b/flat/CIAO/ChangeLog
index 84e2629179a..b4712d117e2 100644
--- a/flat/CIAO/ChangeLog
+++ b/flat/CIAO/ChangeLog
@@ -1,17 +1,23 @@
+Fri Feb 6 19:22:40 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
+
+ * DAnCE/NodeApplication/NodeApplication_Impl.cpp:
+
+ Better exception handling.
+
Fri Feb 6 18:26:39 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
* DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
* DAnCE/NodeApplication/NodeApplication_Impl.cpp:
- Better exception handling.
-
+ Better exception handling.
+
* DAnCE/bin/PythonDAnCE/generator/artifact.py:
* DAnCE/bin/PythonDAnCE/generator/comp_impl.py:
* DAnCE/bin/PythonDAnCE/generator/header.py:
* DAnCE/bin/generate_plan.py:
- Bugfixes for plangenerator.
-
+ Bugfixes for plangenerator.
+
* examples/BasicSP/BMClosedED/BMClosedED_exec.h:
* examples/BasicSP/BMClosedED/BMClosedED_exec.cpp:
* examples/BasicSP/BMDevice/BMDevice_exec.h:
@@ -21,17 +27,17 @@ Fri Feb 6 18:26:39 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
* examples/BasicSP/EC/EC_exec.h:
* examples/BasicSP/EC/EC_exec.cpp:
- Added component servant and executor factory operations.
-
+ Added component servant and executor factory operations.
+
* examples/BasicSP/descriptors/BasicSP.dat:
* examples/BasicSP/descriptors/BasicSP_Unhomed.cdp:
* examples/BasicSP/descriptors/run_test.pl:
-
- Ported to new version of DAnCE. test script still needs to invoke correct controller.
-
+
+ Ported to new version of DAnCE. test script still needs to invoke correct controller.
+
* examples/BasicSP/descriptors/BasicSP.cdp:
- Removed obsolete plan.
+ Removed obsolete plan.
Fri Feb 6 13:44:54 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
diff --git a/flat/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp b/flat/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp
index 1a82a6202c6..040a1b74b26 100644
--- a/flat/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp
+++ b/flat/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp
@@ -951,14 +951,16 @@ NodeApplication_Impl::create_component_server (size_t index)
DANCE_ERROR((LM_ERROR, DLINFO "NodeApplication_impl::create_container - "
"Components::Deployment::ServerActivator_var::create_component_server() "
"returned ::Components::CreateFailure exception\n"));
- throw ::Deployment::StartError();
+ throw ::Deployment::StartError("",
+ "Received a ::Components::CreateFailure exception while creating component server.");
}
catch (const ::Components::Deployment::InvalidConfiguration& )
{
DANCE_ERROR((LM_ERROR, DLINFO "NodeApplication_impl::create_container - "
"Components::Deployment::ServerActivator_var::create_component_server() "
"returned ::Components::Deployment::InvalidConfiguration exception\n"));
- throw ::Deployment::InvalidProperty();
+ throw ::Deployment::InvalidProperty("",
+ "::Components::Deployment::InvalidConfiguration exception caught while creating server");
}
try
@@ -1519,8 +1521,11 @@ NodeApplication_Impl::create_config_values (const Deployment::Properties& /*prop
}
default:
{
- DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::create_config_values - request is not a know type: eCreateComponentServer, eCreateContainer, eInstallHome, eCreateComponentWithConfigValues\n"));
- throw ::Deployment::InvalidProperty();
+ DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::create_config_values - "
+ "request is not a know type: eCreateComponentServer, eCreateContainer, "
+ "eInstallHome, eCreateComponentWithConfigValues\n"));
+ throw ::Deployment::InvalidProperty("",
+ "Invalid creation type for filling in config values");
}
}
}
@@ -1658,7 +1663,8 @@ NodeApplication_Impl::getAllConnections()
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::getAllConnections - "
"Connection.InternalEndPoint.Kind is not a "
"Deployment::Facet or Deployment::EventConsumer\n"));
- throw ::Deployment::InvalidProperty();
+ throw ::Deployment::InvalidProperty(this->plan_.connection[i].name.in (),
+ "Invalid connection type, should be Facet or EventConsumer");
}
}
// index++;
@@ -1810,7 +1816,8 @@ NodeApplication_Impl::finishLaunch (const Deployment::Connections & providedRefe
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"reference for %C can't be narrowed \n", name.c_str ()));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection(conn.name.in (),
+ "Couldn't narrow reference for external reference");
break;
}
try
@@ -1873,7 +1880,8 @@ NodeApplication_Impl::finishLaunch (const Deployment::Connections & providedRefe
conn.internalEndpoint[0].kind,
conn.internalEndpoint[0].portName.in()
));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection(conn.name.in (),
+ "Invalid connection type, should be Receptacle or even producer.");
}//default
}//switch
}
@@ -1882,8 +1890,16 @@ NodeApplication_Impl::finishLaunch (const Deployment::Connections & providedRefe
DANCE_ERROR ((LM_ERROR, DLINFO "NodeApplication_impl::finishLaunch - "
"Intercepted StartError exception while configuring %C conneciton, rethrowing\n",
name.c_str ()));
- throw ::Deployment::StartError (name.c_str (),
- ex.reason.in ());
+ ex.name = name.c_str ();
+ throw;
+ }
+ catch (::Deployment::InvalidConnection &ex)
+ {
+ DANCE_ERROR ((LM_ERROR, DLINFO "NodeApplication_impl::finishLaunch - "
+ "Intercepted InvalidConnection exception while configuring %C conneciton, rethrowing\n",
+ name.c_str ()));
+ ex.name = name.c_str ();
+ throw;
}
}//if(name.compare(providedReference[i].name.in()) == 0)
}//for ( unsigned int i = 0; i < providedReference.length(); ++i )
@@ -1916,25 +1932,29 @@ NodeApplication_Impl::connect_receptacle (Components::CCMObject_ptr inst,
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::InvalidName exception\n"));
- throw ::Deployment::StartError();
+ throw ::Deployment::StartError("",
+ "Received InvalidName exception while connecting receptacle.");
}
catch (const ::Components::InvalidConnection& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::InvalidConnection exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "InvalidConnection caught while connecting receptacle.");
}
catch (const ::Components::AlreadyConnected& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::AlreadyConnected exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught AlredyConnected exception while connecting receptacle");
}
catch (const ::Components::ExceededConnectionLimit& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::ExceededConnectionLimit exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught ExceededConnectionLimit exception while connecting receptacle.");
}
return res;
}
@@ -1956,25 +1976,29 @@ NodeApplication_Impl::connect_receptacle_ext (Components::CCMObject_ptr inst,
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::InvalidName exception\n"));
- throw ::Deployment::StartError();
+ throw ::Deployment::StartError("",
+ "Caught InvalidName exception while connecting external receptacle.");
}
catch (const ::Components::InvalidConnection& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::InvalidConnection exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught InvalidConnection exception while connecting external receptacle.");
}
catch (const ::Components::AlreadyConnected& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::AlreadyConnected exception\n"));
- //throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught AlreadyConnected exception while connecting external receptacle.");
}
catch (const ::Components::ExceededConnectionLimit& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect() returned ::Components::ExceededConnectionLimit exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught ExceededConnectionLimit while connecting external receptacle.");
}
return res;
}
@@ -1997,19 +2021,22 @@ NodeApplication_Impl::connect_emitter (Components::CCMObject_ptr inst,
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect_consumer() returned ::Components::InvalidName exception\n"));
- throw ::Deployment::StartError();
+ throw ::Deployment::StartError("",
+ "Caught InvalidName while connecting emitter.");
}
catch (const ::Components::AlreadyConnected& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect_consumer() returned ::Components::AlreadyConnected exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught AlreadyConnected exception while connecting emitter");
}
catch (const ::Components::InvalidConnection& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect_consumer() returned ::Components::InvalidConnection exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught InvalidConnection while connecting emitter.");
}
}
@@ -2030,13 +2057,15 @@ NodeApplication_Impl::connect_emitter_ext (Components::CCMObject_ptr inst,
{
DANCE_DEBUG ( (LM_WARNING, "NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect_consumer() returned ::Components::AlreadyConnected exception\n"));
- //throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught AlreadyConnected exception while connecting external emitter.");
}
catch (const ::Components::InvalidConnection& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::connect_consumer() returned ::Components::InvalidConnection exception\n"));
- throw ::Deployment::InvalidConnection();
+ throw ::Deployment::InvalidConnection("",
+ "Caught InvalidConnection exception while connecting external emitter.");
}
}
@@ -2066,19 +2095,19 @@ NodeApplication_Impl::connect_publisher (Components::CCMObject_ptr inst,
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::subscribe() returned ::Components::InvalidName exception\n"));
- throw ::Deployment::StartError("", "Caught InvalidName exception");
+ throw ::Deployment::StartError("", "Caught InvalidName exception while connecting publisher");
}
catch (const ::Components::InvalidConnection& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::subscribe() returned ::Components::InvalidConnection exception\n"));
- throw ::Deployment::InvalidConnection("", "Caught InvalidConnection exception");
+ throw ::Deployment::InvalidConnection("", "Caught InvalidConnection exception while connecting publisher.");
}
catch (const ::Components::ExceededConnectionLimit& )
{
DANCE_ERROR((LM_ERROR, DLINFO " NodeApplication_impl::finishLaunch - "
"Components::CCMObject_var::subscribe() returned ::Components::ExceededCOnnectionLimit exception\n"));
- throw ::Deployment::InvalidConnection("", "Caught ExceededConnectionLimit exception\n");
+ throw ::Deployment::InvalidConnection("", "Caught ExceededConnectionLimit exception while connecting publisher.");
}
return res;
}