File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes java.io.IOException: Server returned HTTP response code: 505 for URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "java.io.IOException: Server returned HTTP response code: 505 for URL" Watch "java.io.IOException: Server returned HTTP response code: 505 for URL" New topic
Author

java.io.IOException: Server returned HTTP response code: 505 for URL

Kannan Somaiah
Ranch Hand

Joined: Jun 06, 2006
Posts: 33
Hi,

I am working in a struts application. I am working on a screen which has several sections. Each sections correspond to a .do and I am using <c:import> to call each .do to load the individual sections inside the JSP.

I am getting the below error:

[#|2007-12-13T05:18:29.413-0700|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=13;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.io.IOException: Server returned HTTP response code: 505 for URL: http://eng-reports-uat.central/reports/metaDataPages.do?actionType=getProjectStakeHolders&appID=APP019&appName=AA&fullName=Availability Appliance


Please let me know how I can solve this problem.

Thanks in advance.

Also let me know if you need more information from me to solve the problem.

Regards,
Somaiah
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The 505 error code stands for "the server does not support or refuses to support the HTTP protocol version used in the request message"



That is pretty weird - if this was my problem I would attempt to capture the entire request - headers and body - with something like TCPMON.

There is a convenient list of response codes in the HttpServletResponse Javadocs.

Bill
Kannan Somaiah
Ranch Hand

Joined: Jun 06, 2006
Posts: 33
Hi William,

Thanks for taking time to answer my question.

Can you please tell me how to capture the entire request?

"if this was my problem I would attempt to capture the entire request - headers and body - with something like TCPMON."

I am not able to understand the above line.

Thanks again.

Regards,
Somaiah
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Recording the complete text of the request/response message cycle is one of the important debugging techniques for servlet/jsp applications. A tool that will let you do this is the open source utility TCPMON. It will let you see exactly what the headers and body of the request contain.

I don't know if it will lead you to the cause of that 505 error message, but it is an important tool to learn in any case.

Bill
Kannan Somaiah
Ranch Hand

Joined: Jun 06, 2006
Posts: 33
Thanks William. I will try and let you know.

Regards,
Somaiah
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.io.IOException: Server returned HTTP response code: 505 for URL
 
Similar Threads
Server returned HTTP response code: 505
How to check whether a JSP is present or not?
RSS App
ksoap2 libray: trying to set up header element of soap envelope
Apache-Tomcat 500 and 503 Errors.