Is there any way to trace a JSP to determine where it's giving me an error. I get a java.lang.NullPointerException, but I have no idea which part of the code is causing it. Is there any statement I can use to trace where the error occurs?
Asked
Active
Viewed 2,109 times
2
-
can you give whole errortrace ? – Hemant Metalia Feb 08 '12 at 10:27
2 Answers
0
-
I'm using it with oracle, plsql, etc. so I don't think that will be possible – Superdooperhero Feb 08 '12 at 10:45
-
using jsp with oracle, plsql? What is your app server to render your jsp? – Jayy Feb 08 '12 at 11:12
0
Look for the corresponding .java file and set a break point in that at the line throwing the NPE.
A JSP gets compiled to a .java file, before being passed to javac for compilation.

npellow
- 1,985
- 1
- 16
- 23
-
The oracle process does not seem to keep the .java files. I can find the .class file but not the .java. So no luck there. – Superdooperhero Feb 08 '12 at 11:01
-
-
Ok - so you need to work out how to ensure that the intermediary .java files are not deleted. This will be setting you can set on the web server. BTW - Apache is not a servlet container. I am not sure what iAS is. – npellow Feb 10 '12 at 07:30