You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Nacho <na...@siapi.es> on 2000/08/26 04:02:33 UTC

ContextManager.service asserts failed

Hola a todos:

It's possible that res parameter reach ContextManager.service with a
value of 400 in his status property????
, in other words the first assertion in the code below ( an excerpt of
fails sometimes ContextManager), is this possible?, I'm getting problems
with some requests not mapped to any context, trying the watchdog on
Tomcat 3.3 i get this 2 assertions failed which seems to be bad but i'm
not sure , 

Any Comments?

Saludos ,
Ignacio J. Ortega



8<--------------------------------------------------------------------
    public void service( Request req, Response res ) {
        if (res.getStatus()>= 400) {
                System.out.println("Why res.getStatus() has a value of
400 before InternalService");
        }
	internalService( req, res );
        if (req.getContext()==null) {
                System.out.println("Assert Failed Context==null
InternalService");
        }
	// clean up
	try {
	    res.finish();
	} catch( Throwable ex ) {
	    handleError( req, res, ex );
	}
	finally {
	    req.recycle();
	    res.recycle();
	}
	return;
    }
8<--------------------------------------------------------------------
Saludos ,
Ignacio J. Ortega