Meaningless Drivel is fun!
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

Servlet chaining

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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){
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

Joined: Dec 14, 1998
Posts: 20965

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
I agree. Here's the link:
subject: Servlet chaining
It's not a secret anymore!