Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting http 500 error with null pointer exception

 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
Firefox Browser Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which command caused it? Debug it.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies dear..

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

Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic