<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Have you enabled Tomcat clustering as well? &nbsp;By the look of that stack trace Tomcat clustering is enabled, and it may use a different version of JGroups. &nbsp;If you want to use TOmcat clustering as well, make sure your multicast address and ports don't overlap.<div><br class="webkit-block-placeholder"></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><a href="http://wiki.jboss.org/wiki/Wiki.jsp?page=PromiscuousTraffic">http://wiki.jboss.org/wiki/Wiki.jsp?page=PromiscuousTraffic</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br class="webkit-block-placeholder"></div><div><div>On 12 Nov 2007, at 05:17, Mamta, Jain wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <div><font face="Arial" size="2"> <div><font face="Arial" size="2"><span class="854514812-05112007">Hi All,</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">We are having trouble using JBC Habanero version 2.0.0.0 GA for enabling Distributed Caching. The&nbsp;error encountered as appearing in the log&nbsp;is&nbsp;:</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">Nov 2, 2007 6:00:07 AM org.jgroups.protocols.TP$IncomingPacket run<br>WARNING: packet from a.b.c.d:45564 has different version (0.0.0) from ours (2.5.0). Packet is discarded</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">Environment :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">Tomcat 5.5.20, Multicast</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">Starting Catalina with the following option to avoid the "Problem creating sockets" :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; -Djava.net.preferIPv4Stack=true</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">What I am trying to do is, use JBC for distributing cache over the Tomcats cluster established with multicasting. The steps followed were :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 1. modified ip address &amp; port for the UDP/mcastaddr and port in replSync-service.xml</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 2. commented off transaction manager tag in the xml, as we dont have the requirement for Transactional Caching</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 3. created a client that would enable/initialize the JBC caching :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font size="+0"><span class="854514812-05112007"><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CacheFactory factory = DefaultCacheFactory.<i>getInstance</i>();</font></span></font></div> <div><font size="+0"><span class="854514812-05112007"><font face="Arial"><font size="2"><font color="#0000c0"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cache</font> = factory.createCache(&lt;url of the replSync-service.xml&gt;);</font></font></span></font></div> <div><font size="+0"><span class="854514812-05112007"><font face="Arial"><font size="2"></font></font></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">Whats happening is :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 1. JGroups seems to be doing whats required as I see the following in the log :</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INFO: JGroups version: 2.5.0</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -------------------------------------------------------<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GMS: address is a.b.c.d:32838</span></font></div><font size="+0"><span class="854514812-05112007"> <div><font face="Arial" size="2"></font><br><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; 2. And further the following is logged :</font></div> <div><font face="Arial" size="2"></font>&nbsp;</div> </span></font><div><font size="+0"><font face="Arial"><font size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>INFO: viewAccepted(): [<span class="854514812-05112007">a.b.c.d</span>:32838|0] [<span class="854514812-05112007">a.b.c.d</span>:32838]<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>Nov 2, 2007 6:00:06 AM org.jboss.cache.CacheImpl internalStart<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>INFO: CacheImpl local address is <span class="854514812-05112007">a.b.c.d</span>:32838<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>Nov 2, 2007 6:00:06 AM org.jboss.cache.CacheImpl internalStart<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>INFO: JBoss Cache version: JBossCache 'Habanero' 2.0.0.GA[ $Id: Version.java,v 1.35 2007/08/01 16:52:13 msurtani Exp $]<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>Nov 2, 2007 6:00:07 AM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>WARNING: Error receiving mcast package. Sleeping 500ms<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>java.lang.ArrayIndexOutOfBoundsException<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;at java.lang.System.arraycopy(Native Method)<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;at org.apache.catalina.cluster.mcast.McastMember.getMember(McastMember.java:174)<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:210)<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:254)<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>Nov 2, 2007 6:00:07 AM org.jgroups.protocols.TP$IncomingPacket run<br><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; </span>WARNING: packet from <span class="854514812-05112007">a.b.c.d</span>:45564 has different version (0.0.0) from ours (2.5.0). Packet is discarded<br></font></font></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 3. Is the observed error ignorable ?</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007">&nbsp;&nbsp;&nbsp; 4. I have not started the other node in the cluster as there are hundreds of lines appearing in the log with Packet discarded message.</span></font></div> <div><font face="Arial" size="2"><span class="854514812-05112007"></span></font>&nbsp;</div> <div><font face="Arial" size="2"><span class="854514812-05112007">Have I done enough, or missing something obvious as the documents do direct us to do just&nbsp;the above.</span></font></div><font face="Arial" size="2"> <div><br></div></font> <div><font face="Arial" color="#008000" size="2">Best Regards,</font></div> <div align="left"><font face="Arial" color="#008000" size="2"><span class="854514812-05112007">Jigyaasa_Jbosscache</span></font></div></font></div><pre>This email is confidential. If you are not the addressee tell the sender immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for
damage caused by this email and may monitor email traffic.
</pre> </div> _______________________________________________<br>jbosscache-users mailing list<br><a href="mailto:jbosscache-users@lists.jboss.org">jbosscache-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jbosscache-users<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div>Lead, JBoss Cache</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>