• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
reply
    Bookmark Topic Watch Topic
  • New Topic