Package org.jboss.cache

Examples of org.jboss.cache.CacheException


      {
         return o instanceof MarshalledValue ? ((MarshalledValue) o).get() : o;
      }
      catch (Exception e)
      {
         throw new CacheException("Unable to unmarshall value", e);
      }
   }
View Full Code Here


    * @return object
    */
   public Object getReferencedObject(int ref)
   {
      if (ref >= referencedObjects.size())
         throw new CacheException("Attempting to look up a ref that hasn't been inserted yet");
      return referencedObjects.get(ref);
   }
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

      else if (t instanceof RuntimeException)
         throw (RuntimeException) t;
      else if (t instanceof Error)
         throw (Error) t;
      else
         throw new CacheException(t);
   }
View Full Code Here

            }
         };
      }
      catch (Exception e)
      {
         throw new CacheException(e);
      }
   }
View Full Code Here

            Object[] a = new Object[sz];
            for (int i = 0; i < sz; i++) a[i] = unmarshallObject(in, refs);
            return a;
         }
         default:
            throw new CacheException("Unknown array type");
      }
   }
View Full Code Here

    */
   @SuppressWarnings("unchecked")
   public List<Fqn> wrapNodesRecursivelyForRemoval(InvocationContext ctx, Fqn fqn) throws InterruptedException
   {
      // when removing a node we want to get a lock on the Fqn anyway and return the wrapped node.
      if (fqn.isRoot()) throw new CacheException("Attempting to remove Fqn.ROOT!");

      Fqn parentFqn = fqn.getParent();
      // inspect parent
      boolean needToCopyParent = false;
      boolean parentLockNeeded = isParentLockNeeded(parentFqn, ctx);
View Full Code Here

         method.setAccessible(true);
         method.invoke(instance, parameters);
      }
      catch (Exception e)
      {
         throw new CacheException("Unable to invoke method " + method + " on object " + //instance +
               (parameters != null ? " with parameters " + Arrays.asList(parameters) : ""), e);
      }
   }
View Full Code Here

            componentType.isAssignableFrom(ComponentRegistry.class))
      {
         return componentType.cast(cacheSPI);
      }

      throw new CacheException("Don't know how to handle type " + componentType);
   }
View Full Code Here

            batchTransactionContainer.set(transactionManager.suspend());
         }
      }
      catch (Exception e)
      {
         throw new CacheException("Unable to start batch", 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.