Hi Isuru, Thanks a lot for that pointer :) As you pointed out it seems the issue is related Accept content type of my request (application/rdf+xml).
I tried adding <messageFormatter contentType="application/rdf+xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> to the axis2.xml but still ESB serializes the BE response as a text/plain which results in just sending the HTTP 200 response header to the client. I also tried enabling <messageBuilder contentType="application/rdf+xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/> but still the in the out-sequence ESB tries to serialize the response as text/plain. Following is a full log of a sample request : curl -v -X POST -H "Accept: application/rdf+xml" -H "Content-type: text/plain" --data "sample request to detect cities like Paris in content." http://localhost:8280/services/StanbolProxy [2015-02-11 16:01:24,844] DEBUG - wire >> "POST /services/StanbolProxy HTTP/1.1[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "Host: localhost:8280[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "Accept: application/rdf+xml[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-type: text/plain[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-Length: 54[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "[\r][\n]" [2015-02-11 16:01:24,846] DEBUG - wire >> "sample request to detect cities like Paris in content." [2015-02-11 16:01:24,854] DEBUG - wire << "POST /enhancer HTTP/1.1[\r][\n]" [2015-02-11 16:01:24,854] DEBUG - wire << "Content-Type: text/plain; charset=UTF-8[\r][\n]" [2015-02-11 16:01:24,855] DEBUG - wire << "Accept: application/rdf+xml[\r][\n]" [2015-02-11 16:01:24,855] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]" [2015-02-11 16:01:24,855] DEBUG - wire << "Host: localhost:8081[\r][\n]" [2015-02-11 16:01:24,855] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" [2015-02-11 16:01:24,856] DEBUG - wire << "User-Agent: Synapse-HttpComponents-NIO[\r][\n]" [2015-02-11 16:01:24,856] DEBUG - wire << "[\r][\n]" [2015-02-11 16:01:24,857] DEBUG - wire << "36[\r][\n]" [2015-02-11 16:01:24,857] DEBUG - wire << "sample request to detect cities like Paris in content.[\r][\n]" [2015-02-11 16:01:24,858] DEBUG - wire << "0[\r][\n]" [2015-02-11 16:01:24,858] DEBUG - wire << "[\r][\n]" [2015-02-11 16:01:25,192] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "Date: Wed, 11 Feb 2015 10:31:24 GMT[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "Content-Type: application/rdf+xml[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "Transfer-Encoding: chunked[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "Server: Jetty(7.x.y-SNAPSHOT)[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "783[\r][\n]" [2015-02-11 16:01:25,193] DEBUG - wire >> "<rdf:RDF[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " xmlns:rdf=" http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " xmlns:j.0=" http://purl.org/dc/terms/"[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " xmlns:j.1=" http://fise.iks-project.eu/ontology/" > [\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <rdf:Description rdf:about="urn:enhancement-cdbc9f2a-89b7-0b61-9159-081ae687ccd9">[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <j.1:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double ">0.14285864925027827</j.1:confidence>[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <j.1:extracted-from rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/>[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <j.0:created rdf:datatype=" http://www.w3.org/2001/XMLSchema#dateTime ">2015-02-11T10:31:24.979Z</j.0:created>[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <j.0:creator rdf:datatype=" http://www.w3.org/2001/XMLSchema#string ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator>[\n]" [2015-02-11 16:01:25,194] DEBUG - wire >> " <j.0:language>en</j.0:language>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <j.0:type rdf:resource=" http://purl.org/dc/terms/LinguisticSystem"/>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/TextAnnotation"/>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " </rdf:Description>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <rdf:Description rdf:about="urn:enhancement-ccc10374-74b7-7a7a-0b93-6a94ca0f88b5">[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <j.1:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double ">0.8571391372006272</j.1:confidence>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <j.1:extracted-from rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <j.0:created rdf:datatype=" http://www.w3.org/2001/XMLSchema#dateTime ">2015-02-11T10:31:24.979Z</j.0:created>[\n]" [2015-02-11 16:01:25,195] DEBUG - wire >> " <j.0:creator rdf:datatype=" http://www.w3.org/2001/XMLSchema#string ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> " <j.0:language>fr</j.0:language>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> " <j.0:type rdf:resource=" http://purl.org/dc/terms/LinguisticSystem"/>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> " <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> " <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/TextAnnotation"/>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> " </rdf:Description>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> "</rdf:RDF>[\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> "[\r][\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> "0[\r][\n]" [2015-02-11 16:01:25,196] DEBUG - wire >> "[\r][\n]" [2015-02-11 16:01:25,199] INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:c43cf639-8ef0-4a87-99df-c9eae1c8a0c5, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:j.1=" http://fise.iks-project.eu/ontology/" xmlns:j.0="http://purl.org/dc/terms/ "> <rdf:Description rdf:about="urn:enhancement-cdbc9f2a-89b7-0b61-9159-081ae687ccd9"> <j.1:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double ">0.14285864925027827</j.1:confidence> <j.1:extracted-from rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/> <j.0:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime ">2015-02-11T10:31:24.979Z</j.0:created> <j.0:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator> <j.0:language>en</j.0:language> <j.0:type rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/> <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement "/> <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/TextAnnotation"/> </rdf:Description> <rdf:Description rdf:about="urn:enhancement-ccc10374-74b7-7a7a-0b93-6a94ca0f88b5"> <j.1:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double ">0.8571391372006272</j.1:confidence> <j.1:extracted-from rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/> <j.0:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime ">2015-02-11T10:31:24.979Z</j.0:created> <j.0:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator> <j.0:language>fr</j.0:language> <j.0:type rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/> <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement "/> <rdf:type rdf:resource=" http://fise.iks-project.eu/ontology/TextAnnotation"/> </rdf:Description> </rdf:RDF></soapenv:Body></soapenv:Envelope> [2015-02-11 16:01:25,201] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]" [2015-02-11 16:01:25,201] DEBUG - wire << "Content-Type: text/plain; charset=UTF-8[\r][\n]" [2015-02-11 16:01:25,201] DEBUG - wire << "Server: Jetty(7.x.y-SNAPSHOT)[\r][\n]" [2015-02-11 16:01:25,201] DEBUG - wire << "Date: Wed, 11 Feb 2015 10:31:25 GMT[\r][\n]" [2015-02-11 16:01:25,201] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]" [2015-02-11 16:01:25,201] DEBUG - wire << "[\r][\n]" [2015-02-11 16:01:25,202] DEBUG - wire << "0[\r][\n]" [2015-02-11 16:01:25,202] DEBUG - wire << "[\r][\n]" On Wed, Feb 11, 2015 at 2:54 PM, Isuru Udana <isu...@wso2.com> wrote: > Hi Dileepa, > > You could observe that Content-Type of response coming from the backend to > ESB is application/rdf+xml and the response sent from ESB to Client is > text/plain. So Content-Type is getting changed at the ESB. > Could you check whether you have selected correct message formatter for > application/rdf+xml > Content-Type in axis2.xml ? > > > > On Wed, Feb 11, 2015 at 2:43 PM, Dileepa Jayakody < > dileepajayak...@gmail.com> wrote: > >> Hi Ruwan, >> >> Thanks again. >> However I still get only the HTTP status code response header to the >> client as below; >> I noted that the response's Transfer-Encoding is chunked. Could this be >> the cause that my client only gets the header part of the response? >> >> >> < HTTP/1.1 200 OK >> < Content-Type: text/plain; charset=UTF-8 >> < Server: Jetty(7.x.y-SNAPSHOT) >> < Date: Wed, 11 Feb 2015 08:55:32 GMT >> < Transfer-Encoding: chunked >> >> Thanks, >> Dileepa >> >> >> On Wed, Feb 11, 2015 at 1:42 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote: >> >>> Hi Dileepa, >>> I am sorry to point you on sample of newer version 4.8.1. >>> >>> Can you try something like this , taken and changed based on sample for >>> 4.5.1 [1]. I Have not tested it though. >>> >>> >>> >>> <proxy name="MyProxy" >>> transports="https http" >>> startOnLoad="true"> >>> <target> >>> <inSequence> >>> <send> >>> <endpoint> >>> <session type="simpleClientSession"/> >>> <loadbalance >>> algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> >>> <endpoint name="s1"> >>> <address uri="http://localhost:8080/enhancer >>> "/> >>> </endpoint> >>> <endpoint name="s2"> >>> <address uri="http://localhost:8082/enhancer >>> "/> >>> </endpoint> >>> </loadbalance> >>> </endpoint> >>> </send> >>> <drop/> >>> </inSequence> >>> <outSequence> >>> <send/> >>> </outSequence> >>> </target> >>> </proxy> >>> >>> As I understand it, your configuration is missing inSequence and it >>> might have caused an undesired behaviour. I would configure both in and out >>> sequences when we have to change one. >>> >>> [1] >>> https://docs.wso2.com/display/ESB451/Sample+752%3A+Load+Balancing+Between+3+Endpoints+With+Endpoint+Templates >>> >>> Cheers, >>> Ruwan >>> >>> >>> On Wed, Feb 11, 2015 at 12:15 PM, Dileepa Jayakody < >>> dileepajayak...@gmail.com> wrote: >>> >>>> Hi Ruwan, >>>> >>>> Thanks for the link. I followed the sample but the issue still persists. >>>> >>>> Although the BE response comes to the out sequence only the HTTP 200 >>>> status message is sent to the client. >>>> Response body is not sent. >>>> >>>> Regards, >>>> Dileepa >>>> >>>> On Wed, Feb 11, 2015 at 10:23 AM, Ruwan Abeykoon <ruw...@wso2.com> >>>> wrote: >>>> >>>>> Hi Deleepa, >>>>> Would you be able to adopt the configuration according to the >>>>> following sample? >>>>> >>>>> >>>>> https://docs.wso2.com/display/ESB481/Sample+154%3A+Load+Balancing+with+Proxy+Services >>>>> >>>>> Have a nice day! >>>>> -Ruwan >>>>> >>>>> On Tue, Feb 10, 2015 at 11:14 PM, Dileepa Jayakody < >>>>> dileepajayak...@gmail.com> wrote: >>>>> >>>>>> Hi All, >>>>>> >>>>>> Following is the log for a client request to my proxy service with >>>>>> wire-log enabled. >>>>>> BE response is logged by the LogMediator in the proxy service's >>>>>> out-sequence. But the response to the client doesn't contain the response >>>>>> body, only contains the HTTP 200 response header. >>>>>> Any tips to tackle the issue is much appreciated. >>>>>> >>>>>> Thanks, >>>>>> Dileepa >>>>>> >>>>>> [1] >>>>>> [2015-02-10 23:05:21,381] DEBUG - wire >> "POST >>>>>> /services/StanbolProxy HTTP/1.1[\r][\n]" >>>>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Content-Type: >>>>>> text/plain[\r][\n]" >>>>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Accept: >>>>>> application/rdf+xml[\r][\n]" >>>>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "User-Agent: >>>>>> Java/1.7.0_72[\r][\n]" >>>>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Host: 192.168.1.8:8280 >>>>>> [\r][\n]" >>>>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Connection: >>>>>> keep-alive[\r][\n]" >>>>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Content-Length: 35[\r][\n]" >>>>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "[\r][\n]" >>>>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Barak Obama is the >>>>>> president of USA" >>>>>> [2015-02-10 23:05:21,875] DEBUG - wire << "POST /enhancer >>>>>> HTTP/1.1[\r][\n]" >>>>>> [2015-02-10 23:05:21,876] DEBUG - wire << "Content-Type: text/plain; >>>>>> charset=UTF-8[\r][\n]" >>>>>> [2015-02-10 23:05:21,876] DEBUG - wire << "Accept: >>>>>> application/rdf+xml[\r][\n]" >>>>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Transfer-Encoding: >>>>>> chunked[\r][\n]" >>>>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Host: >>>>>> localhost:8082[\r][\n]" >>>>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Connection: >>>>>> Keep-Alive[\r][\n]" >>>>>> [2015-02-10 23:05:21,878] DEBUG - wire << "User-Agent: >>>>>> Synapse-HttpComponents-NIO[\r][\n]" >>>>>> [2015-02-10 23:05:21,878] DEBUG - wire << "[\r][\n]" >>>>>> [2015-02-10 23:05:21,879] DEBUG - wire << "23[\r][\n]" >>>>>> [2015-02-10 23:05:21,880] DEBUG - wire << "Barak Obama is the >>>>>> president of USA[\r][\n]" >>>>>> [2015-02-10 23:05:21,880] DEBUG - wire << "0[\r][\n]" >>>>>> [2015-02-10 23:05:21,881] DEBUG - wire << "[\r][\n]" >>>>>> [2015-02-10 23:05:26,211] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Date: Tue, 10 Feb 2015 >>>>>> 17:35:21 GMT[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Content-Type: >>>>>> application/rdf+xml[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Transfer-Encoding: >>>>>> chunked[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Server: >>>>>> Jetty(7.x.y-SNAPSHOT)[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "1093[\r][\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "<rdf:RDF[\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> " xmlns:rdf=" >>>>>> http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> " xmlns:j.0=" >>>>>> http://purl.org/dc/terms/"[\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> " xmlns:j.1=" >>>>>> http://fise.iks-project.eu/ontology/" > [\n]" >>>>>> [2015-02-10 23:05:26,212] DEBUG - wire >> " <rdf:Description >>>>>> rdf:about="urn:enhancement-f50e270f-6c52-78a1-96e0-a9a150f42dce">[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:confidence >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.7127498890292797</j.1:confidence>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:end rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#int">35</j.1:end>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:selected-text >>>>>> xml:lang="en">USA</j.1:selected-text>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:selection-context >>>>>> xml:lang="en">Barak Obama is the president of >>>>>> USA</j.1:selection-context>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.1:start >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">32</j.1:start>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.0:created >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:25.820Z</j.0:created>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.0:creator >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.0:creator>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <j.0:type >>>>>> rdf:resource="http://dbpedia.org/ontology/Place"/>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation >>>>>> "/>[\n]" >>>>>> [2015-02-10 23:05:26,213] DEBUG - wire >> " </rdf:Description>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <rdf:Description >>>>>> rdf:about="urn:enhancement-58277280-ed99-10b3-8c5b-81a62ca44824">[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.1:confidence >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.857140049021033</j.1:confidence>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.0:created >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:22.360Z</j.0:created>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.0:creator >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " >>>>>> <j.0:language>en</j.0:language>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.0:type >>>>>> rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation >>>>>> "/>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " </rdf:Description>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <rdf:Description >>>>>> rdf:about="urn:enhancement-1696e861-d643-539f-a3a4-75865c2711e0">[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.1:confidence >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.40536309634989937</j.1:confidence>[\n]" >>>>>> [2015-02-10 23:05:26,214] DEBUG - wire >> " <j.1:end rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#int">11</j.1:end>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.1:selected-text >>>>>> xml:lang="en">Barak Obama</j.1:selected-text>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.1:selection-context >>>>>> xml:lang="en">Barak Obama is the president of >>>>>> USA</j.1:selection-context>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.1:start >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">0</j.1:start>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.0:created >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:24.444Z</j.0:created>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.0:creator >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.0:creator>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <j.0:type >>>>>> rdf:resource="http://dbpedia.org/ontology/Person"/>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation >>>>>> "/>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " </rdf:Description>[\n]" >>>>>> [2015-02-10 23:05:26,215] DEBUG - wire >> " <rdf:Description >>>>>> rdf:about="urn:enhancement-454a72b2-f8d0-0eb5-ff5b-5eae0b442d92">[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <j.1:confidence >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.14285759171764037</j.1:confidence>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <j.0:created >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:22.360Z</j.0:created>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <j.0:creator >>>>>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " >>>>>> <j.0:language>id</j.0:language>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <j.0:type >>>>>> rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " <rdf:type >>>>>> rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation >>>>>> "/>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> " </rdf:Description>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> "</rdf:RDF>[\n]" >>>>>> [2015-02-10 23:05:26,216] DEBUG - wire >> "[\r][\n]" >>>>>> [2015-02-10 23:05:26,217] DEBUG - wire >> "0[\r][\n]" >>>>>> [2015-02-10 23:05:26,218] DEBUG - wire >> "[\r][\n]" >>>>>> [2015-02-10 23:05:26,231] INFO - LogMediator To: >>>>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , >>>>>> SOAPAction: , MessageID: urn:uuid:fa73d40b-5455-4560-b2ae-1934dc61c45c, >>>>>> Direction: response, Envelope: <?xml version='1.0' >>>>>> encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=" >>>>>> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><rdf:RDF >>>>>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:j.1=" >>>>>> http://fise.iks-project.eu/ontology/" xmlns:j.0=" >>>>>> http://purl.org/dc/terms/"> >>>>>> <rdf:Description >>>>>> rdf:about="urn:enhancement-f50e270f-6c52-78a1-96e0-a9a150f42dce"> >>>>>> <j.1:confidence rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.7127498890292797</j.1:confidence> >>>>>> <j.1:end rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">35</j.1:end> >>>>>> <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/> >>>>>> <j.1:selected-text xml:lang="en">USA</j.1:selected-text> >>>>>> <j.1:selection-context xml:lang="en">Barak Obama is the president >>>>>> of USA</j.1:selection-context> >>>>>> <j.1:start rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">32</j.1:start> >>>>>> <j.0:created rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:25.820Z</j.0:created> >>>>>> <j.0:creator rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.0:creator> >>>>>> <j.0:type rdf:resource="http://dbpedia.org/ontology/Place"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/Enhancement"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/TextAnnotation"/> >>>>>> </rdf:Description> >>>>>> <rdf:Description >>>>>> rdf:about="urn:enhancement-58277280-ed99-10b3-8c5b-81a62ca44824"> >>>>>> <j.1:confidence rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.857140049021033</j.1:confidence> >>>>>> <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/> >>>>>> <j.0:created rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:22.360Z</j.0:created> >>>>>> <j.0:creator rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator> >>>>>> <j.0:language>en</j.0:language> >>>>>> <j.0:type rdf:resource="http://purl.org/dc/terms/LinguisticSystem >>>>>> "/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/Enhancement"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/TextAnnotation"/> >>>>>> </rdf:Description> >>>>>> <rdf:Description >>>>>> rdf:about="urn:enhancement-1696e861-d643-539f-a3a4-75865c2711e0"> >>>>>> <j.1:confidence rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.40536309634989937</j.1:confidence> >>>>>> <j.1:end rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">11</j.1:end> >>>>>> <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/> >>>>>> <j.1:selected-text xml:lang="en">Barak Obama</j.1:selected-text> >>>>>> <j.1:selection-context xml:lang="en">Barak Obama is the president >>>>>> of USA</j.1:selection-context> >>>>>> <j.1:start rdf:datatype="http://www.w3.org/2001/XMLSchema#int >>>>>> ">0</j.1:start> >>>>>> <j.0:created rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:24.444Z</j.0:created> >>>>>> <j.0:creator rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.0:creator> >>>>>> <j.0:type rdf:resource="http://dbpedia.org/ontology/Person"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/Enhancement"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/TextAnnotation"/> >>>>>> </rdf:Description> >>>>>> <rdf:Description >>>>>> rdf:about="urn:enhancement-454a72b2-f8d0-0eb5-ff5b-5eae0b442d92"> >>>>>> <j.1:confidence rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#double >>>>>> ">0.14285759171764037</j.1:confidence> >>>>>> <j.1:extracted-from >>>>>> rdf:resource="urn:content-item-sha1-6f8a2fe9f9b83c97853ef463df229f4664f52798"/> >>>>>> <j.0:created rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#dateTime >>>>>> ">2015-02-10T17:35:22.360Z</j.0:created> >>>>>> <j.0:creator rdf:datatype=" >>>>>> http://www.w3.org/2001/XMLSchema#string >>>>>> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.0:creator> >>>>>> <j.0:language>id</j.0:language> >>>>>> <j.0:type rdf:resource="http://purl.org/dc/terms/LinguisticSystem >>>>>> "/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/Enhancement"/> >>>>>> <rdf:type rdf:resource=" >>>>>> http://fise.iks-project.eu/ontology/TextAnnotation"/> >>>>>> </rdf:Description> >>>>>> </rdf:RDF></soapenv:Body></soapenv:Envelope> >>>>>> [2015-02-10 23:05:26,276] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]" >>>>>> [2015-02-10 23:05:26,276] DEBUG - wire << "Content-Type: text/plain; >>>>>> charset=UTF-8[\r][\n]" >>>>>> [2015-02-10 23:05:26,276] DEBUG - wire << "Server: >>>>>> Jetty(7.x.y-SNAPSHOT)[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "Date: Tue, 10 Feb 2015 >>>>>> 17:35:26 GMT[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "Transfer-Encoding: >>>>>> chunked[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "Connection: >>>>>> keep-alive[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "0[\r][\n]" >>>>>> [2015-02-10 23:05:26,277] DEBUG - wire << "[\r][\n]" >>>>>> >>>>>> >>>>>> On Tue, Feb 10, 2015 at 8:33 PM, Dileepa Jayakody < >>>>>> dileepajayak...@gmail.com> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I'm using WSO2 4.5.1 ESB in my project to balance load to my BE >>>>>>> server nodes. >>>>>>> I created a pass through proxy service calling a Load Balance >>>>>>> Endpoint to handle the request load by 2 BE nodes in a round-robin >>>>>>> manner. >>>>>>> >>>>>>> When I call the proxy service, although the expected BE response >>>>>>> comes to the out-sequence of my proxy service, only the HTTP response >>>>>>> header is sent back to the client. >>>>>>> LogMediator logs the full response from the BE, so the expected >>>>>>> response comes to the ESB, but the client only receives the HTTP >>>>>>> response >>>>>>> header from the proxy-service. >>>>>>> When I enable wire log I can see that only the response header is >>>>>>> sent to the client as below; >>>>>>> >>>>>>> [2015-02-10 18:29:36,101] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]" >>>>>>> [2015-02-10 18:29:36,101] DEBUG - wire << "Content-Type: text/plain; >>>>>>> charset=UTF-8[\r][\n]" >>>>>>> [2015-02-10 18:29:36,102] DEBUG - wire << "Server: >>>>>>> Jetty(7.x.y-SNAPSHOT)[\r][\n]" >>>>>>> [2015-02-10 18:29:36,102] DEBUG - wire << "Date: Tue, 10 Feb 2015 >>>>>>> 12:59:36 GMT[\r][\n]" >>>>>>> [2015-02-10 18:29:36,102] DEBUG - wire << "Transfer-Encoding: >>>>>>> chunked[\r][\n]" >>>>>>> [2015-02-10 18:29:36,102] DEBUG - wire << "[\r][\n]" >>>>>>> [2015-02-10 18:29:36,103] DEBUG - wire << "0[\r][\n]" >>>>>>> [2015-02-10 18:29:36,103] DEBUG - wire << "[\r][\n]" >>>>>>> >>>>>>> >>>>>>> Following is my proxy service configuration; >>>>>>> >>>>>>> <proxy name="MyProxy" >>>>>>> transports="local https http" >>>>>>> startOnLoad="true" >>>>>>> trace="disable"> >>>>>>> <target endpoint="lbendpoint"> >>>>>>> <outSequence> >>>>>>> <log level="full"/> >>>>>>> <send/> >>>>>>> </outSequence> >>>>>>> </target> >>>>>>> </proxy> >>>>>>> >>>>>>> <endpoint name="lbendpoint"> >>>>>>> <loadbalance >>>>>>> algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> >>>>>>> <endpoint name="s1"> >>>>>>> <address uri="http://localhost:8080/enhancer"/> >>>>>>> </endpoint> >>>>>>> <endpoint name="s2"> >>>>>>> <address uri="http://localhost:8082/enhancer"/> >>>>>>> </endpoint> >>>>>>> </loadbalance> >>>>>>> </endpoint> >>>>>>> >>>>>>> Can anyone help me figure out what might be going wrong here? >>>>>>> >>>>>>> Thanks, >>>>>>> Dileepa >>>>>>> >>>>>>> [1] https://docs.wso2.com/display/ESB490/Load-balance+Endpoint >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *Ruwan Abeykoon* >>>>> *Architect,* >>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> * >>>>> *lean.enterprise.middleware.* >>>>> >>>>> email: ruw...@wso2.com >>>>> phone:(+94) 777739736 >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> *Ruwan Abeykoon* >>> *Architect,* >>> *WSO2, Inc. http://wso2.com <http://wso2.com/> * >>> *lean.enterprise.middleware.* >>> >>> email: ruw...@wso2.com >>> phone:(+94) 777739736 >>> >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Isuru Udana* > Senior > *Software Engineer* > WSO2 Inc.; http://wso2.com > email: isu...@wso2.com cell: +94 77 3791887 > blog: http://mytecheye.blogspot.com/ > twitter: http://twitter.com/isudana >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev