1 Reply Latest reply: Feb 11, 2013 12:35 AM by 990290 RSS

    InvocationException while invoking a BPEL process in SOA 11g .

    sundar
      Hi,
      We are calling our BPEL process under weblogic server 11g SOA from standalone Java client .

      we were using the SOA management Java reference 11.1.1.5.0 APIs in our code as shown below:
      we are using the jars:

      ejb30.jar,
      ejb.jar
      fabric-common.jar,
      optic.jar,
      oracle-soa-client-api.jar,
      soa-infra-mgmt.jar,
      wlfullclient.jar,
      wsclient_extended.jar,
      xmlparserv2.jar..

      CompositeDN compositeDN = new CompositeDN("default","MasterBPELProcess", "1.0");
      DirectConnection dic = locator.createDirectConnection(compositeDN, "MasterBPELProcess");


      DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
      DocumentBuilder builder = docBuilderFactory.newDocumentBuilder();
      Document doc = builder.parse(new InputSource(new StringReader(inputPayload)));
      Element root = doc.getDocumentElement();


      Map<String,Element> mpayload = new HashMap<String,Element>();
      mpayload.put("payload", root);


      Payload<Element> payload = PayloadFactory.createXMLPayload(mpayload);
      Message<Element> request = XMLMessageFactory.getInstance().createMessage();
      request.setPayload(payload);
      try {
      Message<Element> response =
      dic.request(operationName, request);}catch(InvocationException e){}



      **we are getting the Below Exception, while sending the request :**
      **try {**
      **Message<Element> response =**
      **dic.request(operationName, request);}catch(InvocationException e){}**

      oracle.soa.api.invocation.InvocationException: ; nested exception is:
      java.io.EOFException; nested exception is: java.io.EOFException
      at oracle.soa.api.DirectConnectionImpl.request(DirectConnectionImpl.java:126)
      at oracle.soa.api.CachedConnectionProxy.request(CachedConnectionProxy.java:57)
      at com.verizon.vsii.initiate.InitializeBPELProcess.initBPEL(InitializeBPELProcess.java:266)
      at com.verizon.vsii.initiate.InitializeBPELProcessBatch.initBPEL(InitializeBPELProcessBatch.java:66)
      at com.verizon.vsii.initiate.InitializeBPELProcessBatch.main(InitializeBPELProcessBatch.java:75)
      Caused by: javax.ejb.EJBException: ; nested exception is:
      java.io.EOFException; nested exception is: java.io.EOFException
      at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)
      at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)
      at $Proxy4.request(Unknown Source)
      at oracle.soa.api.DirectConnectionImpl.request(DirectConnectionImpl.java:114)
      ... 4 more
      Caused by: java.io.EOFException
      at weblogic.rjvm.t3.MuxableSocketT3.endOfStream(MuxableSocketT3.java:345)
      at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:826)
      at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:760)
      BPEL Response:


      Error in executing BPEL process Syncronously
      args.length 0
      at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:941)
      at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:888)
      at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
      at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
      at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)


      Note:
      I have given the code.Pls let's know what is the reason for this exception( asap ), also let us know is there any solution to solve this problem & reference for using that API.

      Edited by: sundar on Nov 11, 2011 6:52 AM