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] [Assigned] (HTTPCLIENT-1772) [OSGi] WeakList needs to support "clear" method
Date Fri, 30 Sep 2016 14:25:20 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julian Sedding reassigned HTTPCLIENT-1772:
------------------------------------------

    Assignee: Julian Sedding

> [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: 4.5.2, 5.0 Alpha1
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>             Fix For: 4.5.3, 5.0 Alpha2
>
>         Attachments: HTTPCLIENT-1772-jsedding.patch
>
>
> 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