Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7389

Problem installing features with embedded config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.0, 4.3.6, 4.2.15
    • 4.4.1, 4.3.8
    • karaf
    • None

    Description

      I've just seen this when installing Pax Web 8.0.1-SNAPSHOT features:

      2022-02-08T13:25:32,180 | INFO  | fileinstall-/data/servers/apache-karaf-4.4.0-SNAPSHOT/etc | fileinstall                      | 17 - org.apache.felix.fileinstall - 3.7.4 | Updating configuration {org.ops4j.pax.web} from /data/servers/apache-karaf-4.4.0-SNAPSHOT/etc/org.ops4j.pax.web.cfg
      2022-02-08T13:25:32,184 | ERROR | fileinstall-/data/servers/apache-karaf-4.4.0-SNAPSHOT/etc | fileinstall                      | 17 - org.apache.felix.fileinstall - 3.7.4 | Failed to install artifact: /data/servers/apache-karaf-4.4.0-SNAPSHOT/etc/org.ops4j.pax.web.cfg
      java.lang.RuntimeException: java.lang.IllegalArgumentException: Key [] must not be an empty string
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.update0(ConfigInstaller.java:649) ~[!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.setConfig(ConfigInstaller.java:411) ~[!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.install(ConfigInstaller.java:192) ~[!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:950) [!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884) [!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489) [!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [!/:3.7.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [!/:3.7.4]
      Caused by: java.lang.IllegalArgumentException: Key [] must not be an empty string
      	at org.apache.felix.cm.impl.CaseInsensitiveDictionary.checkKey(CaseInsensitiveDictionary.java:269) ~[?:?]
      	at org.apache.felix.cm.impl.CaseInsensitiveDictionary.<init>(CaseInsensitiveDictionary.java:73) ~[?:?]
      	at org.apache.felix.cm.impl.ConfigurationImpl.update(ConfigurationImpl.java:452) ~[?:?]
      	at org.apache.felix.cm.impl.ConfigurationAdapter.updateIfDifferent(ConfigurationAdapter.java:204) ~[?:?]
      	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312]
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.update0(ConfigInstaller.java:641) ~[!/:3.7.4]
      	... 7 more
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              ggrzybek Grzegorz Grzybek
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: