<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">i'm trying to use infinispan but when i'm running twice my program i have a suspected member exception.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I'm doing it : <o:p></o:p></p>
<p class="MsoNormal">1) i'm running the program => P1<o:p></o:p></p>
<p class="MsoNormal">2) i'm running it again => P2<o:p></o:p></p>
<p class="MsoNormal">3) in P1 i'm writing a=>b<o:p></o:p></p>
<p class="MsoNormal">4) before the end of the a=>b command i'm closing P1 ('q')<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">here is the code :<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;
font-family:"Courier New";color:#7F0055">public</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">class</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> InfiniSpanDemo {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:
10.0pt;font-family:"Courier New";color:#7F0055">public</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">static</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">void</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> main(String[] args)
</span><b><span style="font-size:10.0pt;font-family:"Courier New";
color:#7F0055">throws</span></b><span style="font-size:10.0pt;font-family:"Courier New";
color:black"> NotSupportedException, SystemException, SecurityException, IllegalStateException, RollbackException,
HeuristicMixedException, HeuristicRollbackException, IOException {</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
<i>hello</i>();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:
10.0pt;font-family:"Courier New";color:#7F0055">public</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">static</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">void</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> hello()
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">throws</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> NotSupportedException, SystemException, SecurityException, IllegalStateException, RollbackException,
HeuristicMixedException, HeuristicRollbackException, IOException {</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> CacheManager mgr =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> DefaultCacheManager(InfiniSpanDemo.</span><b><span style="font-size:10.0pt;
font-family:"Courier New";color:#7F0055">class</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">.getResourceAsStream(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"/config/infinispan-config.xml"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">));</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> Cache<String, String> cache = mgr.getCache(</span><span style="font-size:10.0pt;font-family:"Courier New";
color:#2A00FF">"distributedCache"</span><span style="font-size:10.0pt;
font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">do</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"type
'key=>value' to set a value or 'key?' to read a value to test a value or 'q' to quit\n"</span><span style="font-size:10.0pt;font-family:"Courier New";
color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> Scanner in =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Scanner(System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">in</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> String action = in.nextLine();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">if</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> (action.equalsIgnoreCase(</span><span style="font-size:10.0pt;font-family:"Courier New";
color:#2A00FF">"q"</span><span style="font-size:10.0pt;font-family:
"Courier New";color:black">))
{</span><span style="font-size:10.0pt;font-family:
"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">break</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">else</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">if</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> (action.contains(</span><span style="font-size:10.0pt;font-family:"Courier New";
color:#2A00FF">"=>"</span><span style="font-size:10.0pt;
font-family:"Courier New";color:black">))
{</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> String[] s = action.split(</span><span style="font-size:10.0pt;font-family:"Courier New";
color:#2A00FF">"=>"</span><span style="font-size:10.0pt;
font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> cache.put(s[0], s[1]);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">for</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> (</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">int</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
i = 0; i < 1000000; i++) {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> cache.put(i +
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"-"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + s[0], i +
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"_"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + s[1]);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">else</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">if</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> (action.length() > 1 && action.charAt(action.length() - 1) ==
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">'?'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">) {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> String s =action.substring(0, action.length() - 1);</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(cache.get(s));</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">else</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"retry"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">while</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">(</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">true</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> cache.stop();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> mgr.stop();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Courier New";color:black">}</span><span style="font-size:10.0pt;
font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and here the exception:<o:p></o:p></p>
<p class="MsoNormal">GRAVE: Execution error:<o:p></o:p></p>
<p class="MsoNormal">org.infinispan.remoting.transport.jgroups.SuspectException: Suspected member: Jalapeno-25790<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:419)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:100)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:124)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:229)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:216)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:199)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:192)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:114)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.ReplicationInterceptor.visitPutKeyValueCommand(ReplicationInterceptor.java:78)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.LockingInterceptor.visitPutKeyValueCommand(LockingInterceptor.java:198)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:57)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:183)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.TxInterceptor.visitPutKeyValueCommand(TxInterceptor.java:132)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:58)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:39)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:57)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:271)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.CacheDelegate.put(CacheDelegate.java:411)<o:p></o:p></p>
<p class="MsoNormal"> at org.infinispan.CacheSupport.put(CacheSupport.java:28)<o:p></o:p></p>
<p class="MsoNormal"> at pack.InfiniSpanDemo.hello(InfiniSpanDemo.java:36)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le
détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de
tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.<br>
<br>
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.<br>
</font>
</body>
</html>