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

 
 

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

Submitter:  janette cardoso <cardoso>
Submitted:  Tue 21 Jan 2014 02:37:02 PM UTC
   
 
Category:  JavaCERTI Severity:  * 3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  cardoso
Open/Closed:  Closed Release:  * GIT-master
Reproducibility:  Every Time Fixed Release:  * Unknown
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Dec 2017 09:00:40 AM UTC, comment #5: 

No feedback.
Workaround in "br_ptII_jbch" seems to provide expected beahvior.

Closing this ticket.

JbCh <jb_ch>
Group administrator
Fri 17 Feb 2017 10:24:37 AM UTC, comment #4: 

New input:

This issue is due to the use of getCanonicalPath() call to identify the fed file in the call in the createFederationExecution HLA API Java function. This was causing the crash of a ptolemy ptII federate when it was trying to log/access to a remote rtig (running on another computer).

I did a small workaround using getName() function instead on a dedicated branch for jcerti "br_ptII_jbch"

Commit id is:
711c72e41651541c4468f389abda9c8a8ef99929

JbCh <jb_ch>
Group administrator
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>
Group administrator
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>
Group administrator
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>
Group Member
Tue 21 Jan 2014 02:37:02 PM UTC, original submission:  


janette cardoso <cardoso>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-19 jb_ch Open/ClosedOpen Closed
    2017-02-17 jb_ch CategoryCERTI JavaCERTI
        StatusNone Works For Me
        Assigned toerk cardoso
        Release3.4.2 GIT-master
    2014-01-21 erk Assigned toNone erk
        Carbon-Copy- Added ahamez
    2014-01-21 erk Fixed Release3.4.0 Unknown

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code