FileNotFoundException: .../etc/daexim.cfg (No such file or directory)

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.

Environment

Operating System: All
Platform: All

Attachments

2
  • 09 May 2017, 01:54 PM
  • 09 May 2017, 01:20 PM

Activity

Show:

Michael Vorburger May 10, 2017 at 5:37 PM

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

Anton Ivanov May 9, 2017 at 4:58 PM

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.

Michael Vorburger May 9, 2017 at 2:09 PM

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

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

Michael Vorburger May 9, 2017 at 1:54 PM

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

Michael Vorburger May 9, 2017 at 1:54 PM

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.

Done

Details

Assignee

Reporter

External issue ID

Priority (migrated 2)

High

Components

Affects versions

Priority

Created May 9, 2017 at 1:20 PM
Updated July 27, 2017 at 4:46 PM
Resolved July 27, 2017 at 4:46 PM