tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norris Shelton <norrisshel...@yahoo.com>
Subject RE: TC 5.0.19/W2KPro - Cross Context will not work
Date Sat, 03 Apr 2004 05:35:57 GMT
java.lang.NullPointerException
com.appriss.prototype.cross_context.test.ContextReceiverServlet.doGet(ContextReceiverServlet.java:18)
        if (request != null) {
#18->       HttpSession session = request.getSession(true);
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.appriss.prototype.cross_context.ContextSenderServlet.doPost(ContextSenderServlet.java:31)
   -> Entire contents of doPost()
        ServletContext myContext = getServletContext();
        RequestDispatcher dispatcher =
getServletContext().getContext("/second_webapp").getRequestDispatcher("/backdoor.jsp");
        System.out.println("Dispatcher=" + dispatcher);
#31->   dispatcher.forward(request, response);

com.appriss.prototype.cross_context.ContextSenderServlet.doGet(ContextSenderServlet.java:75)
   -> Entire contents of doGet()
#75->   doPost(request, response);

javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Any help you can give will be most helpful.

--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:
> 
> Hi,
> 
> >if (request != null) {
> >     HttpSession session = request.getSession(true);  <-- NPE
> 
> The stack trace points to this line as the NPE line?  Are you
> sure?  Can
> you post the stack trace?
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential
> business communication, and may contain information that is
> confidential, proprietary and/or privileged.  This e-mail is
> intended only for the individual(s) to whom it is addressed,
> and may not be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended recipient,
> please immediately delete this e-mail from your computer
> system and notify the sender.  Thank you.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


=====

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message