Package org.jboss.cache

Examples of org.jboss.cache.ReplicationException


    List resps;
    // JBCACHE-1186
    resps = cache.getRPCManager().callRemoteMethods(null,  clusteredGet, GroupRequest.GET_ALL, config.getTimeout(), new ResponseValidityFilter(cache.getMembers(), cache.getLocalAddress(), dataCommand), false);

    if (resps == null) {
      throw new ReplicationException("No replies to call " + dataCommand  + ".  Perhaps we're alone in the cluster?"); //$NON-NLS-1$ //$NON-NLS-2$
    }
   
    return resps;
  }
View Full Code Here


      if (resps == null)
      {
         if (log.isInfoEnabled())
            log.info("No replies to call " + dataCommand + ".  Perhaps we're alone in the cluster?");
         throw new ReplicationException("No replies to call " + dataCommand + ".  Perhaps we're alone in the cluster?");
      }
      else
      {
         // test for and remove exceptions
         Iterator i = resps.iterator();
View Full Code Here

   {
      if (!TransactionTable.isActive(tx))
      {
         try
         {
            throw new ReplicationException("prepare() failed -- local transaction status is not STATUS_ACTIVE; is " + tx.getStatus());
         }
         catch (SystemException e)
         {
            throw new ReplicationException("prepare() failed -- local transaction status is not STATUS_ACTIVE; Unable to retrieve transaction status.");
         }
      }
   }
View Full Code Here

      if (resps == null)
      {
         if (log.isInfoEnabled())
            log.info("No replies to call " + dataCommand + ".  Perhaps we're alone in the cluster?");
         throw new ReplicationException("No replies to call " + dataCommand + ".  Perhaps we're alone in the cluster?");
      }
      else
      {
         // test for and remove exceptions
         Iterator i = resps.iterator();
View Full Code Here

   {
      if (!TransactionTable.isActive(tx))
      {
         try
         {
            throw new ReplicationException("prepare() failed -- local transaction status is not STATUS_ACTIVE; is " + tx.getStatus());
         }
         catch (SystemException e)
         {
            throw new ReplicationException("prepare() failed -- local transaction status is not STATUS_ACTIVE; Unable to retrieve transaction status.");
         }
      }
   }
View Full Code Here

        replayModifications(modifications, ltx, true);
        retval = super.invoke(m);
        // JBCACHE-361 Confirm that the transaction is ACTIVE
        if (!isActive(ltx))
        {
            throw new ReplicationException("prepare() failed -- " +
                    "local transaction status is not STATUS_ACTIVE;" +
                    " is " + ltx.getStatus());
        }
        return retval;
    }
View Full Code Here

                    super.invoke(m);
                }

                // JBCACHE-361 Confirm that the transaction is ACTIVE
                if (!isActive(ltx)) {
                   throw new ReplicationException("prepare() failed -- " +
                         "local transaction status is not STATUS_ACTIVE;" +
                         " is " + ltx.getStatus());
                }
            }
            catch (Throwable th)
View Full Code Here

                   {
                      retval = super.invoke(method_call);
                   }
                    if (!isActive(tx))
                    {
                        throw new ReplicationException("prepare() failed -- " + "local transaction status is not STATUS_ACTIVE; is " + tx.getStatus());
                    }
                }
                catch (Throwable t)
                {
                    log.error("method invocation failed", t);
View Full Code Here

        replayModifications(modifications, ltx, true);
        retval = super.invoke(m);
        // JBCACHE-361 Confirm that the transaction is ACTIVE
        if (!isActive(ltx))
        {
            throw new ReplicationException("prepare() failed -- " +
                    "local transaction status is not STATUS_ACTIVE;" +
                    " is " + ltx.getStatus());
        }
        return retval;
    }
View Full Code Here

                    super.invoke(m);
                }

                // JBCACHE-361 Confirm that the transaction is ACTIVE
                if (!isActive(ltx)) {
                   throw new ReplicationException("prepare() failed -- " +
                         "local transaction status is not STATUS_ACTIVE;" +
                         " is " + ltx.getStatus());
                }
            }
            catch (Throwable th)
View Full Code Here

TOP

Related Classes of org.jboss.cache.ReplicationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.