• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet cannot be found if one parameter is too long

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my application a jsp A interact post some parameters(a form) to Servlet B. Normally B's doPost method can handle it properly. However, when one of the parameter from A to B becomes longer(eg. 2000 characters), an crazy error occurs: "The page cannot be displayed".
I did some tests regarding this problem. It seems that
1. If A sends the form to a jsp page C, C can receive it and display the parameters correctly.
2. Even if after I rewrite the content inside B's doPost method to be empty, B still cannot be found by the server.
3. I hosted the application in 2 different PCs. I got the same errorfrom both of them.

Does anyone encounter this kind of thing before? what might be the solution?
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you getting the thing inside doPost() method of servlet B?
How do you come to know that the servlet can not be found?
What error are you getting other than "The page can not be displayed"?

However, "The page can not be displayed" doesn't mean that your servlet can't be found.
 
Baijun Jiang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. It is simply a DNS error. After I right click and then select property. The url shown is res://C:\WINNT\system32\shdoclc.dll/dnserror.htm#http://localhost/CAAS-test/servlet/detailFunction
Therefore I conclude that the servlet cannot be found.

This error does not relate to any content written by me in the servlet, coz in one of my test the doPost method is empty but I still get the same problem.
[ December 22, 2005: Message edited by: Baijun Jiang ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which servlet container you are using?
Any other apps are running or not?
 
Baijun Jiang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course... I use a tomcat server.
and Yes, I have many applications running in the same server.But I do not think it is a problem coz I also tested the application in a server which has no other app running on it.
reply
    Bookmark Topic Watch Topic
  • New Topic