[Ace-users] [tao-bugs] How does DII report a user exception?
Hans Utz
hans.utz at nasa.gov
Mon Feb 4 19:25:21 CST 2008
Hi Johnny,
okay, so for now, there is no way to get it. Good to know...
> There is a bugzilla entry to get the env() call back, see
> http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1621
Thanks for the pointer. I don't know how involved it would be to get the
env() back. Given the last "activity" on that bug report was apparently
in 2006, it seems not to be fixed any time soon...
Another way to pass on the user exception would be to store it in the
return_value(). That's not advocated by the standard and therefore
probably non-portable, but the content of return_value() does not have
any sane semantics for an exception-return anyways. So in case that's
easier, it would probably be an interesting alternative. - Is there any
recommendation from the standard folks how to handle this without env()?
Oh, and do you have by chance an answer to the _tk_void in Any question?
Thanks,
Hans
> Regards,
>
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
> *** Integrated compile and test statistics see
> http://scoreboard.theaceorb.nl ***
> *** Commercial service and support for ACE/TAO/CIAO ***
> *** See http://www.theaceorb.nl/en/support.html ***
>
>
>
> "Hans Utz" <hans.utz at ...> wrote in message
> news:<mailman.3516.1201908264.5286.tao-bugs at ...>...
> > TAO VERSION: 1.6.2
> > ACE VERSION: 5.6.2
> >
> > HOST MACHINE and OPERATING SYSTEM: Linux RH Workstation 5
> > COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc (GCC) 4.1.2
> >
> > THE $ACE_ROOT/ace/config.h: config-linux.h
> > THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
> > platform_linux.GNU
> > AREA/CLASS/EXAMPLE AFFECTED: DII
> >
> > DOES THE PROBLEM AFFECT: EXECUTION
> >
> > SYNOPSIS: How does DII report a user exception?
> >
> > DESCRIPTION:
> >
> > When a DII generated Request returns with an exception (from the list
> > ofspecified exceptions), a UnknownUserException is thrown by invoke(). I
> > don't know if this is correct or not, the standard is not very verbose
> > of that issue...
> >
> > Any example code I found uses the env() call, to query exceptions, but
> > this was deprecated in TAO a while ago. - So how can I actually retrieve
> > the exception thrown by the servant?
> >
> > RELATED:
> >
> > The Any holding return values for a DII invoke() call, contains tk_void
> > for methods returning void. APCP states in 16.3.1, that tk_void can
> > never appear as part of an any. - Well, I guess it makes perfect sense
> > in this case for the Any to hold tk_void. - But is this allowed by the
> > standard (and therefore portable)? And if so, how do I put a tk_void
> > into an any?
> >
> >
> > Thanks,
> > Hans
> >
More information about the Ace-users
mailing list