[DAEXIM-2] FileNotFoundException: .../etc/daexim.cfg (No such file or directory) Created: 09/May/17  Updated: 27/Jul/17  Resolved: 27/Jul/17

Status: Resolved
Project: daexim
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Michael Vorburger Assignee: Anton Ivanov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File bug8407bis.txt     Text File karaf.log    
External issue ID: 8407
Priority: High

 Description   

I've just hit the FileNotFoundException shown in full details in the attached log.

On a closer look, there appears to be a confusion between the code and the feature definition as to whether that file in etc/ should be called org.opendaylight.daexim.cfg (which is the <configfile finalname> in the features.xml) or daexim.cfg (which is how it is called in source control and in the LOCAL_CFG_FILE constant in class Util) ...

I'm not sure why I've never noticed / ran into this problem before when exploring Daexim (but it's there now). Unless one of the recently merged changes by myself caused this - but looking through the history, I don't see how; to me, this appears to have been broken since the start?

I'll propose a Gerrit with a suggested fix.



 Comments   
Comment by Michael Vorburger [ 09/May/17 ]

Attachment karaf.log has been added with description: daexim/karaf log with FileNotFoundException: etc/daexim.cfg (No such file or directory)

Comment by Michael Vorburger [ 09/May/17 ]

After fixing the basic problem, you run into an "IOException: Property 'daexim.dir' was not found", see attached bug8407bis.txt for full details, because in the default CFG the daexim.dir is commented out... I'll fix that as well as part of the proposed change to address this.

This mechanism probably never really fully worked as intended out-of-the-box.

Comment by Michael Vorburger [ 09/May/17 ]

Attachment bug8407bis.txt has been added with description: Karaf log showing details of "IOException: Property 'daexim.dir' was not found"

Comment by Michael Vorburger [ 09/May/17 ]

> I'll propose a Gerrit with a suggested fix.

https://git.opendaylight.org/gerrit/#/c/56725/

Comment by Anton Ivanov [ 09/May/17 ]

Strange, let me go through our CI for this to see exactly what was being tested and how it was named and I will get back to you.

Comment by Michael Vorburger [ 10/May/17 ]

Anton, do you want to close this bugzilla, given that you've merged c/56725 ?

Generated at Wed Feb 07 19:57:19 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.