* OSF-DCE debugging
@ 1994-08-19 11:54 Wolfgang Lux
1994-08-20 3:37 ` Jonathan Chinitz
1994-08-20 3:47 ` Venke Murughappan
0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Lux @ 1994-08-19 11:54 UTC (permalink / raw)
I have written a small dce server, providing 2 objects with
one interface and different type managers and 1 object with
a diffent interface.
There is no problem using the first two objects.
When using the third object I get the error message:
Exception: unknown interface (dce / rpc)
Questions:
- where does the idl put the interface uuid contained in the idl-file?
I did not find it in the stub sources.
- idl has a trace option. How to get the traces?
Wolfgang Lux
--
Wolfgang Lux
German National Research Center for Computer Science (GMD)
P.O. Box 1316 D-53757 St. Augustin
email: wolfgang.lux@gmd.de fax: +49 2241 142105 tel: +49 2241 142424
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OSF-DCE debugging
1994-08-19 11:54 OSF-DCE debugging Wolfgang Lux
@ 1994-08-20 3:37 ` Jonathan Chinitz
1994-08-21 15:55 ` Yuh Ming YONG
1994-08-20 3:47 ` Venke Murughappan
1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Chinitz @ 1994-08-20 3:37 UTC (permalink / raw)
In article <3326i0$p1o@gmdzi.gmd.de>, lux@gmdzi.gmd.de (Wolfgang Lux) writes:
> I have written a small dce server, providing 2 objects with
> one interface and different type managers and 1 object with
> a diffent interface.
> There is no problem using the first two objects.
> When using the third object I get the error message:
> Exception: unknown interface (dce / rpc)
>
> Questions:
> - where does the idl put the interface uuid contained in the idl-file?
> I did not find it in the stub sources.
>
The interface uuid is part of the interface handle, or ifspec. You can
find the construction of it at the end of the server stub code for
your interface. The uuid is encoding in hex pairs into the ifspec.
Without looking at your code it is hard to figure out what is wrong
(boy, isn't that a brilliant one :-)), but you might check and see
that your problematic object is mapped to a manager type that is in
fact registered with your interface (via rpc_object_set_type). Also,
be sure to call rpc_server_register_if twice, once for each interface.
> - idl has a trace option. How to get the traces?
>
I'd like to know the answer to this one, too.
Jonathan
--
Jonathan Chinitz E-mail: jec@isoft.com
IntelliSoft Corp. Tel.: 508-635-9070
Distributed Computing Solutions Fax: 508-635-9210
P.O. Box 2645, Acton, MA 01720
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OSF-DCE debugging
1994-08-20 3:37 ` Jonathan Chinitz
@ 1994-08-21 15:55 ` Yuh Ming YONG
0 siblings, 0 replies; 4+ messages in thread
From: Yuh Ming YONG @ 1994-08-21 15:55 UTC (permalink / raw)
In article <3326i0$p1o@gmdzi.gmd.de>, lux@gmdzi.gmd.de (Wolfgang Lux) writes:
> I have written a small dce server, providing 2 objects with
> one interface and different type managers and 1 object with
> a diffent interface.
> There is no problem using the first two objects.
> When using the third object I get the error message:
> Exception: unknown interface (dce / rpc)
>
> Questions:
> - where does the idl put the interface uuid contained in the idl-file?
> I did not find it in the stub sources.
>
In your idl file, as generated by using the UUIDGEN, you will see an
interface header and interface body. Typically, the idl file looks like:
[ interface header] interface INTERFACENAME
{ <RPC operations> }
Possible explainations (just a guess since it is difficult to explain
something without first looking at the codes) are:
(1) In your server initilization routine, the 'other object UUID' is not
registered uniquely / correctly with the CDS.
(2) In searching for that 'other object UUID', the rpc_ns_binding_lookup_
routine cannot find the binding information as requested by the client.
Check your search criteria / specification.
You may find it helpful to examine comm_status and fault_status return
codes in the exceptional handler.
Good luck.
=========================================================================
Yuh Ming, Yong Internet: ymyong@neumann.uwaterloo.ca
Department of Computer Science
University of Waterloo
Waterloo, Ontario
Canada N2L 3G1
=========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OSF-DCE debugging
1994-08-19 11:54 OSF-DCE debugging Wolfgang Lux
1994-08-20 3:37 ` Jonathan Chinitz
@ 1994-08-20 3:47 ` Venke Murughappan
1 sibling, 0 replies; 4+ messages in thread
From: Venke Murughappan @ 1994-08-20 3:47 UTC (permalink / raw)
Wolfgang Lux (lux@gmdzi.gmd.de) wrote:
: Questions:
: - where does the idl put the interface uuid contained in the idl-file?
: I did not find it in the stub sources.
A client looks for the interface in the following manner:
1. Looks for the entry in CDS namespace, first. If you are
not using CDS namespace, then your binding method has to be
explicit in the idl file.
2. UUID is given in the header file.h. The marshalling
routines are in file_cstub/stsub as the case may be.
3. For your problem, make sure that you have your function
name entered in the entry point manager
you have to say something like rpcfunctionnameManagerepv = ...
etc in your server. When the server gets into the interface
it braggs only about its own functions. Clients will be able
to find only these functions/interfaces.
: - idl has a trace option. How to get the traces?
: Wolfgang Lux
: --
: Wolfgang Lux
: German National Research Center for Computer Science (GMD)
: P.O. Box 1316 D-53757 St. Augustin
: email: wolfgang.lux@gmd.de fax: +49 2241 142105 tel: +49 2241 142424
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-08-21 15:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-19 11:54 OSF-DCE debugging Wolfgang Lux
1994-08-20 3:37 ` Jonathan Chinitz
1994-08-21 15:55 ` Yuh Ming YONG
1994-08-20 3:47 ` Venke Murughappan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox