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

Bakomchev Dmitriy closed CAMEL-9138.
------------------------------------
    Resolution: Invalid

my endpoint was not be secured,so httpclient  does not append headers.
Its my mistake

> HTTP Basic Authentication headers missing
> -----------------------------------------
>
>                 Key: CAMEL-9138
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9138
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.15.2
>         Environment: OSX Yosemmite
> JDK 1.7
> tomcat 7.0.57
>            Reporter: Bakomchev Dmitriy
>
> Im trying to implement simple REST proxy application with camel:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:cxf="http://camel.apache.org/schema/cxf";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xmlns:osgix="http://www.springframework.org/schema/osgi-compendium";
>         xmlns:context="http://www.springframework.org/schema/context";
>        xsi:schemaLocation="
>        http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans.xsd
>        http://camel.apache.org/schema/spring 
> http://camel.apache.org/schema/spring/camel-spring.xsd
>        http://camel.apache.org/schema/cxf 
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
>        http://www.springframework.org/schema/context 
> http://www.springframework.org/schema/context/spring-context.xsd
> http://www.springframework.org/schema/osgi-compendium
>         
> http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd";
>        default-autowire="byType">
>     <context:annotation-config/>
>     <import resource="classpath:META-INF/cxf/cxf.xml"/>
>     <!--Configure cxf rest endpoint-->
>     <cxf:rsServer id="publicApi" address="/publicApi"
>                   serviceClass="org.bla.bla.PublicApi"
>                   loggingFeatureEnabled="true">
>         <cxf:providers>
>             <ref bean="jsonProvider"/>
>         </cxf:providers>
>     </cxf:rsServer>
>     <!--Configure camel routes rest endpoint-->
>     <camelContext trace="true" xmlns="http://camel.apache.org/schema/spring";>
>         <dataFormats>
>             <json id="map" library="Jackson" 
> unmarshalTypeName="java.util.HashMap"/>
>         </dataFormats>
>         <onException>
>             <exception>java.lang.Throwable</exception>
>             <handled>
>                 <constant>true</constant>
>             </handled>
>             <process ref="globalErrorProcessor"/>
>         </onException>
>         <route id="fromPublicApi">
>         <from uri="cxfrs:bean:publicApi?bindingStyle=SimpleConsumer"/>
>             <marshal ref="map"/>
>             <to 
> uri="http://localhost:8082/some/url?bridgeEndpoint=true&amp;authMethod=Basic&amp;authUsername=donald&amp;authPassword=duck"/>
>         </route>
>     </camelContext>
> </beans>
> {code}
> but when i call my publicApi - endpoint ,i receive request in apache tcpdump 
> without Authorization headers!
> this is camel log: 
> {code}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) from(cxfrs://bean:publicApi?bindingStyle=SimpleConsumer) --> 
> marshal[org.apache.camel.component.jackson.JacksonDataFormat@5ee5aa77] <<< 
> Pattern:InOut, Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, 
> */*; q=.2, breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, 
> BodyType:java.util.LinkedHashMap, Body:{second=Second_param, 
> method=getOrderItemStatus, FIRST=FIRST param, apikey=123}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) from(cxfrs://bean:publicApi?bindingStyle=SimpleConsumer) --> 
> marshal[org.apache.camel.component.jackson.JacksonDataFormat@5ee5aa77] <<< 
> Pattern:InOut, Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, 
> */*; q=.2, breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, 
> BodyType:java.util.LinkedHashMap, Body:{second=Second_param, 
> method=getOrderItemStatus, FIRST=FIRST param, apikey=123}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) 
> marshal[org.apache.camel.component.jackson.JacksonDataFormat@5ee5aa77] --> 
> setHeader[CamelHttpQuery, 
> authMethod=Basic&authUsername=donald&authPassword=duck] <<< Pattern:InOut, 
> Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, BodyType:byte[], 
> Body:{"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) 
> marshal[org.apache.camel.component.jackson.JacksonDataFormat@5ee5aa77] --> 
> setHeader[CamelHttpQuery, 
> authMethod=Basic&authUsername=donald&authPassword=duck] <<< Pattern:InOut, 
> Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, BodyType:byte[], 
> Body:{"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) setHeader[CamelHttpQuery, 
> authMethod=Basic&authUsername=donald&authPassword=duck] --> 
> http://localhost:8082/items/statuses?bridgeEndpoint=true <<< Pattern:InOut, 
> Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpQuery=authMethod=Basic&authUsername=donald&authPassword=duck, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, BodyType:byte[], 
> Body:{"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}
> 2015-09-15 10:01:30 INFO  Tracer:95 - ID-mac-0046-50889-1442300447846-0-2 >>> 
> (fromPublicApi) setHeader[CamelHttpQuery, 
> authMethod=Basic&authUsername=donald&authPassword=duck] --> 
> http://localhost:8082/items/statuses?bridgeEndpoint=true <<< Pattern:InOut, 
> Headers:{Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> breadcrumbId=ID-mac-0046-50889-1442300447846-0-1, 
> CamelAcceptContentType=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> CamelCxfMessage={org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html, 
> image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], 
> Content-Length=[92], content-type=[application/json], host=[localhost:8080], 
> user-agent=[Java/1.7.0_71]}, org.apache.cxf.interceptor.LoggingMessage.ID=1, 
> org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@1a0c9fea],
>  path_to_match_slash=/omsapi/callmethod, 
> org.apache.cxf.message.Message.ENCODING=ISO-8859-1, 
> org.apache.cxf.message.Message.QUERY_STRING=null, 
> http.service.redirection=null, 
> HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@32d6c902, 
> HTTP_CONTEXT_MATCH_STRATEGY=stem, 
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@3326bc61,
>  
> org.apache.cxf.request.url=http://localhost:8080/SellerCenterOMSApi/omsapi/callmethod,
>  org.apache.cxf.configuration.security.AuthorizationPolicy=null, 
> org.apache.cxf.async.post.response.dispatch=true, 
> org.apache.cxf.request.method=POST, 
> org.apache.cxf.request.uri=/SellerCenterOMSApi/omsapi/callmethod, 
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@7df5c52d,
>  org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, 
> org.apache.cxf.resource.method=public abstract java.lang.String 
> org.bla.bla.PublicApi.callmethod(java.util.Map), 
> HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@12644df6, 
> http.base.path=http://localhost:8080, 
> org.apache.cxf.transport.https.CertConstraints=null, 
> HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@773a5ae8, 
> Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, 
> HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@1826727f, 
> Content-Type=application/json, 
> jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, 
> org.apache.cxf.message.Message.BASE_PATH=/SellerCenterOMSApi, 
> org.apache.cxf.message.Message.PATH_INFO=/SellerCenterOMSApi/omsapi/callmethod},
>  
> CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@2dfc778c],
>  CamelCxfRsResponseClass=class java.lang.String, 
> CamelCxfRsResponseGenericType=class java.lang.String, 
> CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, 
> CamelHttpPath=/omsapi/callmethod, 
> CamelHttpQuery=authMethod=Basic&authUsername=donald&authPassword=duck, 
> CamelHttpUri=/SellerCenterOMSApi/omsapi/callmethod, connection=keep-alive, 
> Content-Length=92, Content-Type=application/json, host=localhost:8080, 
> operationName=callmethod, user-agent=Java/1.7.0_71}, BodyType:byte[], 
> Body:{"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}
> 2015-09-15 10:01:30 DEBUG SendProcessor:125 - >>>> 
> Endpoint[http://localhost:8082/items/statuses?bridgeEndpoint=true] 
> Exchange[Message: 
> {"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}]
> 2015-09-15 10:01:30 DEBUG SendProcessor:125 - >>>> 
> Endpoint[http://localhost:8082/items/statuses?bridgeEndpoint=true] 
> Exchange[Message: 
> {"second":"Second_param","method":"getOrderItemStatus","FIRST":"FIRST 
> param","apikey":"123"}]
> 2015-09-15 10:01:30 DEBUG DefaultTypeConverter:341 - Promoting fallback type 
> converter as a known type converter to convert from: 
> org.apache.camel.component.http.HttpMethods to: java.lang.String for the 
> fallback converter: org.apache.camel.impl.converter.EnumTypeConverter@720040df
> 2015-09-15 10:01:30 DEBUG DefaultTypeConverter:341 - Promoting fallback type 
> converter as a known type converter to convert from: 
> org.apache.camel.component.http.HttpMethods to: java.lang.String for the 
> fallback converter: org.apache.camel.impl.converter.EnumTypeConverter@720040df
> 2015-09-15 10:01:30 DEBUG HttpProducer:143 - Executing http POST method: 
> http://localhost:8082/items/statuses/omsapi/callmethod?authMethod=Basic&authUsername=donald&authPassword=duck
> 2015-09-15 10:01:30 DEBUG HttpProducer:143 - Executing http POST method: 
> http://localhost:8082/items/statuses/omsapi/callmethod?authMethod=Basic&authUsername=donald&authPassword=duck
> 2015-09-15 10:01:30 INFO  HttpMethodDirector:439 - I/O exception 
> (org.apache.commons.httpclient.NoHttpResponseException) caught when 
> processing request: The server localhost failed to respond
> 2015-09-15 10:01:30 INFO  HttpMethodDirector:445 - Retrying request
> 2015-09-15 10:01:30 INFO  HttpMethodDirector:439 - I/O exception 
> (org.apache.commons.httpclient.NoHttpResponseException) caught when 
> processing request: The server localhost failed to respond
> 2015-09-15 10:01:30 INFO  HttpMethodDirector:445 - Retrying request
> 2015-09-15 10:01:30 INFO  HttpMethodDirector:439 - I/O exception 
> (org.apache.commons.httpclient.NoHttpResponseException) caught when 
> processing request: The server localhost failed to respond
> {code}



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

Reply via email to