Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD6CA4E50 for ; Tue, 21 Jun 2011 19:30:23 +0000 (UTC) Received: (qmail 15325 invoked by uid 500); 21 Jun 2011 19:30:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15283 invoked by uid 500); 21 Jun 2011 19:30:20 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 15274 invoked by uid 99); 21 Jun 2011 19:30:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 19:30:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of janos.lobb@yale.edu designates 130.132.50.143 as permitted sender) Received: from [130.132.50.143] (HELO vm-emlprdomr-02.its.yale.edu) (130.132.50.143) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 19:30:12 +0000 Received: from bml0041.yalepath.org ([204.90.81.3]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5LJToxR023144 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 21 Jun 2011 15:29:51 -0400 From: =?iso-8859-1?Q?J=E1nos_L=F6bb?= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [cluster] ConcurrentModificationException Date: Tue, 21 Jun 2011 15:29:49 -0400 Message-Id: To: Tomcat Users List Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 Hi, It is OSX 10.6.7, java 1.6.0_24, tomcat 7.0.14, jk 1.2.31, apache = 2.2.19. It is a one machine with two tomcat instances setup. I am = trying to do session replication testing with the examples webapp. When = I shut down one of the tomcat instances I receive this in the log of = that instance: INFO: Stopping service Catalina Jun 21, 2011 2:49:12 PM = org.apache.catalina.ha.session.JvmRouteBinderValve stopInternal INFO: JvmRouteBinderValve stopped Jun 21, 2011 2:49:12 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Jun 21, 2011 2:49:12 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Jun 21, 2011 2:49:12 PM = org.apache.catalina.tribes.transport.nio.NioReceiver stopListening SEVERE: Unable to close cluster receiver selector. java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) at java.util.HashMap$KeyIterator.next(HashMap.java:828) at = java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)= at = org.apache.catalina.tribes.transport.nio.NioReceiver.closeSelector(NioRece= iver.java:372) at = org.apache.catalina.tribes.transport.nio.NioReceiver.stopListening(NioRece= iver.java:355) at = org.apache.catalina.tribes.transport.nio.NioReceiver.stop(NioReceiver.java= :86) at = org.apache.catalina.tribes.group.ChannelCoordinator.internalStop(ChannelCo= ordinator.java:203) at = org.apache.catalina.tribes.group.ChannelCoordinator.stop(ChannelCoordinato= r.java:115) at = org.apache.catalina.tribes.group.ChannelInterceptorBase.stop(ChannelInterc= eptorBase.java:178) at = org.apache.catalina.tribes.group.ChannelInterceptorBase.stop(ChannelInterc= eptorBase.java:178) at = org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.s= top(MessageDispatchInterceptor.java:168) at = org.apache.catalina.tribes.group.ChannelInterceptorBase.stop(ChannelInterc= eptorBase.java:178) at = org.apache.catalina.tribes.group.GroupChannel.stop(GroupChannel.java:435) at = org.apache.catalina.ha.tcp.SimpleTcpCluster.stopInternal(SimpleTcpCluster.= java:743) at = org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225) at = org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:108= 3) at = org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225) at = org.apache.catalina.core.StandardService.stopInternal(StandardService.java= :502) at = org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225) at = org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:7= 48) at = org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225) at org.apache.catalina.startup.Catalina.stop(Catalina.java:693) at org.apache.catalina.startup.Catalina.start(Catalina.java:654) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at = org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) Jun 21, 2011 2:49:12 PM org.apache.coyote.AbstractProtocolHandler stop INFO: Stopping ProtocolHandler ["http-bio-8280"] Jun 21, 2011 2:49:12 PM org.apache.coyote.AbstractProtocolHandler stop INFO: Stopping ProtocolHandler ["ajp-bio-8209"] It is happening with both instances. One tomcat instance port numbers = are 81xy, the other one has 82xy. I also noticed that session = replication does not work although it worked yesterday. Here is the workers.properties file: bml0024:local administrator$ cat apache2/conf/workers.properties=20 worker.list =3D lb,jkstatus worker.lb.type=3Dlb worker.lb.balance_workers=3Dtc241,tc242 #worker.lb.sticky_session =3D True #worker.lb.sticky_session_force =3D False worker.jkstatus.type=3Dstatus worker.tc241.type =3D ajp13 worker.tc241.host =3D localhost worker.tc241.port =3D 8109 worker.tc241.lbfactor =3D 10 worker.tc241.redirect=3Dtc242 worker.tc242.type =3D ajp13 worker.tc242.host =3D localhost worker.tc242.port =3D 8209 worker.tc242.lbfactor =3D 10 worker.tc242.redirect=3Dtc241 Here is one tomcat instance's server.xml with comments removed: bml0024:local administrator$ sudo cat tc241/conf/server.xml=20 Password: =20 = =20 The web.xml in the example webapp has the tag. Thanks ahead, J=E1nos --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org