Package org.infinispan

Examples of org.infinispan.CacheException


      try {
         byteBuffer = marshaller.objectToByteBuffer(x);
         return (T) marshaller.objectFromByteBuffer(byteBuffer);
      } catch (InterruptedException e) {
         Thread.currentThread().interrupt();
         throw new CacheException(e);     
      } catch (Exception e) {
         throw new CacheException(e);
      }    
   }
View Full Code Here


   public static CacheException rewrapAsCacheException(Throwable t) {
      if (t instanceof CacheException)
         return (CacheException) t;
      else
         return new CacheException(t);
   }
View Full Code Here

         List<ResourceDMBean> resourceDMBeans = getResourceDMBeansFromComponents();
         for (ResourceDMBean resource : resourceDMBeans)
            JmxUtil.registerMBean(resource, getObjectName(resource), mBeanServer);
      }
      catch (Exception e) {
         throw new CacheException("Failure while registering mbeans", e);
      }
   }
View Full Code Here

         for (ResourceDMBean resource : resourceDMBeans) {
            JmxUtil.unregisterMBean(getObjectName(resource), mBeanServer);
         }
      }
      catch (Exception e) {
         throw new CacheException("Failure while unregistering mbeans", e);
      }
   }
View Full Code Here

      } catch (InstanceNotFoundException e) {
         // Ignore if Cache MBeans not present
      } catch (MalformedObjectNameException e) {
         String message = "Malformed pattern " + pattern;
         log.error(message, e);
         throw new CacheException(message, e);
      }
   }
View Full Code Here

      if (!localTransaction.isEnlisted()) { //make sure that you only enlist it once
         try {
            transaction.enlistResource(new TransactionXaAdapter(localTransaction, txTable, commandsFactory, configuration, invoker, icc));
         } catch (Exception e) {
            log.error("Failed to enlist TransactionXaAdapter to transaction");
            throw new CacheException(e);
         }
      }
      return localTransaction;
   }
View Full Code Here

            if (mBeanServer.queryNames(targetName, null).size() > 0) {
               finalName = jmxDomain + index++;
               done = false;
            }
         } catch (MalformedObjectNameException e) {
            throw new CacheException("Unable to check for duplicate names", e);
         }
      }

      return finalName;
   }
View Full Code Here

                  log.info("Could not register object with name: " + objectName);
            }
         }
      }
      catch (Exception e) {
         throw new CacheException("Failure while registering mbeans", e);
      }
   }
View Full Code Here

               if (trace) log.trace("Unregistered " + objectName);
            }
         }
      }
      catch (Exception e) {
         throw new CacheException("Failure while unregistering mbeans", e);
      }
   }
View Full Code Here

      } finally {
         if (tx != null) {
            try {
               tm.resume(tx);
            } catch (Exception e) {
               throw new CacheException("Unable to resume suspended transaction " + tx, e);
            }
         }
      }
      return locked;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.CacheException

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.