• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Getting http 500 error with null pointer exception

 
Ranch Hand
Posts: 53
Eclipse IDE MySQL Database Java
  • 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.


 
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.
 
Author and all-around good cowpoke
Posts: 13078
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 MySQL Database Java
  • 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.
 
Don't touch me. And dont' touch this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!