<div dir="ltr">You may want to consider running apiman locally on your development machine when doing debugging/reproducer work. This particular issue should be simple to reproduce locally, I should think.</div><div class="gmail_extra"><br><div class="gmail_quote">On 16 February 2017 at 11:14, Balu S <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Marc. yes it is Servlet/Wildfly setup.<div><br></div><div>The problem with my setup is am behind proxy so using the overlay zip (on top of local wildfly installtion) generated from outside machine. So cannot build the apiman sources from within eclipse. I shall try.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 12:05 PM, Marc Savy <span dir="ltr">&lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>With regards to debugging:</div><div><br></div>I assume you are using the Servlet/WAR gateway with WildFly?<div><br></div><div>If so, I suggest you consult the WF debugging guides -- but, in short, you can start up the application server with --debug and connect to it remotely from  your debugger (e.g. Eclipse, IntelliJ, etc).</div><div><br></div><div><a href="https://tools.jboss.org/blog/2015-03-17-debugging-an-externally-launched-wildfly.html" target="_blank">https://tools.jboss.org/blog/2<wbr>015-03-17-debugging-an-externa<wbr>lly-launched-wildfly.html</a><br></div><div><br></div><div>Regards,</div><div>Marc</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_8319312794990226041h5">On 16 February 2017 at 10:34, Balu S <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_8319312794990226041h5"><div dir="ltr">Hello,<div>I have found that if the HTTPConnector times out without receiving the response from the backend API, then somewhere down the line it generates 2 error responses and this is evident from the metrics as it show 2 failures as supposed to 1 failure for the single request.</div><div><br></div><div>So there are 2 issues, </div><div>  - firstly the returned error response contains 2 error XMLs appended to each other and sent to the browser and hence not a valid XML.</div><div>  - The metrics also shows as 2 failure response for single request.</div><div><br></div><div><img name="m_8319312794990226041_m_-796116553399618792_m_7785378196770729533_null" title="pastedImage.png" src="https://mail.wipo.int/owa/service.svc/s/GetFileAttachment?id=AAMkADM0NWI2NzU5LTk1MjMtNDdmNy04N2E0LWMxNDUzNjJmOWYzZgBGAAAAAACGMRzSgcjFSZ7RHaFCbPpvBwAWk5JFQ9ftSr3fzRzKsAKIAApDCM7FAACU0JDehfk3Ta9vjs7HqL0AAALCdmloAAABEgAQANmupROhSVBKhVuwZgwRs8U%3D&amp;amp;X-OWA-CANARY=RKNZUHXC5k-XJla7hMxOJWa2dgVXVtQIXuAe-JMhmJvrtMAQZfqMzEdYCOlIDnIxxonBze2dqo8." width="585.6" height="267.06266804550154" style="color:rgb(51,102,255);font-family:tahoma,geneva,sans-serif;font-size:13.3333px"><span style="color:rgb(51,102,255);font-family:tahoma,geneva,sans-serif;font-size:13.3333px">​</span><br></div><div>I have been looking the sources but without the way to debug within running application, it quite hard to follow the flow.</div><div><br></div><div>This can be easily simulated with setting very low timeouts (2 secs for ex) in apiman.properties.</div><div><br></div><div><div>apiman-gateway.connector-facto<wbr>ry.http.timeouts.read=2</div><div>apiman-gateway.connector-facto<wbr>ry.http.timeouts.write=2</div></div><div><br></div><div>Could you please look at the issue and also If you could guide me how to setup debugging environment, then I can try to fix that as well.</div><div><br></div><div>regards</div><span class="m_8319312794990226041m_-796116553399618792HOEnZb"><font color="#888888"><div>Balu</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>