You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Milan Cvejic <m....@inbox-online.com> on 2008/06/25 16:28:50 UTC
NullPointerExceptions - ReplicationValve problem...
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.
--
Milan Cvejić
Sistem Administrator
Inbox d.o.o.
Software for Internet
Bulevar AVNOJa 99, 11000 Beograd, Srbija
tel +381 11 313 07 21
fax +381 11 313 37 34
m.cvejic@inbox-online.com
www.inbox-online.com
---------------------------------------------------------------------
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
Re: NullPointerExceptions - ReplicationValve problem...
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
then I would leave it running without a filter, the difference is
negligible, so that way you run error free
Filip
Milan Cvejic wrote:
> Unfortunately i don't have test case... Can you suggest me some way so
> i can
> make test case, and give results back to you.
>
> Interesting thing is that if filter parameter is empty for example:
> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter="" />
>
> i don't get any exceptions. In any other case null pointer exceptions
> occur.
>
> Filip Hanik - Dev Lists wrote:
>> 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
>>
>>
>
>
---------------------------------------------------------------------
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
Re: NullPointerExceptions - ReplicationValve problem...
Posted by Milan Cvejic <m....@inbox-online.com>.
Unfortunately i don't have test case... Can you suggest me some way so i can
make test case, and give results back to you.
Interesting thing is that if filter parameter is empty for example:
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="" />
i don't get any exceptions. In any other case null pointer exceptions occur.
Filip Hanik - Dev Lists wrote:
> 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
>
>
--
Milan Cvejić
Sistem Administrator
Inbox d.o.o.
Software for Internet
Bulevar AVNOJa 99, 11000 Beograd, Srbija
tel +381 11 313 07 21
fax +381 11 313 37 34
m.cvejic@inbox-online.com
www.inbox-online.com
---------------------------------------------------------------------
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
Re: NullPointerExceptions - ReplicationValve problem...
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
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
Re: NullPointerExceptions - ReplicationValve problem...
Posted by Milan Cvejic <m....@inbox-online.com>.
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
>
>
--
Milan Cvejić
Sistem Administrator
Inbox d.o.o.
Software for Internet
Bulevar AVNOJa 99, 11000 Beograd, Srbija
tel +381 11 313 07 21
fax +381 11 313 37 34
m.cvejic@inbox-online.com
www.inbox-online.com
---------------------------------------------------------------------
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
Re: NullPointerExceptions - ReplicationValve problem...
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
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