• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error at RequestDispactch..

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to deploy project on www.webappcabaret.com site.
So far it's working fine.I am able to redirect from html to html and html to servlet .But when I do from servlet to html file
getting error as below.
It is giving error at
out.println("Before dispatch"+"<BR>");
RequestDispatcher RD =getServletContext().getRequestDispatcher ("http://www.webappcabaret.com/padmashree/Login.html");
RD.forward(req,res);
out.println("After Dispatch");
it prints Before dispatch and then Error :500

Error: 500
Location: /padmashree/Registration
Internal Servlet Error:
java.lang.NullPointerException
at RegForm.doGet(RegForm.java:123)
at RegForm.doPost(RegForm.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at ngasi.b.a.n.a(Unknown Source)
at ezj.b.e.run(Unknown Source)

you also can check at
http://www.webappcabaret.com/padmashree/RegForm.html
I have not used tomcat and Apache server before.Though it's working fine on my PC (with JRUN).
Thanks
Padmashree

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i can get to a form, without any exceptions!
do you need me to do something there to get the
exception?
Also, if you have a guest accnt setup, pl.
send me the login info so i can try! Not another
accnt again....
regds.
- satya
 
padmshree Patil
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,
My problem solved. I had given absolute path in request dispatch method so it was giving error.
Thanks,
Padmashree
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic