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

HTTP proxy service can throw NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.3.0, 4.2.9
    • 4.2.11, 4.3.1
    • karaf
    • None

    Description

      In some rare cases, HTTP proxy service can throw NullPointerException when the configurationadmin service is not there (refreshing for instance):

      2020-12-02T11:20:40,793 | ERROR | activator-1-thread-2 | ProxyServiceImpl                 | 85 - org.apache.karaf.http.core - 4.3.1.SNAPSHOT | Can't load proxies
      java.lang.NullPointerException: null 
        at org.apache.felix.cm.impl.ConfigurationAdapter.getProcessedProperties(ConfigurationAdapter.java:293) ~[?:?]
        at org.apache.karaf.http.core.internal.ProxyServiceImpl.<init>(ProxyServiceImpl.java:52) [!/:?]
        at org.apache.karaf.http.core.internal.osgi.Activator.doStart(Activator.java:97) [!/:?]
        at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [!/:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_271]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_271]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_271]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_271]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_271] 

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jbonofre Jean-Baptiste Onofré
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: