Summary: | Loading an interceptor when starting DAnCE processes | ||
---|---|---|---|
Product: | CIAO | Reporter: | manjula <tmpeiris> |
Component: | DAnCE | Assignee: | DOC Center Support List (internal) <tao-support> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hillj, tmpeiris, wotte |
Priority: | P3 | ||
Version: | 0.8.2 | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
Attachment to recreate the issue
Log file for NodeManager of stock distributor |
Two questions/requests: You mentioned that the problem does not present when you do not do the ORB_init in the init of the dynamic service, is this true? Please isolate for me the log for a single NodeManager, as there's too much going on in the attached log to determine what is going on, preferably without the instrumentation in ACE. Created attachment 1325 [details]
Log file for NodeManager of stock distributor
Hi Will,
Attached is the log file of NodeManager of stock distributor. I have set CIAO, TAO and DANCE log levels to 10. And also set the interceptor's TAO debug level also 10. Please let me know if you need any more information.
(In reply to comment #1) > Two questions/requests: > You mentioned that the problem does not present when you do not do the ORB_init > in the init of the dynamic service, is this true? Yes. When you comment that stament the problem no longer exists. > > Please isolate for me the log for a single NodeManager, as there's too much > going on in the attached log to determine what is going on, preferably without > the instrumentation in ACE. > This is attached in my previous update. Thanks a lot. Please try the patch below: Index: dance/LocalityManager/Handler/Locality_Manager_Handler_Impl.cpp =================================================================== --- dance/LocalityManager/Handler/Locality_Manager_Handler_Impl.cpp (revision 92205) +++ dance/LocalityManager/Handler/Locality_Manager_Handler_Impl.cpp (working copy) @@ -215,7 +215,7 @@ ACE_TEXT("Threading: %C\n"), multithread ? "Multi" : "Single")); - CORBA::ORB_var orb = TAO_ORB_Core_instance ()->orb (); + CORBA::ORB_var orb = DAnCE::PLUGIN_MANAGER::instance ()->get_orb (); DANCE_DEBUG (9, (LM_TRACE, DLINFO ACE_TEXT("Locality_Handler_i - ") ACE_TEXT("Spawning Locality handler\n"))); Reporter has indicated out of band that this patch fixes their problem. Committed in dancerev:92235. |
Created attachment 1324 [details] Attachment to recreate the issue I am trying to collect log messages generated from DANCE while executing the Quoter sample. For this I am loading an interceptor which is specified in a svc.conf file. The svc.conf file resides in the folder where I am running the Quoter sample. The content of the svc.conf file looks following. dynamic My_Interceptor Service_Object *My_Interceptor:_make_My_Interceptor() This interceptor calls ::CORBA::ORB_init (argc, argv, name); in its constructor. The interceptor loads correctly for Node_Managers, Plan_launcher and Execution_Manager. But the system fails during the StartLaunch phase. The reason is the Plan_launcher times out when Locality_Manager tries to get the configuration from the node application using a callback. Attached Zip file contains a simple source file which can be used to recreate the problem. It also contains a log file which was collected after executing the above scenario. In order to recreate the problem please follow the following steps. 1. Create the solution file using the mpc file using the following. %ACE_ROOT%\bin\mwc.pl -type vc9 2. Start the solution and buid it. 3. Copy all the binary files to a location accessible from your PATH. 4. place the svc.conf file inside the %CIAO_ROOT%\tutorials\Quoter\Simple\descriptors folder 5. Then run the run_test.pl for Quoter sample from that same directory please let me know if you have any problem recreating this issue.