Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
parveen jamdagni
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic