Package org.rhq.core.util.exception

Examples of org.rhq.core.util.exception.WrappedRemotingException


            }
        }
       
        // if the exception and all its causes are java.*, then just return e as-is
        if (!all_java_exceptions) {
            return new WrappedRemotingException(e);
        }
        return e;
    }
View Full Code Here


            }
            return parseCannedGroupExpressionsDescriptor(jis, validationEventCollector);
        } catch (Exception e) {
            throw new PluginContainerException("Could not parse the plugin additions ["
                + CANNED_GROUP_EXPRESSION_DESCRIPTOR_PATH + "] found in plugin jar at [" + pluginJarFileUrl + "].",
                new WrappedRemotingException(e));
        } finally {
            if (jis != null) {
                try {
                    jis.close();
                } catch (Exception e) {
View Full Code Here

            return parsePluginDescriptor(jis, validationEventCollector);
        } catch (Exception e) {
            throw new PluginContainerException("Could not successfully parse the plugin descriptor ["
                + PLUGIN_DESCRIPTOR_PATH + "] found in plugin jar at [" + pluginJarFileUrl + "].",
                new WrappedRemotingException(e));
        } finally {
            if (jis != null) {
                try {
                    jis.close();
                } catch (Exception e) {
View Full Code Here

            ValidationEventCollector validationEventCollector, String xsd, String jaxbPackage) throws PluginContainerException {
        JAXBContext jaxbContext;
        try {
            jaxbContext = JAXBContext.newInstance(jaxbPackage);
        } catch (Exception e) {
            throw new PluginContainerException("Failed to create JAXB Context.", new WrappedRemotingException(e));
        }

        Unmarshaller unmarshaller;
        try {
            unmarshaller = jaxbContext.createUnmarshaller();
View Full Code Here

        if (t == null)
            return null;

        StringBuilder detailMessage = new StringBuilder("Cause: ");
        if (t.getCause() instanceof WrappedRemotingException) {
            WrappedRemotingException wre = (WrappedRemotingException) t.getCause();
            detailMessage.append(wre.getActualException().getAllMessages());
        } else {
            detailMessage.append(ThrowableUtil.getAllMessages(t));
        }

        return detailMessage.toString();
View Full Code Here

            operationGateway.submit(theJob[0]);
        } catch (Exception e) {
            log.warn("Failed to submit operation invocation request", e);
            throw new PluginContainerException("Failed to submit invocation request. resource=[" + resourceId
                + "], operation=[" + operationName + "], jobId=[" + jobId + "]", new WrappedRemotingException(e));
        }

        return;
    }
View Full Code Here

            BundleManagerLocal bm = LookupUtil.getBundleManager();
            bm.addBundleResourceDeploymentHistoryInNewTrans(LookupUtil.getSubjectManager().getOverlord(),
                bundleDeploymentId, history);
        } catch (Exception e) {
            log.error("Failed to add history to deployment id: " + bundleDeploymentId, e);
            throw new WrappedRemotingException(e);
        }
    }
View Full Code Here

                packageVersions.add(packageVersion);
            }
            return packageVersions;
        } catch (Exception e) {
            log.error("Failed to obtain bundle files for bundle version id: " + bundleVersionId, e);
            throw new WrappedRemotingException(e);
        }
    }
View Full Code Here

            ContentSourceManagerLocal csm = LookupUtil.getContentSourceManager();
            long size = csm.outputPackageVersionBits(packageVersion, outputStream);
            return size;
        } catch (Exception e) {
            log.error("Failed to obtain package version bits for package version: " + packageVersion, e);
            throw new WrappedRemotingException(e);
        }
    }
View Full Code Here

            BundleManagerLocal bm = LookupUtil.getBundleManager();
            bm.setBundleResourceDeploymentStatusInNewTransaction(LookupUtil.getSubjectManager().getOverlord(),
                bundleDeploymentId, status);
        } catch (Exception e) {
            log.error("Failed to set status for deployment id: " + bundleDeploymentId, e);
            throw new WrappedRemotingException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.util.exception.WrappedRemotingException

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.