Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-76

[Karaf 4] SFT IOException target/pax/.../test-dependencies.xml (No such file or directory)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 7923

    Description

      when running SingleFeatureTest (SFT) on a Karaf 4 feature, e.g. by "mvn -o -Dsft.diag.skip=true clean install" in genius/features/features4-genius from https://git.opendaylight.org/gerrit/#/c/51966/ (not sure if this also happens in production Karaf or is SFT specific), then I'm seeing this:

      2017-03-08 00:10:01,823 | WARN | r - ConfigPusher | FeaturesServiceImpl | 8 - org.apache.karaf.features.core - 4.0.7 | Can't load features repository file:/home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/te
      st-dependencies.xml
      java.io.IOException: /home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/test-dependencies.xml (No such file or directory) : file:/home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9f
      ca-074df8c3f661/test-dependencies.xml
      at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:96)[8:org.apache.karaf.features.core:4.0.7]
      at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)[8:org.apache.karaf.features.core:4.0.7]
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:709)[8:org.apache.karaf.features.core:4.0.7]
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listInstalledFeatures(FeaturesServiceImpl.java:754)[8:org.apache.karaf.features.core:4.0.7]
      at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.isInstalled(FeatureConfigPusher.java:114)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
      at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.pushConfig(FeatureConfigPusher.java:91)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
      at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.pushConfigs(FeatureConfigPusher.java:71)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
      at org.opendaylight.controller.configpusherfeature.internal.ConfigPushingRunnable.processFeatureEvent(ConfigPushingRunnable.java:65)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
      at org.opendaylight.controller.configpusherfeature.internal.ConfigPushingRunnable.run(ConfigPushingRunnable.java:47)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
      Caused by: java.io.FileNotFoundException: /home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/test-dependencies.xml (No such file or directory)
      at java.io.FileInputStream.open0(Native Method)[:1.8.0_121]
      at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_121]
      at java.io.FileInputStream.<init>(FileInputStream.java:138)[:1.8.0_121]
      at java.io.FileInputStream.<init>(FileInputStream.java:93)[:1.8.0_121]
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.8.0_121]
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.8.0_121]
      at java.net.URL.openStream(URL.java:1045)[:1.8.0_121]
      at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:91)[8:org.apache.karaf.features.core:4.0.7]
      ... 9 more
      2017-03-08 00:10:01,999 | IN

      The directory target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/ directory does exist, but what's test-dependencies.xml, and why is controller / Karaf trying to open that?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: