Examples of ExecutionProblem


Examples of org.globus.workspace.client_core.ExecutionProblem

        try {
            this._runImpl();
        } catch (BaseFaultType e) {
            final String err = CommonStrings.faultStringOrCommonCause(e);
            throw new ExecutionProblem(err, e);
        }
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

                        resp.getContact() == null ||
                        resp.getContact().getBrokerURL() == null ||
                        resp.getContact().getContextID() == null ||
                        resp.getContact().getSecret() == null) {
               
                throw new ExecutionProblem("did not receive a valid result " +
                        "from context create operation (?)");
            }
        } catch (NimbusContextualizationFault e) {
            throw e;
        } catch (RemoteException e) {
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        } catch (RemoteException e) {
            throw RMIUtils.generalRemoteException(e);
        }

        if (response == null) {
            throw new ExecutionProblem("null report response?");
        }

        final OneReport_Type[] reports = response.getReport();
        if (reports == null) {
            return EMPTY_RESPONSE;
        }

        final Workspace[] ret = new Workspace[reports.length];
        for (int i = 0; i < reports.length; i++) {
            if (reports[i] == null) {
                throw new ExecutionProblem("null report entry?");
            }
            try {
                ret[i] = this.convert(reports[i]);
            } catch (Exception e) {
                throw new ExecutionProblem(e.getMessage(), e); // ...
            }
        }

        return ret;
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

    protected ContextualizationContext convert(GetResourcePropertyResponse resp)
            throws ExecutionProblem {

        if (resp == null) {
            throw new ExecutionProblem("No response element from query?");
        }

        final MessageElement elem = resp.get_any()[0];
        if (elem == null) {
            throw new ExecutionProblem("No message in query response");
        }

        final ContextualizationContext context;
        try {
            context = (ContextualizationContext)
                    ObjectDeserializer.toObject(elem,
                                                ContextualizationContext.class);
        } catch (DeserializationException e) {
            final String err = CommonUtil.genericExceptionMessageWrapper(e);
            throw new ExecutionProblem(
                    "Problem deserializing query response: " + err, e);
        }

        return context;
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            this.clusterMember = member;

            this.image = member.getImageName();
            if (this.image == null ||
                    this.image.trim().length() == 0) {
                throw new ExecutionProblem("image name missing from " +
                        "cluster document");
            }
            this.quantity = member.getQuantity();

        }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

     * @see #generalRemoteExceptionHandler(RemoteException)
     */
    public static ExecutionProblem generalRemoteException(RemoteException e) {

        final String msg = CommonUtil.genericExceptionMessageWrapper(e);
        return new ExecutionProblem("General error: " + msg, e);
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            }
       
        } catch (BaseFaultType e) {
            final String err =
                    CommonStrings.faultStringOrCommonCause(e, "ensemble");
            throw new ExecutionProblem(err, e);
        }

        if (result.oneErrorExists) {

            if (this.pr.enabled()) {
                final String msg =
                        "Encountered a problem launching " + this.nameToPrint;
                if (this.pr.useThis()) {
                    this.pr.infoln(PrCodes.ENSMONITOR__ONE_ERROR, msg);
                } else if (this.pr.useLogging()) {
                    logger.info(msg);
                }
            }

        } else if (result.allAtState) {

            if (this.pr.enabled()) {
                final String msg = this.nameToPrint + ": all members are " +
                        this.targetState.toString();
                if (this.pr.useThis()) {
                    this.pr.infoln(PrCodes.ENSMONITOR__ALL_RUNNING,
                                   "  - " + msg);
                } else if (this.pr.useLogging()) {
                    logger.info(msg);
                }
            }

        } else {
            throw new ExecutionProblem("Incorrect response from report query?");
        }

        if (result.workspaces == null) {
            throw new ExecutionProblem("Incorrect response from report query?");
        }

        // both oneErrorExists and allRunning trigger report(s) if path is configured
        if (this.args.reportDir != null) {
            this.writeReports(result);
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            return new StateOrTerminated(state);
           
        } catch (ResourceUnknownFaultType unknown) {
            return new StateOrTerminated(null);
        } catch (Exception e) {
            throw new ExecutionProblem(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            return this._queryOnce();
        } catch (ResourceUnknownFaultType e) {
            throw e;
        } catch (Exception e) {
            final String err = "Problem querying resource properties: ";
            throw new ExecutionProblem(err + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        final ServiceRPSet rpSet = (ServiceRPSet) resp.get_any()[0].
                        getValueAsType(Constants_GT4_0.RP_SET,
                                       ServiceRPSet.class);

        if (rpSet == null) {
            throw new ExecutionProblem("No factory RP set returned");
        }
        return convert(rpSet, this.epr);
    }
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.