You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ronald Klop <ro...@base.nl> on 2011/01/14 16:27:14 UTC

7.0.6 NPE in cluster syncing

Hi,

Today I upgraded Tomcat from 7.0.5 to 7.0.6. Now I have these errors in de logs.
Jan 14, 2011 4:24:50 PM org.apache.catalina.ha.tcp.ReplicationValve sendReplicationMessage
SEVERE: Unable to perform replication request.
java.lang.NullPointerException
        at org.apache.catalina.ha.tcp.ReplicationValve.isRequestWithoutSessionChange(ReplicationValve.java:554)
        at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:488)
        at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:404)
        at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:349)
        at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:218)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

And I loose my session when the loadbalancer sends me to another server.

Can these happen because I have migrated sessions from 7.0.5 to 7.0.6 while upgrading one node at a time? Or is this a bug in 7.0.6?

Ronald.


Re: 7.0.6 NPE in cluster syncing

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/1/14 Ronald Klop <ro...@base.nl>:
> Hi,
>
> Today I upgraded Tomcat from 7.0.5 to 7.0.6. Now I have these errors in de
> logs.
> Jan 14, 2011 4:24:50 PM org.apache.catalina.ha.tcp.ReplicationValve
> sendReplicationMessage
> SEVERE: Unable to perform replication request.
> java.lang.NullPointerException
>       at
> org.apache.catalina.ha.tcp.ReplicationValve.isRequestWithoutSessionChange(ReplicationValve.java:554)

Yes, it is a bug. I fixed it,
https://issues.apache.org/bugzilla/show_bug.cgi?id=50591

Note, that ReplicationValve has changed in 7.0.6 (compared to 7.0.5
and 6.0.x) and the filter attribute now accepts a single regexp. The
';' is no more treated as separator in the value of "filter" attribute
of ReplicationValve. Use '|' instead.

This bug was a regression from implementing this new "single regexp" feature.

Best regards,
Konstantin Kolinko

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