• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Connection failure with 500

 
N SRao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When i am trying to establish connection from applet to servlet using URLConnection..
It is giving me java.io.ioexception Connection failure with 500.
Can anybody let me know why and how to solve this.
Thanks&Regards,
Subba
 
Rama Raghavan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There could be a few things causing that error:
1. Is the URL to your servlet correct ?
2. Generally 500 error means that your servlet is failing. Check for messages on your servlet container logs.
 
James Snook
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are writing to a ServletOutputStream, make sure you close that stream when you're finished writing. Otherwise, you will get a 500 under WebSphere (though, strangely, Tomcat and WebLogic handle the unclosed stream fine).
- James
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!