I employe application.log("debug:"+message) method along with JBuilder4's
debugger....
if you can't find the bug then, may as well go back to ASP.

I've even found bugs in Tomcat using this technique.....it's very thorough.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Geert Van Damme
Sent: Friday, March 30, 2001 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: How to Efficiently Debug JSP ?


IMO the best solution is to use System.out.println() debug messages. Of
course, you need a way to get those messages to your workstation.
Either test and debug locally, or try my solution that I described in Wrox
Professional J2EE.

At first sight, I think you just failed to get a connection to the Oracle
database. Try putting an
if (conn == null) { test before you create the preparedstatement.

BTW, why are you using javawebserver?

Geert Van Damme


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of ganesh
> Sent: vrijdag 30 maart 2001 15:48
> To: [EMAIL PROTECTED]
> Subject: How to Efficiently Debug JSP ?
>
>
> Hi all .....
>
> Debugging JSP proves to be not all that easy.
> Could anyone suggest me some good debugging measures to rectify
> the errors ..I get...
>
> I do not have JBuilder Enterprise / IBM's new Visual Age which
> I've heard providing
> some good debugging measures.What I use is....the Javawebserver.
>
> Could anyone tell me.... When you get errors like .........
>
> Error during JSP page processing
>
> java.lang.NullPointerException
>  at oracle.jdbc.driver.OracleStatement.prepare_for_new_get(Compiled Code)
>  at oracle.jdbc.driver.OracleStatement.getStringValue(Compiled Code)
>  at oracle.jdbc.driver.OracleResultSet.getString(Compiled Code)
>  at oracle.jdbc.driver.OracleResultSet.getString(Compiled Code)
>  at rat.manager.SelectValueManager.(Compiled Code)
>  at rat.manager.SelectValueManager.getValueDescription(Compiled Code)
> .
> .
> .
> . etc...etc....HOW ON EARTH to debug these ???
>
> In ASP... you can do a simple Response.write( ) and find it out
> pretty easily...
> Are there any similar measures in JSP ?
>
> Thanx &  regards....
> Ganesh.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to