bugCERTI - Bugs: bug #41291, fed file name taken with...

 
 

bug #41291: fed file name taken with full-path-address only

Submitted by:  janette cardoso <cardoso>
Submitted on:  Tue 21 Jan 2014 02:37:02 PM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: OpenRelease: 3.4.2
Reproducibility: Every TimeFixed Release: Unknown

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 23 Jan 2014 08:13:16 AM UTC, comment #3:

AFAIU: there is 2 problems in 1.

1) A federate shall not provide an absolute path to fed file
is createFederationExecution if it expects RTIG to
properly search for the FED file.

2) RTIG shall properly handle absolute path in a
mixed Windows/Unix settings. i.e. with RTIG running
on either Windows or Linux and one or several federate
running on the other kind of system.

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Tue 21 Jan 2014 02:40:19 PM UTC, comment #2:

This bug was initially posted (by error) there:
https://savannah.gnu.org/support/?108480

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Tue 21 Jan 2014 02:39:49 PM UTC, comment #1:

I'm working with a graphical open-source simulator that browses the name of
the fed file, using
_rtia.createFederationExecution(_federationName,
fedFile.asFile().toURI().toURL());
When the first federate is launched in the same computer where the rtig is
launched, it works perfectly.

But when the rtig is launched in a computer m1 and the 1st federate is
launched in a computer m2 (with CERTI_HOST=m1), then the rtig takes as fed
name the name with the full-path-address, and it cannot find it in the m1's
tree.
I tried lanching rtig in m1 (linux) and 1st federate in m2 (windows) and
vice-versa (rtig in m2 and federate in m1).
If I use a c++ federate where the name of the federation and fed file are
hard-coded, and launch in the same computer as rtig, then another federate is launched in another computer, it also works.

Remark: using billard, it works fine, because the Test.fed is hard-coded in the c++ federate.

Federate on linux, rtig on windows:
New federation: SimpleProducerConsumer
Looking for FOM file...
Trying... /users/home/demo/SimpleProducerConsumer.fed --> cannot access.
Now trying...C:\Documents and Settings\card\share\federations\/users/home/
demo/SimpleProducerConsumer.fed --> cannot access.
Now trying...c:\Program Files\CERTI
3.4.0\\share\federations\/users/home/demo/SimpleProducerConsumer.fed -->
cannot access.
Now trying...C:/Program
Files/CERTI\share\federations\/users/home/demo/SimpleProducerConsumer.fed -->
cannot access.
Next step will fail
CERTI RTIG exiting.

Federate on windows, rtig on linux:
rtig
CERTI RTIG 3.4.2-cvs - Copyright 2002-2008 ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CERTI RTIG up and running ...
New federation: ForPt1
Looking for FOM file...
Trying... C:\Documents and Settings\card\Mes
documents\MATLAB\Sinus\ForPt1.fed --> cannot access.
Now trying... /users/home/demo/certi-tools/share/federations/C:\Documents
and Settings\card\Mes documents\MATLAB\Sinus\ForPt1.fed --> cannot access.
Now trying... /users/home/demo/certi-tools/share/federations/C:\Documents
and Settings\card\Mes documents\MATLAB\Sinus\ForPt1.fed --> cannot access.
Now trying... /usr/local/share/federations/C:\Documents and
Settings\card\Mes documents\MATLAB\Sinus\ForPt1.fed --> cannot access.
Next step will fail

janette cardoso <cardoso>
Tue 21 Jan 2014 02:37:02 PM UTC, original submission:
janette cardoso <cardoso>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by erk (Should be interested by this as well)
  • -unavailable- added by erk (Posted a comment)
  • -unavailable- added by cardoso (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 21 Jan 2014 02:42:18 PM UTCerkAssigned toNone=>erk
      Carbon-Copy-=>Added ahamez
    Tue 21 Jan 2014 02:40:19 PM UTCerkFixed Release3.4.0=>Unknown

    Back to the top


    Powered by Savane 3.1-cleanup