Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 11688 invoked from network); 17 Nov 2004 17:55:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Nov 2004 17:55:54 -0000 Received: (qmail 53881 invoked by uid 500); 17 Nov 2004 17:55:37 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 53860 invoked by uid 500); 17 Nov 2004 17:55:37 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 53847 invoked by uid 99); 17 Nov 2004 17:55:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [194.2.83.201] (HELO cofinet.cofiroute.fr) (194.2.83.201) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 17 Nov 2004 09:55:33 -0800 Received: from cofinet.cofiroute.fr (localhost [127.0.0.1]) by cofinet.cofiroute.fr (8.12.10+Sun/8.12.10) with ESMTP id iAHHtSqo027655 for ; Wed, 17 Nov 2004 18:55:28 +0100 (MET) Received: from hermes.cofiroute.com (hermes.cofiroute.com [29.33.0.1]) by cofinet.cofiroute.fr (8.12.10+Sun/8.12.10) with ESMTP id iAHHtS6S027652 for ; Wed, 17 Nov 2004 18:55:28 +0100 (MET) Received: by hermes.cofiroute.com with Internet Mail Service (5.5.2653.19) id <30F0V85Q>; Wed, 17 Nov 2004 18:55:23 +0100 Message-ID: From: LERBSCHER Jean-Pierre To: "'Tomcat Users List'" Subject: RE : Problem clustering tomcat when a failed server is restarting Date: Wed, 17 Nov 2004 18:55:13 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N We are using Tomcat 5.0.27. -----Message d'origine----- De=A0: Filip Hanik - Dev [mailto:devlists@hanik.com]=20 Envoy=E9=A0: mercredi 17 novembre 2004 18:27 =C0=A0: Tomcat Users List Objet=A0: Re: Problem clustering tomcat when a failed server is = restarting What version of tomcat? It fails when it tries to write the principal information to the = stream. Since I don't know what version of tomcat you are using, I can't tell = you exactly what went wrong. maybe something in the principal returns null Filip ----- Original Message -----=20 From: "LERBSCHER Jean-Pierre" To: "Tomcat Users List" Sent: Wednesday, November 17, 2004 4:41 AM Subject: Problem clustering tomcat when a failed server is restarting We have a cluster Tomcat composed of two servers (default configuration = of the cluster is used). When the first server is stopped, the cluster continues to work fine (requests are handled by the server that is running). But when the stopped server is restarting we can see these exceptions. =20 Could you comment this log and explain us what is wrong. Thanks. =20 The server that handle the requests log this exception Server 02 10 nov. 2004 17:13:54 = org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,= w.x. y.z,41001, alive=3D35] 10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager messageReceived GRAVE: Unable to receive message through TCP channel java.lang.NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutp= utSt ream.java:1898) at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputSt= ream .java:1769) at = java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787) at org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal= (Ser ializablePrincipal.java:180) at org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSessio= n.ja va:1457) at org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSe= ssio n.java:930) at org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.j= ava: 539) at org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaMa= nage r.java:854) at org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(Del= taMa nager.java:762) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim= pleT cpCluster.java:576) at org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70= ) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep= lica tionThread.java:129) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT= hrea d.java:67) =20 In the same time the server restarting logs this information. server 01 Creating ClusterManager for context /myapp using class org.apache.catalina.cluster.session.DeltaManager 10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager = start INFO: Starting clustering manager...:/myapp 10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager = start ATTENTION: Manager[/myapp], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.= z,42 001, alive=3D111640]. This operation will timeout if no session state = has been received within 60 seconds =20 =20 After a delay, server 01 logs this information. 10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager = start GRAVE: Manager[/myapp], No session state received, timing out. 10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer = install INFO: Installation d'une application pour le chemin de contexte depuis l'URL file:/opt/tomcat-tst01/webapps/ROOT ... INFO: Server startup in 62980 ms =20 server 01 handle the application requests, new session is created. =20 =20 =20 =20 =20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org