Jump to content
xisto Community
Sign in to follow this  

Server Returned Http Response Code: 500 & Xpathevaluator Problem.. I Need Help

Recommended Posts

i have this applet that communicates with a servlet.. when the applet connects to the servlet, i get the Server returned HTTP response code: 500 error.. when i am testing in my own pc, everything is fine.. when i tried deploying it in a server, the error occurs.. i do not have any idea what is wrong..

i get the error in this line in my applet:

inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
this is the method that conatins the line above:
protected String myMethod(String fileName) {		 String doc = null;		 ObjectInputStream inputFromServlet = null; 		 try {			 URL loadMapServlet = new URL(this.getCodeBase(), "loadMap?action=load&fileName=" + this.getCodeBase().toString() + fileName);			 URLConnection servletConnection = loadMapServlet.openConnection();			 inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());			 doc = (String)inputFromServlet.readObject();			 inputFromServlet.close();		 }		 catch (Exception e) {			 e.printStackTrace();		 }		 return doc;	 }

another thing.. i have read that jdk 1.5 has a bug with Server returned HTTP response code: 500... is there any workarounds?

i have also read that jdk 1.5 has issues with the XPathEvaluator.. if i want to use this, how do i add the newer xalan and xerces jars?
Edited by hardc0d3r (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.