wood burning stoves 2.0*
The moose likes Applets and the fly likes java.io.IOException: Server returned HTTP response code:500 for URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "java.io.IOException: Server returned HTTP response code:500 for URL" Watch "java.io.IOException: Server returned HTTP response code:500 for URL" New topic
Author

java.io.IOException: Server returned HTTP response code:500 for URL

parveen jamdagni
Greenhorn

Joined: Dec 10, 2007
Posts: 6
I have an Applet which is communicating to the servlet well.
I converted Applet to JApplet(Swing Components) then I am getting a problem

java.io.IOException: Server returned HTTP response code:500 for URL
http://localhost:8081/pkj/servlet/pkj22.ourwork.objectiveServlet?opcode=init&procid=131
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at pkj22.ourwork.ObjectTransmit.readObject(ObjectTransmit.java :33)
at pkj22.ourwork.WfApplet12.initUI(wfApplet12.java :892)
at pkj22.ourwork.WfApplet12.init(wfApplet12.java :172)
at sun. applet.AppletPanel.sun(Unknown Source)
at java.lang.Thread.run(Unknown Source)
michael samaras
Greenhorn

Joined: Jan 06, 2009
Posts: 2
Well 500 means you are getting an error when you run the web page. You need to figure out what the real error is.

Make sure the web page url you are running is dumping to a log you can review.

Also, is it expecting any form or querystring variables that you are not sending? Possibly its bombing because its checking servervariables that are not sent unless you modify the outgoing stream to pass them.

This is common and should be an easy one to resolve.
parveen jamdagni
Greenhorn

Joined: Dec 10, 2007
Posts: 6
parveen jamdagni wrote:I have an Applet which is communicating to the servlet well.
I converted Applet to JApplet(Swing Components) then I am getting a problem

java.io.IOException: Server returned HTTP response code:500 for URL
http://localhost:8081/pkj/servlet/pkj22.ourwork.objectiveServlet?opcode=init&procid=131
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at pkj22.ourwork.ObjectTransmit.readObject(ObjectTransmit.java :33)
at pkj22.ourwork.WfApplet12.initUI(wfApplet12.java :892)
at pkj22.ourwork.WfApplet12.init(wfApplet12.java :172)
at sun. applet.AppletPanel.sun(Unknown Source)
at java.lang.Thread.run(Unknown Source)





I am also checked my log file which had the entries like this
SEVERE:invoker: cannot allocate servlet instance for path /pkj/servlet/pkj22.ourwork.objectiveServlet
javax.servlet.ServletException Erroe instantiating servlet class pkj22.ourwork.objectiveServlet
--------------------------------------------
--------------------------------------------
--------------------------------------------

caused by : java.lang.VerifyError class pkj22/ourwork/objectiveServlet, method: sendNodes Signature I) Ljava/util/Vector Incompatible argument to function.


Parveen Kumar


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.IOException: Server returned HTTP response code:500 for URL
 
Similar Threads
HTTP response code : 500 for URL : http://...etc...
Applet only works with one Java version
Servlet configuration
Applet not loading due to IOException
what does this error mean??