Calling commands through CORBA

Hi Falks,

I am investigating simple CORBA features for Orocos. The best way to
easily reproduce my problem is using an HelloWorld example.

On machine A, I launch
$ cdeployer-gnulinux -s hello.xml
in the helloworld folder with hello.xml being:
<properties>
<simple name="Import" type="string"><value>.</value></simple>
<struct name="Hello" type="OCL::HelloWorld">
<simple name="Server" type="boolean"><value>1</value></simple>
</struct>
</properties>

Then from machine B, I launch
$ ctaskbrowser-gnulinux Hello

CORBA connection seems OK (I can 'ls').

the_method gives me good results:
In Task Hello[R]. (Status of last Command : none )
(type 'ls' for context info) :the_method
Got :the_method
= Hello World

But I am not able to remotely call the command:
In Task Hello[R]. (Status of last Command : none )
(type 'ls' for context info) :the_command("Toto")
Got :the_command("Toto")
Fatal Semantic error: Something weird went wrong in calling method
"the_command" on object "this".

On machine A console, I have:
360.209 [ ERROR ][cdeployer-gnulinux::main()] CORBA exception raised
when creating ExpressionProxy!
360.209 [ ERROR ][cdeployer-gnulinux::main()] system exception, ID
'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as 'No usable profile in IOR.', completed = NO

Can anybody explain me this failure? and how to solve it?

Thanks,

Charles.

Calling commands through CORBA

On Thursday 12 February 2009 17:04:35 Charles Lesire-Cabaniols wrote:
>
> On machine A console, I have:
> 360.209 [ ERROR ][cdeployer-gnulinux::main()] CORBA exception raised
> when creating ExpressionProxy!
> 360.209 [ ERROR ][cdeployer-gnulinux::main()] system exception, ID
> 'IDL:omg.org/CORBA/TRANSIENT:1.0'
> OMG minor code (2), described as 'No usable profile in IOR.', completed =
> NO
>
> Can anybody explain me this failure? and how to solve it?

After a bit of Googling, I found this:

<http://www.qsyssoft.com/machaxor/?p=7>

.... If you get errors like "No usable profile in IOR" Then you will need to
check your /etc/hosts file. Make sure the line "127.0.0.1 localhost" also has
the name of your machine on the line.
ie. 127.0.0.1 localhost <mymachinename>

Good Luck!

Peter

Calling commands through CORBA

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That's ok, thanks !!<br>
<br>
Effectively, this solve the problem. What looks strange is that I can
use methods, ls remote components, start them, without any error!<br>
<br>
I am using RTT v1.6.<br>
<br>
Thanks again.<br>
<br>
Charles.<br>
<br>
Peter Soetens wrote:
<blockquote cite="mid:200902122315 [dot] 32425 [dot] peter [dot] soetens [..] ..."
type="cite">
<pre wrap="">On Thursday 12 February 2009 17:04:35 Charles Lesire-Cabaniols wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On machine A console, I have:
360.209 [ ERROR ][cdeployer-gnulinux::main()] CORBA exception raised
when creating ExpressionProxy!
360.209 [ ERROR ][cdeployer-gnulinux::main()] system exception, ID
'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as 'No usable profile in IOR.', completed =
NO

Can anybody explain me this failure? and how to solve it?
</pre>
</blockquote>
<pre wrap=""><!---->
After a bit of Googling, I found this:

<a class="moz-txt-link-rfc2396E" href="http://www.qsyssoft.com/machaxor/?p=7">&lt;http://www.qsyssoft.com/machaxor/?p=7&gt;</a>

.... If you get errors like "No usable profile in IOR" Then you will need to
check your /etc/hosts file. Make sure the line "127.0.0.1 localhost" also has
the name of your machine on the line.
ie. 127.0.0.1 localhost &lt;mymachinename&gt;

Good Luck!

Peter
</pre>
</blockquote>
<BR>
<BR>
<FONT FACE=3D"Arial" SIZE=3D2>Disclaimer: <A HREF= "http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</A> for more information.</FONT>
<BR>
<BR>
</body>
</html>

Calling commands through CORBA

On Thursday 12 February 2009 17:04:35 Charles Lesire-Cabaniols wrote:
> Hi Falks,
>
> I am investigating simple CORBA features for Orocos. The best way to
> easily reproduce my problem is using an HelloWorld example.

Before I dig into this further, which RTT version and did you patch/modify it
?

Peter