Hi, I am trying out a small POC which has two composites using RMI binding b/w them, the service(POValidation Service) is similar to Calculator Service with two references to components which is working fine and starting. The other composite which is the reference consists two components(PORequest, CustValidation), PORequest refers to the local component(CustValidation) as well as the service(POValidation Service) which is exposed using RMI binding I tried following the same flow as given in the bigbank demo but I am facing few issues.
The client is sending the input data in a java object(POForm). Below are the composite file and the console output: <?xml version="1.0" encoding="UTF-8"?> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0" targetNamespace="http://purchase.poc" xmlns:cv="http://purchase.poc <http://purchase.poc.infosys.com/>" name="PurchaseOrderRequest"> <component name="PORequestComponent"> <implementation.java class="purchase.PORequestImpl"/> <reference name="custValidation" target="CustomerValidationComponent"/> <reference name="POValidationReference"> <tuscany:binding.rmi host="localhost" port="8099" serviceName="POValidationRMIService"/> </reference> </component> <component name="CustomerValidationComponent"> <implementation.java class=" poc.purchase.customervalidation.CustomerValidationImpl"/> </component> </composite> ================================================================================================== *Console:* run: [java] Sep 27, 2007 6:16:46 PM org.apache.tuscany.sca.assembly.builder.impl.Comp ositeBuilderImpl$1 problem [java] WARNING: [WARNING] Reference not found for component reference: PurchaseO rderRequestComponent/custValidation null [java] Sep 27, 2007 6:16:46 PM org.apache.tuscany.sca.assembly.builder.impl.Comp ositeBuilderImpl$1 problem [java] WARNING: [WARNING] Reference not found for component reference: PurchaseO rderRequestComponent/POValidationReference null [java] Exception in thread "main" java.lang.IllegalArgumentException: Pass-by-va lue is not supported for the given object [java] at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding. copy(JavaBeansDataBinding.java:84) [java] at org.apache.tuscany.sca.databinding.DefaultDataBindingExtensionPoin t$LazyDataBinding.copy(DefaultDataBindingExtensionPoint.java:158) [java] at org.apache.tuscany.sca.implementation.java.invocation.PassByValueI nvoker.copy(PassByValueInvoker.java:103) [java] at org.apache.tuscany.sca.implementation.java.invocation.PassByValueI nvoker.copy(PassByValueInvoker.java:88) [java] at org.apache.tuscany.sca.implementation.java.invocation.PassByValueI nvoker.invoke(PassByValueInvoker.java:60) [java] at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCABindingInvoker.i nvoke(RuntimeSCABindingInvoker.java:48) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke (JDKInvocationHandler.java:270) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke (JDKInvocationHandler.java:114) [java] at $Proxy5.getConfirmation(Unknown Source) [java] at poc.purchase.client.PurchaseOrderClient.main(PurchaseO rderClient.java:25) [java] Caused by: java.lang.IllegalArgumentException: Argument type ' poc.purchase.POForm' is not Serializable. Pass-by-value cannot be perfor med on this argument [java] at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding. copy(JavaBeansDataBinding.java:80) [java] ... 9 more [java] Java Result: 1 Any help in this regard is highly appreciated. Thanks & Regards, Ashwini Kumar Jeksani
