• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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)
 
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


 
That new kid is a freak. Show him this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic