That was a typo in the email, as I am not supposed to give internal URL to public.
Likewise I cannot give the actual configuration. But the scenario is very simple. If you have an endpoint that is pointing to a url which has host and port correct but the throws a 404. The client seems to think that the url to synapse server is wrong. For example address endpoint with "http://test.com:3323/ac-test" in this URL let us say that there is a http server running on dns "test.com", listening on port 3323. But there is no "ac-test" context on that server. Now if there is on another server that is hosting synapse, and has a "TestProxy" configured to listen on port 8888 having a url that looks like "http://test.com:888/soap/TestProxy". The question is "The sequence that is the outSequence for "TestProxy" should be able to handle the 404 from "http://test.com:3323/ac-test" and post more acceptable messages back to its clients?" Instead of throwing exception as : Exception in thread "main" java.io.FileNotFoundException: http://test.com:8888/TestProxy .... What I want to do is to handle that exception or 404 in the outSequence of the TestProxy and change the response to client? Thanks & Regards, Abid -----Original Message----- From: Ruwan Linton [mailto:[email protected]] Sent: Wednesday, September 29, 2010 10:01 PM To: [email protected] Subject: Re: Help needed! Synapse proxy throws FileNotFoundException? Hi Abid, Can you please attach the configuration? You are missing the '//' part on the URL and hence this is not a valid http URL, which could be causing this error. Is that a typo in the email if not that most probably is the issue. Thanks, Ruwan On Thu, Sep 30, 2010 at 5:11 AM, Abid Khan-EXT <[email protected]>wrote: > Hello all, > > I would request if any body had run in this scenario? > > If I have configured one end point wrong say it was supposed to have > address like "http:test.com:3323/abc-test" but I had missed typed it to > look like "http:test.com:3323/ac-test" (please note that alphabet "b" is > missing, this happens > > Now let say there is a synapse proxy running on "http: > test.com:8888/TestProxy" > > When client sends request to this proxy it throws : > > Exception in thread "main" java.io.FileNotFoundException: http: > test.com:8888/TestProxy > > This is misleading because its actually the endpoint configured wrong, I > need help to get this fixed. > > Thanks & Regards, > > Abid Khan > Java Consultant > Jeppesen (Software Product Development) > Desk: 303.328.6554 | Cell: 720.480.3523 > <Promotor of simple solutions, even rocket science can be simplified.> > > > -- Ruwan Linton Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.org Lean . Enterprise . Middleware phone: +1 408 754 7388 ext 51789 email: [email protected]; cell: +94 77 341 3097 blog: http://blog.ruwan.org linkedin: http://www.linkedin.com/in/ruwanlinton google: http://www.google.com/profiles/ruwan.linton tweet: http://twitter.com/ruwanlinton
