[omniORB] INV_OBJREF again

Rob Cecil rceci@master.adams.com
Fri, 19 Nov 1999 15:48:07 -0500


--------------22366FC079E6BEBAE379F101
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Am I missing something here?

I have a method in my main server implementation object, which returns to the client an
object reference:

PropertyGroupServer_ptr RegistryServer_impl::getRootGroupServer()
{
  return rootGroup_->_this();
}

When called by a client, an INV_OBJREF is thrown.  If I change the method to

{
   return PropertyGroupServer::_nil();
}

No problem.  What am I missing.  rootGroup_ at the point this method can be called is
known to point to PropertyGroupServer_impl.

Thanks

Befuddled.


--
| Rob Cecil          | Senior Development Engineer                 |
| rceci@adams.com    | Product Development                         |
| (734) 913-9351     | Mechanical Dynamics, Inc. (www.adams.com)   |
--------------------------------------------------------------------
 Modern Quantum Physics has found that the universe is composed of
 25% protons, 15% electrons, 15% neutrons, and 45% morons.



--------------22366FC079E6BEBAE379F101
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Am I&nbsp;missing something here?
<p>I have a method in my main server implementation object, which returns
to the client an object reference:
<p>PropertyGroupServer_ptr RegistryServer_impl::getRootGroupServer()
<br>{
<br>&nbsp; return rootGroup_->_this();
<br>}
<p>When called by a client, an INV_OBJREF&nbsp;is thrown. &nbsp;If I&nbsp;change
the method to
<p>{
<br>&nbsp;&nbsp; return PropertyGroupServer::_nil();
<br>}
<p>No problem.&nbsp; What am I&nbsp;missing.&nbsp; rootGroup_ at the point
this method can be called is known to point to PropertyGroupServer_impl.
<p>Thanks
<p>Befuddled.
<br>&nbsp;
<pre>--&nbsp;
| Rob Cecil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Senior Development Engineer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| rceci@adams.com&nbsp;&nbsp;&nbsp; | Product Development&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| (734) 913-9351&nbsp;&nbsp;&nbsp;&nbsp; | Mechanical Dynamics, Inc. (www.adams.com)&nbsp;&nbsp; |
--------------------------------------------------------------------
&nbsp;Modern Quantum Physics has found that the universe is composed of
&nbsp;25% protons, 15% electrons, 15% neutrons, and 45% morons.</pre>
&nbsp;</html>

--------------22366FC079E6BEBAE379F101--