wood burning stoves 2.0*
The moose likes Servlets and the fly likes Servlet chaining Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet chaining" Watch "Servlet chaining" New topic
Author

Servlet chaining

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
I have a problem with servlet chaining.i have 2 servlets -Utilities and TallCoin.the TallCoin servlet calls the Utilities servlet.I am using Jbuilder.The code is as follows:
public classTallCoin extends HttpServlet{
public synchronized void init(servletConfig config){
try{
super.init(config);
}
catch(ServletException se){
System.out.println("Couldn't access superclass init");
}
when i run ,i am getting an error:init config parameter is null.
can anyone tell me under what conditions this NullPointer exception is thrown?
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20494
    ∞

I do a lot of servlet chaining and I found out the hard way that if you are using Apache and JRun, you can't have one servlet call another servlet in the same vm. It locks up apache. But if you have one servlet call another servlet on another vm, everything is fine.
This probably doesn't help you at all, but I thought I would toss it out there anyway.
Looking at your question: Do you need config?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet chaining
 
Similar Threads
when does a servlet clas get servletness ?
Unable to get init parameters in servlet
Why does it die after init()?
No servlet maps to URL
init(ServletConfig config) query