Examples of ResourceManagerException


Examples of com.google.diffable.exceptions.ResourceManagerException

        return false;
      } else {
        return true;
      }
    } else {
      throw new ResourceManagerException(
        provider.error("filemgr.filenotmanaged",
                   resource.getAbsolutePath()));
    }
  }
View Full Code Here

Examples of com.google.diffable.exceptions.ResourceManagerException

    // artifacts are already setup, this call is a no-op.
    try {
      createResourceArtifacts(resource);
    } catch (Exception exc) {
      printer.print(exc);
      throw new ResourceManagerException(
        provider.error("filemgr.cantcreateresource",
                   resource.getAbsolutePath()));
    }
    // If the resource has changed obtain the new hash of the resources
    // contents and generate diffs between the older versions of the
    // resource and the latest version.
    if (hasResourceChanged(resource)) {
      provider.info(logger, "filemgr.resourcechanged",
                resource.getAbsolutePath());
      try {
        String latestHash = readInAndCopyLatestVersion(resource, false);

        // If the latest hash is not null, then the actual contents of
        // the managed resource have changes, and new diffs must be
        // generated.
        if (latestHash != null) {
          provider.info(logger, "filemgr.gendeltas",
                      resource.getAbsolutePath());
          generateDeltas(resource, latestHash);
          // Update the Diffable context so it can correctly identify
          // the most recent version of this resource.
          diffableCtx.setCurrentVersion(resource, latestHash);
        }
      } catch (Exception exc) {
        printer.print(exc);
        throw new ResourceManagerException(
            provider.error("filemgr.cantloadlatest",
                       resource.getAbsolutePath()));
      }
    }
  }
View Full Code Here

Examples of com.google.diffable.exceptions.ResourceManagerException

                  resourceStore.getAbsolutePath());
        break;
      }
    }
    if (resourceStore == null) {
      throw new ResourceManagerException(
        provider.error("filemgr.cantcreatestore"));
    } else {
      return this;
    }
  }
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

                }
            }
        }
        catch (Exception e)
        {
            throw new ResourceManagerException(e);
        }
        finally
        {
            ctx.added = null;
            ctx.removed = null;
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

            }
            this.transactionJournal.logCommit(txId);
        }
        catch (Exception e)
        {
            throw new ResourceManagerException(e);
        }
    }
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

                {
                    queueProvider.getQueue(entry.getQueueName()).putNow(entry.getValue());
                }
                catch (InterruptedException e)
                {
                    throw new ResourceManagerException(e);
                }
            }
        }
        this.transactionJournal.logRollback(txId);
    }
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

                }
            }
        }
        catch (Exception e)
        {
            throw new ResourceManagerException(e);
        }
        finally
        {
            added = null;
            removed = null;
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

            }
            this.transactionJournal.logCommit(xid);
        }
        catch (Exception e)
        {
            throw new ResourceManagerException(e);
        }
    }
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

                {
                    queueProvider.getQueue(entry.getQueueName()).putNow(entry.getValue());
                }
                catch (InterruptedException e)
                {
                    throw new ResourceManagerException(e);
                }
            }
        }
        this.transactionJournal.logRollback(xid);
    }
View Full Code Here

Examples of org.mule.util.xa.ResourceManagerException

    public void commitTransaction(AbstractTransactionContext context) throws ResourceManagerException
    {
        assureReady();
        if (context.status == Status.STATUS_MARKED_ROLLBACK)
        {
            throw new ResourceManagerException(CoreMessages.transactionMarkedForRollback());
        }
        synchronized (context)
        {
            if (logger.isDebugEnabled())
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.