Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

server returned response code 500 for the url

888525Sep 30 2011 — edited Sep 30 2011
I have an applet which connects to a servlet.I have just upgraded from Java 1.5_06 to Java 1.6_027.
I have a login.html which opens up when i hit the url http://localhost:80/test/testlogin.html.
The IIS 7 opens this page and then when I provide login credentials it should connect to the testServlet but I get
an IOException at the line
ObjectOutputStream out = new ObjectOutputStream(conn.getOutputStream());

saying 'Server returned code 500 for the url http://localhost:80/test/testServlet.class

I am using the following lines of code

conn = servletURL.openConnection();
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/octet-stream");
ObjectOutputStream out = new ObjectOutputStream(conn.getOutputStream());
This code use to work fine with Java 1.5 but it doesnt work after the upgrade.
I am not sure if it is a Java problem or IIS or Weblogic.
Please help
Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2011
Added on Sep 30 2011
3 comments
269 views