Re: Servlet can't communicate with 'Database made using XML' !
From: Christophe Vanfleteren (c.v4nfl3t3r3n_at_pandora.be)
Date: 01/26/04
- Next message: Andy: "No results returned with JDBC query using UNION and DUAL"
- Previous message: Daniel Morgan: "Re: choices regarding where to place code - in the database or middletier"
- In reply to: Abhishek Agrawal: "Servlet can't communicate with 'Database made using XML' !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 10:14:25 GMT
Abhishek Agrawal wrote:
> 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>>>>>>>>>
Please don't use all caps. It makes you look rude.
Anyway, you'll need to show us your code + xml file, otherwise noone here
will be able to tell what you're doing wrong.
Have you tried parsing the xml file in an ordinary class? If you can get it
to work there, then you might try in a servlet. This method will be faster
to try/debug.
-- Kind regards, Christophe Vanfleteren
- Next message: Andy: "No results returned with JDBC query using UNION and DUAL"
- Previous message: Daniel Morgan: "Re: choices regarding where to place code - in the database or middletier"
- In reply to: Abhishek Agrawal: "Servlet can't communicate with 'Database made using XML' !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|