<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>204</bug_id>
          
          <creation_ts>2002-06-12 03:16:24 +0000</creation_ts>
          <short_desc>POA.deactivate_object() hangs</short_desc>
          <delta_ts>2002-06-12 17:08:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>POA</component>
          <version>1.4.0</version>
          <rep_platform>Sun</rep_platform>
          <op_sys>SunOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitri Kuznetsov">dmitri</reporter>
          <assigned_to name="Reimo Tiedemann">tie</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>358</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitri Kuznetsov">dmitri</who>
    <bug_when>2002-06-12 03:16:24 +0000</bug_when>
    <thetext>When the POA.deactivate_object(oid) is called within the context of invocation
where oid is the object id of the called servant, it never returns. This worked
in 1.4 betas. For example, in the following typical case:

interface MyInterface {
  ...
  void close();
}

and the servant code:

public void close() {
 ...
 byte[] oid = myPOA.servant_to_id(this);
 myPOA.deactivate_object(oid);
}

Here&apos;s what I&apos;ve dug out so far:
In the org.jacorb.poa.POA.deactivate_object() code, a call to
RequestController.waitForDeactivationStart() was added since 1.4beta4. This
method appears to be waiting on oid (oid.wait()). But it also appears that the
code that is supposed to &quot;oid.notify()&quot; - in org.jacorb.poa.AOM.remove() - is
waiting in RequestController.waitForObjectCompletion() which will not return
until the active operation (MyInterface::close in the example above) completes.

Currently, the workaround is to call the deactivate_object in another thread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361</commentid>
    <comment_count>1</comment_count>
    <who name="Reimo Tiedemann">tie</who>
    <bug_when>2002-06-12 17:08:24 +0000</bug_when>
    <thetext>Fixed. Will be contained in the upcomming 1.4.1
changed org.jacorb.poa.POA.deactivate_object()
changed org.jacorb.poa.AOM
changed org.jacorb.poa.RequestController</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>