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 <[email protected]
> 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
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to