tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: NullPointerExceptions - ReplicationValve problem...
Date Wed, 25 Jun 2008 18:26:54 GMT
it happens on the line ReplicationValve.java

348 : 	  	  	Manager manager = request.getContext().getManager();


probably getContext() returns null,
do you have a simple test case how this is happening?

Filip

Milan Cvejic wrote:
> I am using 6.0.14 version of tomcat. And jdk 1.6 update 4. Any 
> suggestions ?
>
> Thanks.
>
> Filip Hanik - Dev Lists wrote:
>> what version of tomcat 6 are you using?
>>
>> Filip
>>
>> Milan Cvejic wrote:
>>> Hello,
>>> i am getting null pointer exceptions when i add the following line 
>>> in server.xml
>>>
>>> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" 
>>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;" 
>>> />
>>>
>>> if i remove that line everything is working fine... but load is 
>>> increased...
>>>
>>> here is part from catalina.out
>>>
>>> 23-Jun-2008 17:04:39 org.apache.catalina.connector.CoyoteAdapter 
>>> service
>>> SEVERE: An exception or error occurred in the container during the 
>>> request processing
>>> java.lang.NullPointerException
>>> at 
>>> org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:348)

>>>
>>> at 
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) 
>>>
>>> at 
>>> org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
>>> at 
>>> org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:394)

>>>
>>> at 
>>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508) 
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>>
>>> Thanks for any help.
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message