[ 
https://issues.apache.org/jira/browse/KNOX-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656863#comment-15656863
 ] 

Sumit Gupta commented on KNOX-784:
----------------------------------

Sorry about this [~nishantbangarwa], I'd seen this before during the build but 
it went away when I added specific naming to the httpclientbuilder. Do you see 
this during the build or when running the gateway?

>  java.lang.IllegalArgumentException: A metric named 
> org.apache.http.conn.HttpClientConnectionManager.available-connections 
> already exists
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-784
>                 URL: https://issues.apache.org/jira/browse/KNOX-784
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Nishant Bangarwa
>            Assignee: Sumit Gupta
>
> Facing this error on latest trunk version - 
> Caused by: java.lang.IllegalArgumentException: A metric named 
> org.apache.http.conn.HttpClientConnectionManager.available-connections 
> already exists
>         at 
> com.codahale.metrics.MetricRegistry.register(MetricRegistry.java:91)
>         at 
> com.codahale.metrics.httpclient.InstrumentedHttpClientConnectionManager.<init>(InstrumentedHttpClientConnectionManager.java:63)
>         at 
> com.codahale.metrics.httpclient.InstrumentedHttpClientConnectionManager.<init>(InstrumentedHttpClientConnectionManager.java:49)
>         at 
> com.codahale.metrics.httpclient.InstrumentedHttpClientConnectionManager.<init>(InstrumentedHttpClientConnectionManager.java:41)
>         at 
> com.codahale.metrics.httpclient.InstrumentedHttpClientConnectionManager.<init>(InstrumentedHttpClientConnectionManager.java:36)
>         at 
> org.apache.hadoop.gateway.services.metrics.impl.instr.InstrHttpClientBuilderProvider.getInstrumented(InstrHttpClientBuilderProvider.java:41)
>         at 
> org.apache.hadoop.gateway.services.metrics.impl.instr.InstrHttpClientBuilderProvider.getInstrumented(InstrHttpClientBuilderProvider.java:36)
>         at 
> org.apache.hadoop.gateway.services.metrics.impl.DefaultMetricsService.getInstrumented(DefaultMetricsService.java:128)
>         at 
> org.apache.hadoop.gateway.dispatch.DefaultHttpClientFactory.createHttpClient(DefaultHttpClientFactory.java:67)
>         at 
> org.apache.hadoop.gateway.dispatch.GatewayDispatchFilter.init(GatewayDispatchFilter.java:75)
>         at 
> org.apache.hadoop.gateway.GatewayFilter$Holder.getInstance(GatewayFilter.java:362)



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

Reply via email to