Package org.apache.slide.common

Examples of org.apache.slide.common.ServiceAccessException


                }
            }
            else {
                Uri u = namespace.getUri(token, checkAction.getUri());
                Store s = u.getStore();
                throw new ServiceAccessException(s, "Actions cache not loaded");
            }
        }
    }
View Full Code Here


                delist(revisionDescriptorStore);
                throw e;
            } catch (Throwable t) {
                delist(revisionDescriptorStore, false);
                // Wrap everything else in a ServiceAccessException
                throw new ServiceAccessException
                    (revisionDescriptorStore, t);
            }
            delist(revisionDescriptorStore);
        } else {
            try {
                revisionDescriptor =
                    revisionDescriptorStore.retrieveRevisionDescriptor
                    (uri, revisionNumber);
            } catch (ServiceAccessException e) {
                throw e;
            } catch (RevisionDescriptorNotFoundException e) {
                throw e;
            } catch (Throwable t) {
                // Wrap everything else in a ServiceAccessException
                throw new ServiceAccessException
                    (revisionDescriptorStore, t);
            }
        }
        revisionDescriptor.validate();
        return revisionDescriptor;
View Full Code Here

            delist(revisionDescriptorStore, false);
            throw e;
        } catch (Throwable t) {
            delist(revisionDescriptorStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException
                (revisionDescriptorStore, t);
        }
        delist(revisionDescriptorStore);
    }
View Full Code Here

            delist(revisionDescriptorStore);
            throw e;
        } catch (Throwable t) {
            delist(revisionDescriptorStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException
                (revisionDescriptorStore, t);
        }
        delist(revisionDescriptorStore);
    }
View Full Code Here

            delist(revisionDescriptorStore, false);
            throw e;
        } catch (Throwable t) {
            delist(revisionDescriptorStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException
                (revisionDescriptorStore, t);
        }
        delist(revisionDescriptorStore);
    }
View Full Code Here

                delist(contentStore);
                throw e;
            } catch (Throwable t) {
                delist(contentStore, false);
                // Wrap everything else in a ServiceAccessException
                throw new ServiceAccessException
                    (contentStore, t);
            }
            delist(contentStore);
        } else {
            try {
                revisionContent =
                    contentStore.retrieveRevisionContent
                    (uri, revisionDescriptor);
            } catch (ServiceAccessException e) {
                throw e;
            } catch (RevisionNotFoundException e) {
                throw e;
            } catch (Throwable t) {
                // Wrap everything else in a ServiceAccessException
                throw new ServiceAccessException
                    (contentStore, t);
            }
        }
        revisionContent.validate();
        return revisionContent;
View Full Code Here

            delist(contentStore);
            throw e;
        } catch (Throwable t) {
            delist(contentStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException(contentStore, t);
        }
        delist(contentStore);
    }
View Full Code Here

            delist(contentStore);
            throw e;
        } catch (Throwable t) {
            delist(contentStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException(contentStore, t);
        }
        delist(contentStore);
    }
View Full Code Here

            delist(contentStore, false);
            throw e;
        } catch (Throwable t) {
            delist(contentStore, false);
            // Wrap everything else in a ServiceAccessException
            throw new ServiceAccessException(contentStore, t);
        }
        delist(contentStore);
    }
View Full Code Here

            try {
                enlisted = transaction.enlistResource(service);
            } catch (Exception e) {
                // Something went wrong.
                setRollbackOnly();
                throw new ServiceAccessException(this, e);
            }
            if (!enlisted) {
                try {
                    Thread.sleep(200);
                } catch (InterruptedException e) {
                    // Then go on.
                }
            }
        }
        if (!enlisted) {
            String exMessage = Messages.format
                (AbstractStore.class.getName() + ".enlistFail", service);
            setRollbackOnly();
            throw new ServiceAccessException(this, exMessage);
        }
        if (getLogger().isEnabled(LOG_CHANNEL, Logger.DEBUG)) {
            String logMessage = Messages.format
                (AbstractStore.class.getName() + ".enlist", service);
            getLogger().log(logMessage, LOG_CHANNEL, Logger.DEBUG);
View Full Code Here

TOP

Related Classes of org.apache.slide.common.ServiceAccessException

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.