Package org.mule.api

Examples of org.mule.api.MessagingException


        MunitTestFlow testFlow = new MunitTestFlow("name", muleContext);
        testFlow.setExpectExceptionThatSatisfies("any");

        when(expressionManager.isExpression(EXPECTED)).thenReturn(false);

        testFlow.expectException(new MessagingException(muleEvent, null), muleEvent);
    }
View Full Code Here


        MunitTestFlow testFlow = new MunitTestFlow("name", muleContext);
        testFlow.setExpectExceptionThatSatisfies("any");

        when(expressionManager.isExpression(EXPECTED)).thenReturn(false);

        testFlow.expectException(new MessagingException(muleEvent, new Exception()), muleEvent);
    }
View Full Code Here

        MunitTestFlow testFlow = new MunitTestFlow("name", muleContext);
        testFlow.setExpectExceptionThatSatisfies(Exception.class.getCanonicalName());

        when(expressionManager.isExpression(EXPECTED)).thenReturn(false);

        testFlow.expectException(new MessagingException(muleEvent, new Exception()), muleEvent);
    }
View Full Code Here

                {
                    MimeType mt = new MimeType(contentType);
                    String messageMimeType = mt.getPrimaryType() + "/" + mt.getSubType();
                    if (!messageMimeType.equals(endpointMimeType))
                    {
                        throw new MessagingException(
                            CoreMessages.unexpectedMIMEType(messageMimeType, endpointMimeType), event);
                    }
                }
                catch (MimeTypeParseException ex)
                {
                    throw new MessagingException(CoreMessages.illegalMIMEType(contentType), event, ex);
                }
            }
        }

        return event;
View Full Code Here

        Message responseMsg;
        AxisEngine engine = getAxis();
        if (engine == null)
        {

            throw new MessagingException(CoreMessages.objectIsNull("Axis Engine"), context.getMessage());
        }
        MessageContext msgContext = new MessageContext(engine);

        String contentType;
        try
View Full Code Here

            {
                throw (MuleException) e;
            }
            else
            {
                throw new MessagingException(event, e);
            }
        }
    }
View Full Code Here

            }
            return messages;
        }
        catch (MuleException e)
        {
            throw new MessagingException(e.getI18nMessage(), event, e);
        }
    }
View Full Code Here

        {
            methodName = (String)event.getMessage().removeProperty(MuleProperties.MULE_METHOD_PROPERTY, PropertyScope.INVOCATION);

            if (null == methodName)
            {
                throw new MessagingException(RmiMessages.messageParamServiceMethodNotSet(), event);
            }
        }

        Class[] argTypes = getArgTypes(event.getMessage().getInvocationProperty(RmiConnector.PROPERTY_SERVICE_METHOD_PARAM_TYPES), event);
View Full Code Here

                workManagerSource.getWorkManager().scheduleWork(new AsyncMessageProcessorWorker(event),
                    WorkManager.INDEFINITE, null, new AsyncWorkListener(delegate));
            }
            catch (Exception e)
            {
                new MessagingException(
                    CoreMessages.errorSchedulingMessageProcessorForAsyncInvocation(delegate), event, e);
            }
        }
        return event;
    }
View Full Code Here

            if (copyEvent)
            {
                if (((DefaultMuleMessage) message).isConsumable())
                {
                    throw new MessagingException(CoreMessages.cannotCopyStreamPayload(message.getPayload().getClass().getName()), event);
                }
                eventToRoute = OptimizedRequestContext.criticalSetEvent(event);
            }
            else
            {
View Full Code Here

TOP

Related Classes of org.mule.api.MessagingException

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.