Package org.jboss.cache

Examples of org.jboss.cache.CacheException


    *                        {@link org.jboss.cache.InvocationContext} is null.
    */
   protected GlobalTransaction getGlobalTransaction(InvocationContext ctx) throws CacheException
   {
      Transaction tx = ctx.getTransaction();
      if (tx == null) throw new CacheException("Transaction associated with the current invocation is null!");
      GlobalTransaction gtx = ctx.getGlobalTransaction();
      if (gtx == null) throw new CacheException("GlobalTransaction associated with the current invocation is null!");
      return gtx;
   }
View Full Code Here


         return;
      }
      if (objectFromStream instanceof NodeDataExceptionMarker)
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) objectFromStream;
         throw new CacheException("State provider cacheloader at node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState (see Caused by)", ndem.getCause());
      }

      List nodeData = (List) objectFromStream;
      for (Object aNodeData : nodeData)
      {
         NodeData nd = (NodeData) aNodeData;
         if (nd.isExceptionMarker())
         {
            NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
            throw new CacheException("State provider cacheloader at node " + ndem.getCacheNodeIdentity()
                  + " threw exception during loadState (see Caused by)", ndem.getCause());
         }
      }
      storeStateHelper(subtree, nodeData, moveToBuddy);
   }
View Full Code Here

            case MOVE:
               //                involve moving all children too,
               _move(m.getFqn(), m.getFqn2());
               break;
            default:
               throw new CacheException("Unknown modification " + m.getType());
         }
      }
   }
View Full Code Here

   private void enqueue(final Modification mod)
         throws CacheException, InterruptedException
   {
      if (stopped.get())
      {
         throw new CacheException("AsyncCacheLoader stopped; no longer accepting more entries.");
      }
      if (trace) log.trace("Enqueuing modification " + mod);
      queue.put(mod);
   }
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

         notifyAllNodesCreated(cache.getInvocationContext(), target);
      }
      catch (Exception e)
      {
         throw new CacheException(e);
      }
      finally
      {
         if (!transientSet)
         {
View Full Code Here

         nd = integrateStateTransferChildren(target, 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

               config.setEnabled(false);
               return;
            }
            else
            {
               throw new CacheException("Unable to initialize BuddyManager - the RPCManager has not connected to the cluster and local Address is null!");
            }
         }
         buddyGroup.setGroupName(buddyFqnTransformer.getGroupNameFromAddress(localAddress));

         if (config.getBuddyPoolName() != null)
View Full Code Here

         return transformed;
      }
      catch (Throwable throwable)
      {
         log.error("error while transforming an call", throwable);
         throw new CacheException(throwable);
      }
   }
View Full Code Here

               log.trace("acquireState(): got a TimeoutException");
            }
         }
         catch (Exception e)
         {
            throw new CacheException("Error acquiring state", e);
         }
         catch (Throwable t)
         {
            throw new RuntimeException(t);
         }
      }

      // If we got a timeout exception on the final try,
      // this is a failure condition
      if (timeoutException != null)
      {
         throw new CacheException("acquireState(): Failed getting state due to timeout",
               timeoutException);
      }

      if (log.isDebugEnabled())
      {
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.