Servlet can't communicate with 'Database made using XML' !

From: Abhishek Agrawal (abhiagrawal2003_at_yahoo.co.in)
Date: 01/26/04


Date: 25 Jan 2004 23:38:24 -0800

Iam making an application in which the user logs in by entering
username and password through a Servlet ,

Usernames and passwords are already stored in an XML document on the
server , the Servlet has to just parse the XML document and verify the
username and password

iam using 'Apache Tomcat 4.1.12' and 'JAXP api for XML' processing

THE PROBLEM IS THAT WHILE RUNNING THE SERVLET IT IS THROWING
EXCEPTIONS(NULL POINTER EXCEPTION) THAT IT WAS UNABLE TO PARSE THE XML
FILE !
IT ALSO GIVES 'http-ERROR 500'

PLEASE IF ANY ONE CAN HELP>>>>>>>>>



Relevant Pages

  • request.getParameter always null
    ... I'm using the Apache Commons FileUpload package to upload a file, ... along with some other information such as username. ... send the file and info to a servlet. ... The form section of the JSP: ...
    (comp.lang.java.programmer)
  • Need help: org.xml.sax.SAXParseException
    ... I have a servlet which gets an XML document from a certain URL. ... trying to parse the XML it receives, ... it began to throw Null Pointers instead (and i've just ...
    (comp.lang.java.help)
  • Re: request.getParameter always null
    ... along with some other information such as username. ... send the file and info to a servlet. ... The line didn't throw a "nullpointerexception", it threw a "NullPointerException", am I right? ... in a JSP rather than a servlet. ...
    (comp.lang.java.programmer)
  • Re: Verify Password
    ... My servlet receives the username and password as part of a login ... validate the password I receive against the password for that Linux ... While this does not depend on the way your Linux system stores ...
    (comp.lang.java.security)
  • Re: help in jdbc/jndi/java class
    ... servlet where i create LoginDTO object from username and password. ... the same class i validate the username and password with the system. ... but it returns null value to connection object. ... in the above you're explicitly throwing away any exception ...
    (comp.lang.java.help)