Package org.apache.servicemix.nmr.api

Examples of org.apache.servicemix.nmr.api.ServiceMixException


                synchronized (this.references) {
                    this.references.put(ref, true);
                }
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
                throw new ServiceMixException("Invalid filter syntax: " + e.getMessage());
            }
        } catch (NoClassDefFoundError e) {
            throw new UnsupportedOperationException(e);
        }
    }
View Full Code Here


                    if (internalDispatch(exchange, endpoint, true)) {
                        return;
                    }
                }
                if (!match) {
                    throw new ServiceMixException("Could not dispatch exchange. No matching endpoints.");
                } else if (!securityMatch) {
                    throw new ServiceMixException("User not authenticated or not authorized to access any matching endpoint.");
                } else {
                    throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
                }
            } else {
                if (!internalDispatch(exchange, exchange.getDestination(), false)) {
                    throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
                }
            }
        } else {
            if (!internalDispatch(exchange, exchange.getSource(), false)) {
                throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
            }
        }
    }
View Full Code Here

                doRegister(service, properties);
            } catch (Exception e) {
                logger.warn("Unable to register service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
                registry.remove(service);
                throw new ServiceMixException("Unable to register service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
            }
        }
    }
View Full Code Here

            try {
                doUnregister(service, properties);
            } catch (Exception e) {
                logger.warn("Unable to unregister service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
                throw new ServiceMixException("Unable to unregister service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
            }
        }
    }
View Full Code Here

                doRegister(service, properties);
            } catch (Exception e) {
                logger.warn("Unable to register service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
                registry.remove(service);
                throw new ServiceMixException("Unable to register service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
            }
        }
    }
View Full Code Here

            try {
                doUnregister(service, properties);
            } catch (Exception e) {
                logger.warn("Unable to unregister service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
                throw new ServiceMixException("Unable to unregister service " +
                        service + " with properties " + properties + ". Reason: " + e, e);
            }
        }
    }
View Full Code Here

                    }
                });
                this.references.put(ref, true);
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
                throw new ServiceMixException("Invalid filter syntax: " + e.getMessage());
            }
        } catch (NoClassDefFoundError e) {
            throw new UnsupportedOperationException(e);
        }
    }
View Full Code Here

                            flow.dispatch(exchange);
                            return;
                        }
                    }
                }
                throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
            } else {
                for (Flow flow : getServices()) {
                    if (flow.canDispatch(exchange, exchange.getDestination())) {
                        flow.dispatch(exchange);
                        return;
                    }
                }
                throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
            }
        } else {
            for (Flow flow : getServices()) {
                if (flow.canDispatch(exchange, exchange.getSource())) {
                    flow.dispatch(exchange);
                    return;
                }
            }
            throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
        }
    }
View Full Code Here

            inMessage.setDestination(this);
            getMessageObserver().onMessage(inMessage);

        } catch (Exception ex) {
            getLogger().log(Level.SEVERE, new org.apache.cxf.common.i18n.Message("ERROR.PREPARE.MESSAGE", getLogger()).toString(), ex);
            throw new ServiceMixException(ex);
        }
    }
View Full Code Here

                    }
                });
                this.references.put(ref, true);
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
                throw new ServiceMixException("Invalid filter syntax: " + e.getMessage());
            }
        } catch (NoClassDefFoundError e) {
            throw new UnsupportedOperationException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.api.ServiceMixException

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.