[ 
https://issues.apache.org/jira/browse/KARAF-7995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011296#comment-18011296
 ] 

Holger Friedrich commented on KARAF-7995:
-----------------------------------------

I can reproduce the behaviour on Linux as well.

Looking at pax url sources, I can find the methods getSettingsFile() and 
getSecuritySettingsFile() which add the paths above as fallback locations
https://github.com/ops4j/org.ops4j.pax.url/blob/b993f16580db22da06d60a73942d39939c2aab09/pax-url-aether/src/main/java/org/ops4j/pax/url/mvn/internal/config/MavenConfigurationImpl.java#L192
https://github.com/ops4j/org.ops4j.pax.url/blob/b993f16580db22da06d60a73942d39939c2aab09/pax-url-aether/src/main/java/org/ops4j/pax/url/mvn/internal/config/MavenConfigurationImpl.java#L208
which finally call safeGetFile(), which actually issues the warning for all 
non-existing fallback locations..

I don't know yet why it now goes through all the fallbacks and issues a warning 
for every non-exisiting file.
Karaf 4.4.8 upgraded pax-url, but the could should not have changed in this 
file.

[~jbonofre] [~ggrzybek] FYI

> Strange log warnings with 4.4.8 RC1
> -----------------------------------
>
>                 Key: KARAF-7995
>                 URL: https://issues.apache.org/jira/browse/KARAF-7995
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.8
>         Environment: 4.4.8 RC1 (tag 4.4.8) built on Windows
> Ref: 
> https://github.com/openhab/openhab-distro/pull/1779#issuecomment-3137900816
>            Reporter: Holger Friedrich
>            Priority: Major
>
> I find some unexpected warnings in the log after upgrading openHAB to 4.4.8 
> (RC1).
> <pre>
> 23:20:37.461 [WARN ] [nternal.config.MavenConfigurationImpl] - Location 
> C:/Users/holgerf/.m2/settings.xml is not accessible (incorrect value for 
> option "settings")
> 23:20:37.461 [WARN ] [nternal.config.MavenConfigurationImpl] - Location 
> null/conf/settings.xml is not accessible (incorrect value for option 
> "settings")
> 23:20:37.462 [WARN ] [nternal.config.MavenConfigurationImpl] - Location 
> null/conf/settings.xml is not accessible (incorrect value for option 
> "settings")
> 23:20:37.462 [WARN ] [nternal.config.MavenConfigurationImpl] - Location 
> C:/Users/holgerf/.m2/settings-security.xml is not accessible (incorrect value 
> for option "security")
> </pre>
> This pops up a few times during startup.
> Not sure yet if this is a Karaf/Pax issue or if we do something wrong on the 
> openHAB side.
> I wanted to report this before final release of 4.4.8.
> MavenConfigurationImpl seems to be from pax-url-aether-3.0.1.jar.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to