Examples of ServiceRuntimeException


Examples of org.osoa.sca.ServiceRuntimeException

            OMElement omElement = builder.getDocumentElement();

            return omElement;

        } catch (IOException e) {
            throw new ServiceRuntimeException(e);
        } catch (XMLStreamException e) {
            throw new ServiceRuntimeException(e);
        } catch (FactoryConfigurationError e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            OperationClient operationClient = serviceClient.createClient(invoker.getWSDLOperationName());

            return invoker.invokeOperation(operationClient, args);

        } catch (AxisFault e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            axisConfigBuilder.populateConfig();
            serviceInputStream.close();
            return ConfigurationContextFactory.createConfigurationContext(this);
        } catch (IOException e) {

            throw new ServiceRuntimeException(e);
        }

    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            pos.close();

            return pos.toByteArray();

        } catch (IOException e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            XMLDocument document = xmlHelper.load(new ByteArrayInputStream(xmlBytes));

            return document.getRootObject();

        } catch (IOException e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            for (SourceWireFactory proxyFactory : sourceProxyFactories) {
                context.put(proxyFactory.getConfiguration().getReferenceName(), proxyFactory.createProxy());
            }
            return context;
        } catch (ProxyCreationException e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

                }
               
            });
        } catch (WorkException e) {
            //FIXME Which exception should we throw here?
            throw new ServiceRuntimeException(e);
        }
       
        // No return on a OneWay invocation.
        return messageFactory.createMessage();
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

        if (wire != null) {
            try {
                // Clone the wire so that reference parameters can be changed
                this.wire = (RuntimeWire)wire.clone();
            } catch (CloneNotSupportedException e) {
                throw new ServiceRuntimeException(e);
            }
        }
        InterfaceContract contract = wire.getSource().getInterfaceContract();
        this.conversational = contract.getInterface().isConversational();
    }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        if (Object.class == method.getDeclaringClass()) {
            return invokeObjectMethod(method, args);
        }
        if (wire == null) {
            throw new ServiceRuntimeException("No runtime wire is available");
        }
        InvocationChain chain = getInvocationChain(method, wire);
        if (chain == null) {
            throw new IllegalArgumentException("No matching operation is found: " + method);
        }
View Full Code Here

Examples of org.osoa.sca.ServiceRuntimeException

            RuntimeComponentReference reference = (RuntimeComponentReference)wireSource.getContract();
            Binding refBinding = wireSource.getBinding();
            for (Operation operation : sourceContract.getInterface().getOperations()) {
                Operation targetOperation = interfaceContractMapper.map(targetContract.getInterface(), operation);
                if (targetOperation == null) {
                    throw new ServiceRuntimeException("No matching operation for " + operation.getName()
                        + " is found in reference "
                        + wireSource.getComponent().getURI()
                        + "#"
                        + reference.getName());
                }
                InvocationChain chain = new InvocationChainImpl(operation, targetOperation);
                if (operation.isNonBlocking()) {
                    addNonBlockingInterceptor(reference, refBinding, chain);
                }
                addBindingInterceptor(reference, refBinding, chain, operation);
                chains.add(chain);
            }
        } else {
            // It's the service wire
            RuntimeComponentService service = (RuntimeComponentService)wireTarget.getContract();
            RuntimeComponent serviceComponent = wireTarget.getComponent();
            for (Operation operation : sourceContract.getInterface().getOperations()) {
                Operation targetOperation = interfaceContractMapper.map(targetContract.getInterface(), operation);
                if (targetOperation == null) {
                    throw new ServiceRuntimeException("No matching operation for " + operation.getName()
                        + " is found in service "
                        + serviceComponent.getURI()
                        + "#"
                        + service.getName());
                }
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.