Examples of replyWithFailure()


Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

              }
            }
            catch (Throwable e)
            {
              log.error("WS invocation failed", e);
              mex.replyWithFailure(MessageExchange.FailureType.COMMUNICATION_ERROR, e.getMessage(), null);
            }
            return null;
      }
           
    });
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

                }
                catch (Throwable e)
                {
                  log.error("WS invocation failed", e);
                  mex.replyWithFailure(MessageExchange.FailureType.COMMUNICATION_ERROR, e.getMessage(), null);
                }

                return null;
      }     
     
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

            }
            try {
                switch (m.getStatus()) {
                    case FAILURE:
                        // We can't seem to get the failure out of the myrole mex?
                        pmex.replyWithFailure(MessageExchange.FailureType.OTHER, "operation failed", null);
                        break;
                    case FAULT:
                        Message faultRes = pmex.createMessage(pmex.getOperation().getFault(m.getFault().getLocalPart())
                                .getMessage().getQName());
                        faultRes.setMessage(m.getResponse().getMessage());
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

        // ODE MEX needs to be invoked in a TX.
        try {
            _sched.execIsolatedTransaction(new Callable<Void>() {
                public Void call() throws Exception {
                    PartnerRoleMessageExchange odeMex = (PartnerRoleMessageExchange_server.getEngine().getMessageExchange(odeMexId);
                    odeMex.replyWithFailure(error, errmsg, details);
                    return null;
                }
            });

        } catch (Exception e) {
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

                                odeMex.replyWithFault(faultType, response);
                            } else {
                                if (__log.isDebugEnabled()) {
                                    __log.debug("FAULT RESPONSE(unknown fault type): " + DOMUtils.domToString(odeMsgEl));
                                }
                                odeMex.replyWithFailure(FailureType.OTHER, reply.getEnvelope().getBody()
                                        .getFault().getText(), null);
                            }
                        } else {
                            if (__log.isDebugEnabled()) {
                                __log.debug("RESPONSE (NORMAL): " + DOMUtils.domToString(odeMsgEl));
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

                        }
                    } catch (Exception ex) {
                        String errmsg = "Unable to process response: " + ex.getMessage();
                        __log.error(errmsg, ex);
                        odeMex.replyWithFailure(FailureType.OTHER, errmsg, null);
                    }
                    return null;
                }
            });
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

                    __log.warn("Timeout on JBI message exchange " + inouts[i]);
        try {
            _ode._scheduler.execIsolatedTransaction(new Callable<Void>() {
                public Void call() throws Exception {
                    pmex.replyWithFailure(FailureType.NO_RESPONSE, "Response not received after " + _responseTimeout + "ms.", null);
                    return null;
                }
            });
        } catch (Exception ex) {
            __log.error("Error executing transaction:  ", ex);
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

            }
            try {
                switch (m.getStatus()) {
                    case FAILURE:
                        // We can't seem to get the failure out of the myrole mex?
                        pmex.replyWithFailure(MessageExchange.FailureType.OTHER, "operation failed", null);
                        break;
                    case FAULT:
                        Message faultRes = pmex.createMessage(pmex.getOperation().getFault(m.getFault().getLocalPart())
                                .getMessage().getQName());
                        faultRes.setMessage(m.getResponse().getMessage());
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

                    scheduler.execIsolatedTransaction(new Callable<Void>() {
                        public Void call() throws Exception {
                            PartnerRoleMessageExchange odeMex = (PartnerRoleMessageExchange) server.getEngine().getMessageExchange(mexId);                           
                            String errmsg = "Unable to execute http request : " + e.getMessage();
                            log.error(errmsg, e);
                            odeMex.replyWithFailure(MessageExchange.FailureType.COMMUNICATION_ERROR, errmsg, null);
                            return null;
                        }
                    });
                } catch (Exception e1) {
                    String errmsg = "Error executing reply transaction; reply will be lost.";
View Full Code Here

Examples of org.apache.ode.bpel.iapi.PartnerRoleMessageExchange.replyWithFailure()

        private void unmanagedStatus() throws IOException {
            PartnerRoleMessageExchange odeMex = (PartnerRoleMessageExchange) server.getEngine().getMessageExchange(mexId);
            String errmsg = "Unmanaged Status Code! " + method.getStatusLine();
            log.error(errmsg);
            odeMex.replyWithFailure(MessageExchange.FailureType.OTHER, errmsg, HttpClientHelper.prepareDetailsElement(method));
        }

        /**
         * For 500s if a fault is defined in the WSDL and the response body contains the corresponding xml doc, then reply with a fault ; else reply with failure.
         *
 
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.