Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

505 Error from tomcat 4.1.3

 
Apu Shah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a war file. I have 2 versions of tomcat - 4.0.6 and 4.1.3. Same war file works fine in 4.0.6 but does not work in 4.1.3. My application is an applet-servlet application. I see the following error in the Java console. I do not see anything going to the server logs.

java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8480/myApp/servlet/DispatcherServlet?key=abc&data=FFFFFFFFFF|<All>

- I tried to remove the '<All>' in the request and every thing works fine.
Does anyone know what the problem could be?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
505 is for "HTTP version not supported"
so I am guessing it does not like the < and or > characters in the URL.
You could escape them using java.net.URLEncoder
Bill
 
Apu Shah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will try that.
thanks.
 
Apu Shah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works.
thanks a lot.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic