Package org.apache.tuscany.spi.wire

Examples of org.apache.tuscany.spi.wire.InvocationRuntimeException


public class SpringInterceptor implements Interceptor {

    public Message invoke(Message msg) throws InvocationRuntimeException {
        TargetInvoker invoker = msg.getTargetInvoker();
        if (invoker == null) {
            throw new InvocationRuntimeException("No target invoker specified on message");
        }
        return invoker.invoke(msg);
    }
View Full Code Here


        } catch (InvocationTargetException e) {
            Throwable t = e.getCause();
            if (t instanceof Exception) {
                throw AxisFault.makeFault((Exception)t);
            }
            throw new InvocationRuntimeException(e);
        } catch (Exception e) {
            throw AxisFault.makeFault(e);
        }

    }
View Full Code Here

            e.printStackTrace();
            Throwable t = e.getCause();
            if (t instanceof Exception) {
                throw AxisFault.makeFault((Exception)t);
            }
            throw new InvocationRuntimeException(e);
        } catch (Exception e) {
            e.printStackTrace();
            throw AxisFault.makeFault(e);
        }
View Full Code Here

    }

    public Message invoke(Message msg) throws InvocationRuntimeException {
        TargetInvoker invoker = msg.getTargetInvoker();
        if (invoker == null) {
            throw new InvocationRuntimeException("No target invoker specified on message");
        }
        return invoker.invoke(msg);
    }
View Full Code Here

                return operation.invoke(instance, payload);
            } else {
                return operation.invoke(instance, (Object[]) payload);
            }
        } catch (IllegalAccessException e) {
            throw new InvocationRuntimeException(e);
        }
    }
View Full Code Here

        Message resultMsg = next.invoke(msg);
        Object result = resultMsg.getBody();
        // FIXME: How to deal with faults?
        if (resultMsg.isFault()) {
            // We need to figure out what fault type it is and then transform it back the source fault type
            throw new InvocationRuntimeException((Throwable) result);
        } else if (result != null) {
            // FIXME: Should we fix the Operation model so that getOutputType returns DataType<DataType<T>>?
            DataType<DataType> targetType =
                    new DataType<DataType>("idl:output", Object.class, targetOperation.getOutputType());
           
View Full Code Here

        } catch (InvocationTargetException e) {
            Throwable t = e.getCause();
            if (t instanceof Exception) {
                throw AxisFault.makeFault((Exception)t);
            }
            throw new InvocationRuntimeException(e);
        } catch (Throwable t) {
            if (t instanceof Exception) {
                throw AxisFault.makeFault((Exception)t);
            }
            throw new Axis2BindingRunTimeException(t);
View Full Code Here

        OMElement responseOM = responseMC.getEnvelope().getBody().getFirstElement();
        try {
            targetInvoker.invokeTarget(new Object[] {responseOM});
        } catch (InvocationTargetException e) {
            // FIXME what is the appropriate exception here?
            throw new InvocationRuntimeException(e);
        }
    }
View Full Code Here

    public void setComplete(boolean complete) {
        super.setComplete(complete);
    }

    public void onError(Exception e) {
        throw new InvocationRuntimeException(e);
    }
View Full Code Here

                return operation.invoke(instance, payload);
            } else {
                return operation.invoke(instance, (Object[]) payload);
            }
        } catch (IllegalAccessException e) {
            throw new InvocationRuntimeException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.wire.InvocationRuntimeException

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.