[omniORB] omniORBpy/AdapterActivator/find_POA problem

Patrick Hubert hubert@discreet.com
Thu, 2 Aug 2001 15:11:57 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1062726598-1621528551-996779517=:3547
Content-Type: TEXT/PLAIN; charset=US-ASCII



Hi all,

I'm having a bit of a problem with omniORBpy while trying to use an
adaptor activator...

In a nutshell:
 - if I activate the RootPOA's POAManager before doing my
   find_POA (thus calling unknown_adapter in my activator), it
   works, but when the application exits I get:

   omniORB: Application check failed. This indicates a bug in the application
   using omniORB.  See the comment in the source code for more info.
   file: ../poa.cc
   line: <varies: 1281 for 3.03 and 1344 for 3.04>
   info: pd_destroyed == 2

 - if I activate the manager after the call to find_POA, the call
   to find_POA hangs without ever calling my activator. I have to
   <ctrl-z> and kill my program... <ctrl-c> does not do anything.


According to Henning/Vinoski (p.514-520), the POAManager does not have to
be activated for the adaptor activator to work...


see attached simple app (problem.py):
  do:
      ./problem.py before
      to activate POA manager and see OMNIORB warning.

      ./problem.py after
      to see progran hang.


Have I somehow found a bug, or am I doing something wrong?


Thanks

   -Patrick




running on:
  - IRIX 6.5.11f
  - python 1.5.2
  - omniORB 3.03 and 3.04
  - omniORBpy 1.2 and 1.4
  - using pre-built binaries for omniORB 3.03 and omniORBpy 1.2
  - using home-built binaries for omniORB 3.04 and omniORBpy 1.4


--
Patrick Hubert
Work: +1.514.954.7233
Fax : +1.514.393.0110

---1062726598-1621528551-996779517=:3547
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="problem.py"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SGI.3.95.1010802151157.3547j@danemark.rd.discreet.qc.ca>
Content-Description: 

IyEvdXNyL2Jpbi9lbnYgcHl0aG9uDQoNCmltcG9ydCBzeXMNCg0KZnJvbSBv
bW5pT1JCIGltcG9ydCBDT1JCQSwgUG9ydGFibGVTZXJ2ZXIsIFBvcnRhYm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