Skip to content Skip to sidebar Skip to footer

Getting An Ajax Response In Java From A Web Method (java.io.filenotfoundexception)

Don't know how to explain it better but i'm trying to get a response from an URL containing a function (right?). I'm working on this for a lot of hours and progressing a little eve

Solution 1:

Sadly, it used to be (and probably still is) that the HttpURLConnection throws a FileNotFoundException when you get a 404 error. When you are doing the getInputStream() that's when it's first connecting, so any error from the server will show up there.

Get Wireshark or something if you want to see what's really going on in HTTP land as you make the request.

Post a Comment for "Getting An Ajax Response In Java From A Web Method (java.io.filenotfoundexception)"