hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Sedding (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1772) [OSGi] WeakList needs to support "clear" method
Date Tue, 27 Sep 2016 10:09:21 GMT
Julian Sedding created HTTPCLIENT-1772:
------------------------------------------

             Summary: [OSGi] WeakList needs to support "clear" method
                 Key: HTTPCLIENT-1772
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1772
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient (classic)
    Affects Versions: 5.0 Alpha1, 4.5.2
            Reporter: Julian Sedding


The {{WeakList}} implementation introduced in HTTPCLIENT-1749 does not currently implement
the {{close()}} method.

However, {{HttpProxyConfigurationActivator}} calls this method when the OSGi bundle is stopped,
leading to an exception being thrown.

{noformat}
org.osgi.framework.BundleException: Activator stop error in bundle org.apache.httpcomponents.httpclient
[122].
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2663)
        at org.apache.felix.framework.Felix.updateBundle(Felix.java:2341)
        at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:995)
        at org.apache.felix.webconsole.internal.core.UpdateHelper.doRun(UpdateHelper.java:60)
        at org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.doRun(BaseUpdateInstallHelper.java:93)
        at org.apache.felix.webconsole.internal.core.UpdateHelper.doRun(UpdateHelper.java:70)
        at org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.run(BaseUpdateInstallHelper.java:123)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsupportedOperationException: null
        at java.util.AbstractList.remove(AbstractList.java:161)
        at java.util.AbstractList$Itr.remove(AbstractList.java:374)
        at java.util.AbstractList.removeRange(AbstractList.java:571)
        at java.util.AbstractList.clear(AbstractList.java:234)
        at org.apache.http.osgi.impl.HttpProxyConfigurationActivator.stop(HttpProxyConfigurationActivator.java:140)
        at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2607)
        ... 7 common frames omitted
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message