Package org.jboss.cache

Examples of org.jboss.cache.CacheException


   }

   private List<ListenerInvocation> getListenerCollectionForAnnotation(Class<? extends Annotation> annotation)
   {
      List<ListenerInvocation> list = listenersMap.get(annotation);
      if (list == null) throw new CacheException("Unknown listener annotation: " + annotation);
      return list;
   }
View Full Code Here


   private void verifyMarker(Object object)
   {
      if (object instanceof NodeDataExceptionMarker)
      {
         NodeDataExceptionMarker e = (NodeDataExceptionMarker)object;
         throw new CacheException("Error in state transfer stream", e.getCause());
      }
      else if (! (object instanceof NodeDataMarker))
      {
         throw new CacheException("Invalid object unmarshalled");
      }
   }
View Full Code Here

      {
         throw ce;
      }
      catch (Exception e)
      {
         throw new CacheException(e);
      }
      finally
      {
         if (!transientSet)
         {
View Full Code Here

      {
         Throwable cause = ((NodeDataExceptionMarker)obj).getCause();
         if (cause instanceof Exception)
            throw (Exception) cause;

         throw new CacheException(cause);
      }
      if (obj instanceof NodeDataMarker) return null;

      return (List<NodeData>) obj;
   }
View Full Code Here

         nd = integrateStateTransferChildren(fqn, offset, nodeDataIterator);
      }
      if (nd != null && nd.isExceptionMarker())
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
         throw new CacheException("State provider node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState", ndem.getCause());
      }
      return null;
   }
View Full Code Here

               }
               catch (InvocationTargetException exception)
               {
                  Throwable cause = exception.getCause();
                  if (cause != null)
                     throw new CacheException("Caught exception invoking method " + method + " on listener instance " + target, cause);
                  else
                     throw new CacheException("Caught exception invoking method " + method + " on listener instance " + target, exception);
               }
               catch (IllegalAccessException exception)
               {
                  log.warn("Unable to invoke method " + method + " on Object instance " + target + " - removing this target object from list of listeners!", exception);
                  removeCacheListener(target);
View Full Code Here

               e = new RegionEmptyException();
            }
         }
         if (!fetchPersistentState && !fetchTransientState)
         {
            e = new CacheException("Cache instance at " + cache.getLocalAddress() + " is not configured to provide state");
         }
         marshaller.objectToObjectStream(e, out);
         if (e != null) throw e;
      }
   }
View Full Code Here

      plainCache_ = cache;
   }
  
   Map<Object, Object> getData(Fqn<?> fqn, boolean gravitate)
   {
      CacheException ex = null;
      for (int i = 0; i < RETRY; i++)
      {
         try
         {
            this.getOptionOverrides().setForceDataGravitation(gravitate);
View Full Code Here

    * @param id
    * @return
    */
   Object get(Fqn<?> fqn, String id, boolean gravitate)
   {
      CacheException ex = null;
      for (int i = 0; i < RETRY; i++)
      {
         try
         {
            this.getOptionOverrides().setForceDataGravitation(gravitate);
View Full Code Here

         registerComponent(configuration, Configuration.class);
         registerComponent(new BootstrapFactory(cache, configuration, this), BootstrapFactory.class);
      }
      catch (Exception e)
      {
         throw new CacheException("Unable to construct ComponentRegistry", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.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.