Package org.apache.hivemind

Examples of org.apache.hivemind.ApplicationRuntimeException


                operations.updatePerson(userId, attributes);
                break;
            }
            catch (FinderException ex)
            {
                throw new ApplicationRuntimeException(ex);
            }
            catch (RemoteException ex)
            {
                vengine.rmiFailure("Remote exception updating user attributes.", ex, i++);
            }
View Full Code Here


                    return null;
                }
                catch (FinderException ex)
                {
                    throw new ApplicationRuntimeException("Unable to find book or user.", ex);
                }
            }
        };

        getRemoteTemplate().doRemote(callback, "Error borrowing book.");
View Full Code Here

                break;
            }
            catch (FinderException ex)
            {
                throw new ApplicationRuntimeException(ex);
            }
            catch (RemoteException ex)
            {
                vengine.rmiFailure(updateFailure(), ex, i++);
            }
View Full Code Here

                _coordinator.fireRemoteExceptionDidOccur(callback, ex);

                if (attempt++ < MAX_ATTEMPTS)
                    continue;

                throw new ApplicationRuntimeException(errorMessage, ex);
            }

        }
    }
View Full Code Here

            {
                vengine.rmiFailure(updateFailure(), ex, i++);
            }
            catch (RemoveException ex)
            {
                throw new ApplicationRuntimeException(ex);
            }
            catch (FinderException ex)
            {
                throw new ApplicationRuntimeException(ex);
            }
        }

        setMessage(usersUpdated());
    }
View Full Code Here

                break;
            }
            catch (FinderException ex)
            {
                throw new ApplicationRuntimeException(ex);
            }
            catch (RemoteException ex)
            {
                vengine.rmiFailure("Unable to transfer ownership of books.", ex, i++);
            }
View Full Code Here

            }

            URL resourceURL = _classResolver.getResource(path);

            if (resourceURL == null)
                throw new ApplicationRuntimeException(AssetMessages.noSuchResource(path));

            URLConnection resourceConnection = resourceURL.openConnection();

            writeAssetContent(cycle, path, resourceConnection);
        }
View Full Code Here

        String initializer = commax < 0 ? null : locator.substring(commax + 1).trim();

        BeanFactoryContribution c = (BeanFactoryContribution) _contributions.get(name);

        if (c == null)
            throw new ApplicationRuntimeException(FactoryMessages.unknownContribution(name));

        Object result = construct(c, initializer);

        if (c.getStoreResultInCache(_defaultCacheable))
            _cache.put(locator, result);
View Full Code Here

            return c.newInstance(new Object[] { initializer });
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                FactoryMessages.unableToInstantiate(beanClass, ex),
                contribution.getLocation(),
                ex);

        }
View Full Code Here

            return null;

        int colonx = inputValue.indexOf(':');

        if (colonx < 0)
            throw new ApplicationRuntimeException(
                FactoryMessages.invalidBeanTranslatorFormat(inputValue));

        String serviceId = inputValue.substring(0, colonx);

        if (serviceId.length() == 0)
            throw new ApplicationRuntimeException(
                FactoryMessages.invalidBeanTranslatorFormat(inputValue));

        String locator = inputValue.substring(colonx + 1);

        if (locator.length() == 0)
            throw new ApplicationRuntimeException(
                FactoryMessages.invalidBeanTranslatorFormat(inputValue));

        BeanFactory f = (BeanFactory) contributingModule.getService(serviceId, BeanFactory.class);

        return f.get(locator);
View Full Code Here

TOP

Related Classes of org.apache.hivemind.ApplicationRuntimeException

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.