File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes FileNotFoundException Response 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "FileNotFoundException Response 500" Watch "FileNotFoundException Response 500" New topic
Author

FileNotFoundException Response 500

bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
Hello Ranchers,

I try to invoke a web service using HttpURLConnection. I get the following error while reading back the response:

java.io.FileNotFoundException: Response: '500' for url

Code snippet:



Please help me in resolving this soooon...

Thanks in advance..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
In which line of code does this happen?


Android appsImageJ pluginsJava web charts
bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
The error was coming while trying to get input stream from the connection.

I found out the reason for the error. The SOAP action was not being set properly though the statement was



After setting this properly, I got the response.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: FileNotFoundException Response 500
 
Similar Threads
Servlet call another context
Invoking webservice- Server returned HTTP response code: 500
how to wait my class for the servlet response
java.io.IOException: Server returned HTTP response code: 400
Issue with sending xml jaxb object to servlet body