Hi there,
My scenario is:
1) The trigger of my process refers to a web service with a purchase order input type (defined on my own xsd file). This PO type has a header and a collection of items.
2) I have a WD4J app which allows the user to enter a PO id and uses a composed service to get PO details before triggering the process
3) The composed service call the following SAP BAPIs:
- BAPI_PO_GETDETAIL1: to get PO header data
- BAPI_VENDOR_GETDETAIL: to get vendor/supplier information
4) I have an EJB to perform the mapping between the collection BAPI_PO_GETDETAIL1.Response/POITEM/item (cardinality is 0.**, type is BAPIMEPOITEM) to my own PO data structure
5) I have defined a EJB mapping function which receives an argument called parameter1 of type BAPIMEPOITEM, marked as a collection.
Everything compiles and deploy perfectly.
However, when I try to test my composed service using wsnavigator, I get the following Exception.
Any hints? How could I accomplish the same result working around this problem?
Best regards,
Ricardo Giacomin
Server Exception: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: vetta.com.br/log_rec_almox_sc) Exception raised from invocation of public com.vetta.detalhepedido.GetPODetailsResponse com.vetta.detalhepedido.adapted.DetalhePedidoEjb.getPODetails(com.vetta.detalhepedido.GetPODetailsRequest) method on bean instance com.vetta.detalhepedido.adapted.DetalhePedidoEjb @ 544df7e4 for bean vetta.com.br/log_rec_almox_sc*annotation|vetta.com.br~log_rec_almox_sc.jar*annotation|com.vetta.detalhepedido.adapted.DetalhePedidoEjb in application vetta.com.br/log_rec_almox_sc.; nested exception is: java.lang.IllegalStateException: u2028Steps executed successful: 4 from 5: u2028Success: DetalhePedido_NewOperation/BAPI_PO_GETDETAIL1.xml (mappings execution) u2028Success: DetalhePedido_NewOperation/BAPI_PO_GETDETAIL1.xml (service execution) u2028Success: DetalhePedido_NewOperation/BAPI_VENDOR_GETDETAIL.xml (mappings execution) u2028Success: DetalhePedido_NewOperation/BAPI_VENDOR_GETDETAIL.xml (service execution) u2028Failed: DetalhePedido_NewOperation/getPODetails.xml (return value mappings execution) u2028u2028--> Caused by: An error on target path http://vetta.com.br/DetalhePedido/:getPODetailsResponse/out/http://vetta.com.br/DetalhePedido:idFornecedor u2028Details :ClassCastException: class $Proxy2680:vetta.com.br/log_rec_almox_ear @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 583ca424 @ alive incompatible with interface com.sap.glx.mapping.execution.api.function.Function:library:com.sap.glx.mapping.lib @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 25e12e2c @ alive u2028at: IllegalArgumentException: Lookup name 'vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal' invalid u2028at: EJB::vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal( urn:sap-com:document:sap:rfc:functions:BAPI_PO_GETDETAIL1.Response/POITEM/item --> parameter1 ) u2028at: EJB::vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal( urn:sap-com:document:sap:rfc:functions:BAPI_PO_GETDETAIL1.Response/POITEM/item --> parameter1 )/result --set(relay,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse/out/http://vetta.com.br/DetalhePedido:idFornecedor u2028at: . --merge(block,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse/out u2028at: . --merge(block,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse u2028u2028--> Caused by: ClassCastException: class $Proxy2680:vetta.com.br/log_rec_almox_ear @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 583ca424 @ alive incompatible with interface com.sap.glx.mapping.execution.api.function.Function:library:com.sap.glx.mapping.lib @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 25e12e2c @ alive u2028at: IllegalArgumentException: Lookup name 'vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal' invalid u2028at: EJB::vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal( urn:sap-com:document:sap:rfc:functions:BAPI_PO_GETDETAIL1.Response/POITEM/item --> parameter1 ) u2028at: EJB::vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal( urn:sap-com:document:sap:rfc:functions:BAPI_PO_GETDETAIL1.Response/POITEM/item --> parameter1 )/result --set(relay,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse/out/http://vetta.com.br/DetalhePedido:idFornecedor u2028at: . --merge(block,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse/out u2028at: . --merge(block,void)--> http://vetta.com.br/DetalhePedido/:getPODetailsResponse u2028u2028--> Caused by: ClassCastException: class $Proxy2680:vetta.com.br/log_rec_almox_ear @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 583ca424 @ alive incompatible with interface com.sap.glx.mapping.execution.api.function.Function:library:com.sap.glx.mapping.lib @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 25e12e2c @ alive u2028at: IllegalArgumentException: Lookup name 'vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal' invalid u2028u2028--> Caused by: Lookup name 'vetta.com.br/log_rec_almox_ear/LOCAL/ItemPedidoMappingFunction/com.vetta.log.rec.almox.ejb.ItemPedidoMappingFunctionLocal' invalid u2028--> Caused by: class $Proxy2680:vetta.com.br/log_rec_almox_ear @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 583ca424 @ alive incompatible with interface com.sap.glx.mapping.execution.api.function.Function:library:com.sap.glx.mapping.lib @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 25e12e2c @ alive u2028u2028u2028at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.processFault(SOAPTransportBinding.java:2074) u2028at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1415) u2028at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:990) u2028at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:944) u2028at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:76) u2028at com.sap.esi.esp.wsnavigator.lib.Operation.execute(Operation.java:171) u2028