• 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

HTTP 500 - Internal server error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am working with a java program which looks for file(s) in a given directory whose name(s) starts with a specific string and lists them on the webpage provided links to the same. I have written the following method to fulfill this.


The above code works fine with Firefox browser. But when I run the same in IE 6.0 browser, an HTTP 500 Internal Server Error was encountered. If we include the output.println line commented just above the if loop, it works fine in IE 6.0 too.

I have gone through the code many times but couldn't find any problem. Did anyone of you ever faced the same kind of problem. If so can you please share your experience with me about how you solved the problem.

Thank You
[ December 22, 2008: Message edited by: Rao Daggumalli ]
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Studentone", I think you missed our naming policy. It's one of the few rules we have, so please follow it. While you're at it, you may want to read How To Ask Questions On JavaRanch as well.

Thank you,

Rob
 
Rao Daggumalli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did anyone faced same kind of issue (mentioned in my first post)?

Thanks
 
Rob Spoor
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you'll have some more success in the Servlet forum.
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in fact, let's try the servlets forum...
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An HTTP 500 error in a JSP/Servlet environment means that there's an exception been thrown in your code. The web container can't handle the request anymore.

You can find the exception and the stacktrace in the application server logs. Once found that, just fix the code accordingly.
 
Rao Daggumalli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bauke Scholtz,

Thanks for looking into it. I have somehow managed to solve this problem by changing the HTTP status code sent in the response header of the error page to HTTP 200

Source: http://narencoolgeek.blogspot.com/2007/04/show-friendly-http-error-messages-in-ie.html

I was not sure how the impact will be for this act.

Please let me know if this solution is appropriate or not.

Thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I repeat: read the appserver logs.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic