This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Getting http 500 error with null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Getting http 500 error with null pointer exception" Watch "Getting http 500 error with null pointer exception" New topic
Author

Getting http 500 error with null pointer exception

dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53

hello,

I have checked my code many time to make sure that whether page contains any variable or object with null reference but i dint find anything wrong..
I am integrating payment gateway to my website. Payment process going good but after payment transferred
ccavenue (which is payment gateway) it returns to redirecturl.jsp page but here i am getting http 500 error with null pointer exception.
Please help me to solve out this problem.
Thanks in advance.


Kathleen Angeles
Ranch Hand

Joined: Aug 06, 2012
Posts: 122

Which command caused it? Debug it.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Since JSP is converted to the Java code for a servlet, the stack trace for your NPE will only make sense if you look at the corresponding servlet code.

Flailing around in the JSP code will not help. Find out where your server stores the servlet code and get the stack trace from the logs. If you are using tomcat, the "work" and "logs" directories are the place to start.

Bill
dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53

Thanks for your replies dear..

I solved the problem actually there was problem in coding some thing missing..
Now it works fine..

Thanks again.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting http 500 error with null pointer exception