BPM 11g: problem trying invoke a process instance from Java

Hi all,
I'm trying use this java code http://kr.forums.oracle.com/forums/thread.jspa?messageID=9244238
bpmServiceClientFactory = BPMServiceClientFactory.getInstance(properties, null, null);
bpmContext = bpmServiceClientFactory.getBPMUserAuthenticationService().authenticate(user, password, null);
Task task = bpmServiceClientFactory.getBPMServiceClient().getInstanceManagementService().createProcessInstanceTask(bpmContext, "default/SimpleExpense!1.0soa_fd9a3a31-7f6e-4577-b64a ad1cfc523559/ExpenseProcess");*
and this is the error we get from server... *¿does someone knows how to resolve it?* Thanks.
<16-feb-2011 18H14' CET> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
     at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
     at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
     at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
     at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:227)
     at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:212)
     at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:442)
     at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:378)
     at weblogic.rjvm.http.HTTPClientJVMConnection.run(HTTPClientJVMConnection.java:244)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
>
javax.ejb.EJBException: ; nested exception is:
     java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
     java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
     java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
     java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
     at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:451)
     at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:378)
     at weblogic.rjvm.http.HTTPClientJVMConnection.run(HTTPClientJVMConnection.java:244)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
     at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
     at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
     at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
     at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:227)
     at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:212)
     at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:442)
     ... 5 more

I hope you have got the solution for this problem.
will you please share the solution. as I am also facing the same...
Thanks

Similar Messages

  • Help! How to convert an instance from java.lang.Object to a particula class

    * How to convert an instance from java.lang.Object class to a particular class
    witch is known only at the running time?
    Roster EJB component is make up of RosterHome, Roster and RosterBean.
    RosterHome is the home interface of Roster EJB.
    Roster is the remote interface of Roster EJB.
    RosterBean is the implement of Roster EJB.
    The following code segment is to invoke Roster EJB component.
    String jndiName="roster.RosterHome";
    javax.naming.Context initial = getInitialContext();//getInitialContext() returns a instance of Context.
    Object objref = initial.lookup(jndiName);
    RosterHome home =
    (RosterHome)javax.rmi.PortableRemoteObject.narrow(objref,
    RosterHome.class);
    Roster myRoster = home.create();
    String team="T1"
    String player="Tom"
    myRoster.addPlayer(player,team);
    But, now, all the home interface, the remote interface and the JNDI Name of
    Roster EJB component are not been known at the compiling time. However They are
    known at the running time, throught reading from the XML config file.
    Questions:
    1,How to write code for this case ? or
    2,How to convert an instance from Object class to a particular class witch is known
    only at the running time?
    String jndiName="roster.RosterHome";// in fact, reads from XML file.
    String homeClassName="roster.RosterHome";// in fact, reads from XML file.
    String remoteClassName="roster.Roster";// in fact, reads from XML file.
    javax.naming.Context initial = getInitialContext();//getInitialContext() returns a instance of Context.
    Object objref = initial.lookup(jndiName);
    Object objHome= javax.rmi.PortableRemoteObject.narrow(objref,
    Class.forName(homeClassName));
    /* how to do next?
    }

    I am not sure what you are trying to do. But at some point you should know which methods to call on the remote interfaces. Maybe the method names are stored in the XML file as well or you have a set of standard method names (also consider parameters).
    However, this can be solved by reflection. Look at the java.lang.reflect package, especially java.lang.reflect.Method, and also at java.lang.Class.
    If you are doing this on the app server:
    I've seen posts where people say that reflection is not permitted in EJB, but I don't think so. Check the EJB spec.
    If you are doing this in an application: reflection is always permitted. Probably also in applets and JSP.

  • Invoking unix shell scripts from java?

    Hi,
    could someone explain to me how one wuld invoke unix shell scripts from java.
    Also, could you invoke Visual Basic scripts from java.
    Finally, could you do this from an EJB?
    thanks for any help....
    sudu

    I just posted a snippet of this solution in the topic about widows commands chech it out it works just fine for unix shell scripts.
    --Ian                                                                                                                                                                                                                                                                                       

  • BPM 11g: problem initiate task from API

    Hi all,
    First of all, i have deployed a BPM process and his initiator task is a human task implementation. Then the user can click on it in teh workspace and they are redirect to my J2EE aplication, in wich i want throw a new instance of my process when the user complete the form data.
    I'm do know how to implement it, and i trying two ways:
    one: initiate a process instance with oracle.bpm.service. package the the server give me this error:
    http://kr.forums.oracle.com/forums/thread.jspa?messageID=9244238
    java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
    two: initiate a new task programmatically, is it wright? a new task of my human initiator task from java is that i need for create a BPM Process? i don't know, becouse i get this other error:
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10224/bp_worklistcust.htm#CIHEAFBB
    WSM-09004 Component auditing cannot be initialized
    any ideas? thank you very much in advance, and sorry for my poor english.

    I hope you have got the solution for this problem.
    will you please share the solution. as I am also facing the same...
    Thanks

  • Guided Procedure Administration: Error trying to stop process instance

    Hi guys,
    I habve a problem with the guided procedures. When I try to cancel a running process instance in the guided procedure administration, I get the error below.
    Has someone an idea what the reason could be?
    Br
    Matthias
    java.lang.NullPointerException
      at com.sap.caf.eu.gp.ui.admin.instancemng.CInstanceManagement.terminateInstances(CInstanceManagement.java:435)
      at com.sap.caf.eu.gp.ui.admin.instancemng.wdp.InternalCInstanceManagement.terminateInstances(InternalCInstanceManagement.java:225)
      at com.sap.caf.eu.gp.ui.admin.instancemng.VInstanceTerminate.onActionTerminate(VInstanceTerminate.java:291)
      at com.sap.caf.eu.gp.ui.admin.instancemng.wdp.InternalVInstanceTerminate.wdInvokeEventHandler(InternalVInstanceTerminate.java:170)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
      at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
      at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:156)
      at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:91)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1395)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1215)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:158)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:81)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:506)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:526)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:457)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:248)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:699)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:231)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:230)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
      at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
      at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)

    kglad,
    The structure is this one:
    home_mc (many layers and timeline)
    reel_mc (some layers and just one frame)
    flvReel (FLVPlayback)
    I've done exactly what you said. It still havin' same problem!
    My all output is
    TypeError: Error #1010: A term is undefined and has no properties.
    at index_paraReell_fla::MainTimeline/frame2()[index_paraReell_fla.MainTimeline::frame2:91]
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at index_paraReell_fla::player_3()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at index_paraReell_fla::mp3_2()
    at flash.display::MovieClip/gotoAndPlay()
    at index_paraReell_fla::MainTimeline/loop()[index_paraReell_fla.MainTimeline::frame1:17]
    Same here:
    [object home_7]
    [object super8_69]
    undefined
    TypeError: Error #1010: A term is undefined and has no properties.
    at index_paraReell_fla::MainTimeline/homeBtn()[index_paraReell_fla.MainTimeline::frame2:173]
    My line 91 is: menu.btns.stop(); -> This is working very well, any problem. But don't know if this have any relation.
    No idea what I can do!

  • Problem while invoking Bpel Process from Browser

    server WSDL
    <definitions
         name="getOpenInvoicesService"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
         xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
        >
        <types>
          <schema xmlns="http://www.w3.org/2001/XMLSchema" >
            <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService" schemaLocation="getOpenInvoicesService.xsd" />
          </schema>
        </types>
        <message name="getOpenInvoicesServiceInput_msg">
            <part name="getOpenInvoicesServiceInput_msg" element="db:getOpenInvoicesServiceInput"/>
        </message>
        <message name="getOpenInvoicesServiceOutputCollection_msg">
            <part name="getOpenInvoicesServiceOutputCollection" element="db:getOpenInvoicesServiceOutputCollection"/>
        </message>
        <portType name="getOpenInvoicesService_ptt">
            <operation name="getOpenInvoicesService">
                <input message="tns:getOpenInvoicesServiceInput_msg"/>
                <output message="tns:getOpenInvoicesServiceOutputCollection_msg"/>
            </operation>
        </portType>
        <binding name="getOpenInvoicesService_binding" type="tns:getOpenInvoicesService_ptt">
        <jca:binding  />
            <operation name="getOpenInvoicesService">
          <jca:operation
              SqlString=" SELECT distinct aps.trx_number TrxNumber,       ra.purchase_order PurchaseOrder,       rl.sales_order OrderNumber,       ra.interface_header_attribute2 OrderType,       hc.account_number CustomerNumber,        rt.name TrxType,       aps.acctd_amount_due_remaining AmmountDue,       aps.trx_date TrxDate,        aps.due_date TrxDueDate    FROM ra_customer_trx_all ra     ,   ra_customer_trx_lines_all rl     ,   ar_payment_schedules_all aps     ,   ra_cust_trx_types_all rt         ,   hz_cust_accounts hc              ,   hz_parties hp                    ,   hz_cust_acct_sites_all hcasa_bill,   hz_cust_site_uses_all hcsua_bill ,   hz_party_sites hps_bill          ,   ra_cust_trx_line_gl_dist_all rct   WHERE 1                        = 1 AND ra.customer_trx_id           = rl.customer_trx_id AND ra.customer_trx_id           = aps.customer_trx_id AND ra.org_id                    = aps.org_id AND rct.customer_trx_id          = aps.customer_trx_id AND rct.customer_trx_id          = ra.customer_trx_id AND rct.customer_trx_id          = rl.customer_trx_id AND rct.customer_trx_line_id     = rl.customer_trx_line_id AND ra.complete_flag             = &apos;Y&apos; AND rl.line_type                IN (&apos;FREIGHT&apos;, &apos;LINE&apos;) AND ra.cust_trx_type_id          = rt.cust_trx_type_id AND ra.bill_to_customer_id       = hc.cust_account_id AND hc.status                    = &apos;A&apos; AND hp.party_id                  = hc.party_id AND hcasa_bill.cust_account_id   = ra.bill_to_customer_id AND hcasa_bill.cust_acct_site_id = hcsua_bill.cust_acct_site_id AND hcsua_bill.site_use_code     = &apos;BILL_TO&apos; AND hcsua_bill.site_use_id       = ra.bill_to_site_use_id AND hps_bill.party_site_id       = hcasa_bill.party_site_id AND hcasa_bill.status            = &apos;A&apos; AND hcsua_bill.status            = &apos;A&apos; AND aps.amount_due_remaining    &lt;&gt; 0 AND aps.status                   = &apos;OP&apos; AND hc.account_number= ?"
              InteractionSpec="oracle.tip.adapter.db.DBPureSQLInteractionSpec" >
          </jca:operation>
                <input/>
                <output/>
            </operation>
        </binding>
        <service name="getOpenInvoicesService">
            <port name="getOpenInvoicesService_pt" binding="tns:getOpenInvoicesService_binding">
    <!--Your runtime connection is declared in
    J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
    These mcf properties here are from your design time connection and
    save you from having to edit that file and restart the application server
    if eis/DB/sfh is missing.
    These mcf properties are safe to remove.-->
          <jca:address location="eis/DB/sfh" UIConnectionName="sfh"
              ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
              mcf.DriverClassName="oracle.jdbc.OracleDriver"
              mcf.PlatformClassName="oracle.toplink.internal.databaseaccess.Oracle9Platform"
              mcf.ConnectionString="jdbc:oracle:thin:@localhost:1526:xxxx"
              mcf.UserName="apps"
              mcf.Password="53CB0F044A0D3DD2C063679F18F89870" />
            </port>
        </service>
      <plt:partnerLinkType name="getOpenInvoicesService_plt" >
        <plt:role name="getOpenInvoicesService_role" >
          <plt:portType name="tns:getOpenInvoicesService_ptt" />
        </plt:role>
      </plt:partnerLinkType>
    </definitions>
    client.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
         name="getOpenInvoices"
         targetNamespace="http://xmlns.oracle.com/getOpenInvoices"
         xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
         xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:client="http://xmlns.oracle.com/getOpenInvoices"
         xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
        <types>
            <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/getOpenInvoices" xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="getOpenInvoicesProcessResponse">
            <complexType>
            <sequence>
            <element name="result" type="string"/>
            </sequence>
            </complexType>
            </element>
            <element name="getOpenInvoicesProcessRequest">
            <complexType>
            <sequence>
            <element name="accountNumber" type="string"/>
            </sequence>
            </complexType>
            </element>
            </schema>
        </types>
        <message name="getOpenInvoicesRequestMessage">
            <part name="payload" element="client:getOpenInvoicesProcessRequest"/>
        </message>
        <message name="getOpenInvoicesResponseMessage">
            <part name="payload" element="client:getOpenInvoicesProcessResponse"/>
        </message>
        <portType name="getOpenInvoices">
            <operation name="OpenInvoices">
                <input message="client:getOpenInvoicesRequestMessage"/>
                <output message="client:getOpenInvoicesResponseMessage"/>
            </operation>
        </portType>
        <binding name="OpenInvoicebindings" type="client:getOpenInvoices">
        <http:binding verb="GET"/>
        <operation name="OpenInvoices">
        <http:operation location="/OpenInvoices"/>
        <input>
        <http:urlEncoded/>
        </input>
        <output>
        <mime:mimeXml part="Body"/>
        </output>
        </operation>
        </binding>
        <service name="OpenInvoiceService">
        <port binding="client:OpenInvoicebindings" name="OpenInvoicesport">
        <http:address location="http://sys0004:8889/httpbinding/default/getOpenInvoices"/>
        </port>
        </service>
        <plnk:partnerLinkType name="getOpenInvoices">
            <plnk:role name="getOpenInvoicesProvider">
                <plnk:portType name="client:getOpenInvoices"/>
            </plnk:role>
        </plnk:partnerLinkType>
    </definitions>
    bpel process
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Tue Jul 13 11:05:51 IST 2010
      Author: 
      Purpose: Synchronous BPEL Process
    -->
    <process name="getOpenInvoices"
             targetNamespace="http://xmlns.oracle.com/getOpenInvoices"
             xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
             xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:client="http://xmlns.oracle.com/getOpenInvoices"
             xmlns:ora="http://schemas.oracle.com/xpath/extension"
             xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
      <!--
          PARTNERLINKS                                                     
          List of services participating in this BPEL process              
      -->
      <partnerLinks>
        <!--
          The 'client' role represents the requester of this service. It is
          used for callback. The location and correlation information associated
          with the client role are automatically set using WS-Addressing.
        -->
        <partnerLink name="client" partnerLinkType="client:getOpenInvoices"
                     myRole="getOpenInvoicesProvider"/>
        <partnerLink name="getOpenInvoicesService"
                     partnerRole="getOpenInvoicesService_role"
                     partnerLinkType="ns1:getOpenInvoicesService_plt"/>
      </partnerLinks>
      <!--
          VARIABLES                                                       
          List of messages and XML documents used within this BPEL process
      -->
      <variables>
        <!-- Reference to the message passed as input during initiation -->
        <variable name="inputVariable"
                  messageType="client:getOpenInvoicesRequestMessage"/>
        <!-- Reference to the message that will be returned to the requester-->
        <variable name="outputVariable"
                  messageType="client:getOpenInvoicesResponseMessage"/>
        <variable name="Invoke_1_getOpenInvoicesService_InputVariable"
                  messageType="ns1:getOpenInvoicesServiceInput_msg"/>
        <variable name="Invoke_1_getOpenInvoicesService_OutputVariable"
                  messageType="ns1:getOpenInvoicesServiceOutputCollection_msg"/>
      </variables>
      <!--
         ORCHESTRATION LOGIC                                              
         Set of activities coordinating the flow of messages across the   
         services integrated within this business process                 
      -->
      <sequence name="main">
        <!-- Receive input from requestor. (Note: This maps to operation defined in getOpenInvoices.wsdl) -->
        <receive name="receiveInput" partnerLink="client"
                 portType="client:getOpenInvoices" operation="OpenInvoices"
                 variable="inputVariable" createInstance="yes"/>
        <!-- Generate reply to synchronous request -->
        <assign name="Assign_1">
          <copy>
            <from variable="inputVariable" part="payload"/>
            <to variable="Invoke_1_getOpenInvoicesService_InputVariable"
                part="getOpenInvoicesServiceInput_msg"/>
          </copy>
        </assign>
        <invoke name="Invoke_1" partnerLink="getOpenInvoicesService"
                portType="ns1:getOpenInvoicesService_ptt"
                operation="getOpenInvoicesService"
                inputVariable="Invoke_1_getOpenInvoicesService_InputVariable"
                outputVariable="Invoke_1_getOpenInvoicesService_OutputVariable"/>
        <assign name="Assign_2">
          <copy>
            <from variable="Invoke_1_getOpenInvoicesService_OutputVariable"
                  part="getOpenInvoicesServiceOutputCollection"/>
            <to variable="outputVariable" part="payload"/>
          </copy>
        </assign>
        <reply name="replyOutput" partnerLink="client"
               portType="client:getOpenInvoices" operation="OpenInvoices"
               variable="outputVariable"/>
      </sequence>
    </process>the above is the server and client wsdls and Bpel process. i have created the wsdl so as to call from HTTP calling, means process is been called from Browser .... but i can't see the result ...
    http://sys0004:8889/httpbinding/default/getOpenInvoices/OpenInvoices?accountNumber=1608
    above is the link called from browser
    output in the browser ::: <getOpenInvoicesProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/getOpenInvoices" />
    actually it has to fetch data from DB and show in xml format can anyone assist me where i am going wrong

    Hi Rajesh,
    Please refer \bpel\samples\tutorials\102.InvokingProcesses\jsp.
    BPEL Tutorial 7: Invoking BPEL Processes through SOAP and Java : Reference: 2004/06/14/orabpel/d5/1.0
    Hope this helps!
    Regards
    Anirudh Pucha

  • Initiating BPM Process Instances from External Web Service Call

    I'm attempting to update the HelloWorld example so that I can create an instance of the process from an External Web Services Call rather than via the Workspace. Our current SOA Architecture is configured so that all BPM instances are managed through a .NET SmartClient via the Service Bus and the use of PAPI W/S and so I'm wishing to recreate this capability in the new BPM.
    I understand the replacement for PAPI W/S is Human Workflow so I've therefore updated and republished the HelloWorld Example with an Exposed 'TaskService' Service for the Human Task within the BPM Process.
    I've then attempted to reference the TaskService through our existing BPM, and have been able to import a number of generic WSDL's as follows:
    Task Service
    http://vmaquatestapp2:7001/integration/services/TaskService/TaskServicePort?WSDL
    Task Metadata Service
    http://vmaquatestapp2:7001/integration/services/TaskMetadataService/TaskMetadataServicePort?WSDL
    Task Query Service
    http://vmaquatestapp2:7001/integration/services/TaskQueryService/TaskQueryService?WSDL
    When I examine the available operations for these generic services, there are quite a lot, each of which have a fairly complex schema. I believe I should be using the TaskService: InitiateTask Operation to create an instance of my BPM Process but my questions are:
    - Is the above the correct method of interacting with BPM Instances from an external system such as the Service Bus?
    - Does anyone have any examples of a basic XML payload that would initiate a process instance?

    I created an process with a message start event and can call it from an external web service call. I can also pass input arguments and map those to process data objects. However I can not find how to return data as response to the external web service call as e.g. the process instance id.
    Is it possible to this?
    Gr,
    Gert Jan Kersten

  • Problem in invoking BPEL process from jsp

    Dear Experts,
    I am trying to invoke BPEL process from simple JSP form, with guide lines of http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm. But I'm receiving the following error
    Error: JSP files must reside in the server root directory or a subdirectory beneath it
    Note: I having my JSP page inside my project folder-->output_html--> myfile.jsp
    Thanks,
    Rajesh

    Hi Rajesh,
    Please refer \bpel\samples\tutorials\102.InvokingProcesses\jsp.
    BPEL Tutorial 7: Invoking BPEL Processes through SOAP and Java : Reference: 2004/06/14/orabpel/d5/1.0
    Hope this helps!
    Regards
    Anirudh Pucha

  • Problem in invoking a BPEL flow using java client

    Hi,
    We are new to BPEL. We tried invoking a flow (assign, invoke, assign) from a java client and we are facing the following exception :
    =========================
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting f
    or response has timed out. The conversation id is null. Please check the process
    instance for detail.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}hostname: alk3wks30a
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response ha
    s timed out. The conversation id is null. Please check the process instance for
    detail.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
    .java:251)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
    java:168)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
    alizationContextImpl.java:1001)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:242)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
    at org.apache.axis.client.Call.invoke(Call.java:2515)
    at org.apache.axis.client.Call.invoke(Call.java:2210)
    at org.apache.axis.client.Call.invoke(Call.java:2133)
    at org.apache.axis.client.Call.invoke(Call.java:1656)
    at SampleClient.initiate(SampleClient.java:87)
    at SampleClient.main(SampleClient.java:126)
    ==========================================================
    Here is our java client.
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.client.Call;
    * @version 2.0 $Date: 07-mar-2005.05:07:45 $
    * @author Copyright (c) 2004 by Oracle. All Rights Reserved.
    public class SampleClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private static String PARAMETER_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"Hello");
    PORT_TYPE = new QName(THIS_NAMESPACE,"HelloPort") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"process");
    SOAP_ACTION = "process";
    STYLE = "document";
    public void setLocation(String location)
    this.location = location;
    public void initiate() throws Exception
    try
    /* Create Service and Call object */
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    /* Set all of the stuff that would normally come from WSDL */
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setProperty( Call.OPERATION_STYLE_PROPERTY , STYLE );
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"input"), XMLType.XSD_STRING, ParameterMode.IN);
    //call.setReturnType(new QName(PARAMETER_NAMESPACE,XMLType.XSD_STRING));
    call.setReturnType(new QName("http://www.w3.org/2001/XMLSchema","string"));
    Object[] params = new Object[1];
    params[0] = new String("Sanju");
    /* Invoke the service */
    String result = (String)call.invoke(params);
    System.out.println( "UseStockReviewSheet BPEL process initiated"+ result );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    public static void main(String[] args) throws Exception
    //String symbol = "ORCL";
    String location = "http://localhost:1000/orabpel/default/Hello/1.0";
         SampleClient client = new SampleClient();
    /* if(args.length == 1)
    symbol = args[0];
    else if(args.length ==2)
    location = args[0];
    symbol = args[1];
    client.setLocation( location );
    client.initiate();
    Please help us in fixing the problem
    Thanks In Advance

    Hi,
    Thanks a lot for your reply. When we tested the process flow in BPEL console it is giving desired output. The exception trace in the dos console is as following
    ======================================
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFro
    mValue(BPELAssignWMP.java:490)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__execu
    teStatements(BPELAssignWMP.java:122)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:188)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3408)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1836)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:166)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:252)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5438)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1217)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.creat
    eAndInvoke(CubeEngineBean.java:120)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncC
    reateAndInvoke(CubeEngineBean.java:153)
    06/07/04 18:08:01 at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.syn
    cCreateAndInvoke(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:486)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequestAnyType(DeliveryHandler.java:520)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequest(DeliveryHandler.java:435)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.requ
    est(DeliveryHandler.java:132)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.pro
    cessBPELMessage(CXSOAPProvider.java:632)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.inv
    oke(CXSOAPProvider.java:133)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.strategies.Invocat
    ionStrategy.visit(InvocationStrategy.java:32)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.doVisi
    ting(SimpleChain.java:118)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.invoke
    (SimpleChain.java:83)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.handlers.soap.SOAP
    Service.invoke(SOAPService.java:450)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.server.AxisServer.
    invoke(AxisServer.java:285)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServlet.doPost(AxisServlet.java:653)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:760)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServletBase.service(AxisServletBase.java:301)
    06/07/04 18:08:01 at com.collaxa.cube.fe.CollaxaServlet.service(CollaxaSer
    vlet.java:134)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:853)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:824)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.for
    wardInternal(ServletRequestDispatcher.java:330)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.processRe
    quest(HttpRequestHandler.java:830)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:285)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:126)
    06/07/04 18:08:01 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:186)
    06/07/04 18:08:01 at java.lang.Thread.run(Thread.java:534)
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.cli
    ent.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-proce
    ss/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input"
    is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/cli
    ent:input" is not empty.
    </summary>}}
    ==========================================
    And the Error logging in domain.log is
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input" is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/client:input" is not empty.
    </summary>}}
    Wating for ur response.
    Thank you.

  • Problem when calling BPEL process (WS) from APEX

    I am trying to add a web service call to a BPEL process I have created (tried a few others aswell), but every time I try to add the WDSL file I get the following error:
    *1 error has occurred*
    The WSDL document contains multiple SOAP bindings. Application Express only supports WSDL's with one SOAP binding. Click Create Web Service Reference Manually to continue creating a reference for this service.
    It is a simple BPEL process which works fine when called from the BPEL Console, however I have no success when calling it from APEX.
    Am I doing something wrong, or is there a bug in BPEL/APEX?
    Oracle BPEL Console v10.1.3.1.0
    Apex: 3.2
    The WDSL looks like this:
    <definitions name="BPELProcess9" targetNamespace="http://xmlns.oracle.com/BPELProcess9">

    <types>

    <schema>
    <import namespace="http://xmlns.oracle.com/BPELProcess9" schemaLocation="BPELProcess9.xsd"/>
    </schema>

    <schema>
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://xxx:8888/orabpel/xmllib/ws-addressing.xsd"/>
    </schema>
    </types>

    <message name="BPELProcess9ResponseMessage">
    <part name="payload" element="tns:BPELProcess9ProcessResponse"/>
    </message>

    <message name="BPELProcess9RequestMessage">
    <part name="payload" element="tns:BPELProcess9ProcessRequest"/>
    </message>

    <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    </message>

    <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo"/>
    </message>

    <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    </message>

    <portType name="BPELProcess9Callback">

    <operation name="onResult">
    <input message="tns:BPELProcess9ResponseMessage"/>
    </operation>
    </portType>

    <portType name="BPELProcess9">

    <operation name="initiate">
    <input message="tns:BPELProcess9RequestMessage"/>
    </operation>
    </portType>

    <binding name="BPELProcess9Binding" type="tns:BPELProcess9">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>

    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>

    <binding name="BPELProcess9CallbackBinding" type="tns:BPELProcess9Callback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="onResult">
    <soap:operation style="document" soapAction="onResult"/>

    <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>

    <service name="BPELProcess9">

    <port name="BPELProcess9Port" binding="tns:BPELProcess9Binding">
    <soap:address location="http://xxxx:8888/orabpel/default/BPELProcess9/1.1"/>
    </port>
    </service>

    <service name="BPELProcess9CallbackService">

    <port name="BPELProcess9CallbackPort" binding="tns:BPELProcess9CallbackBinding">
    <soap:address location="http://set.by.caller"/>
    </port>
    </service>

    <plnk:partnerLinkType name="BPELProcess9">

    <plnk:role name="BPELProcess9Requester">
    <plnk:portType name="tns:BPELProcess9Callback"/>
    </plnk:role>

    <plnk:role name="BPELProcess9Provider">
    <plnk:portType name="tns:BPELProcess9"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    Allow me to reply to my own thread, for the benefit of any others who might want to invoke a BPEL WS from APEX facing the same problem:
    Apex does not seem to like asynchronous BPEL processes so the trick is to make a synchronous BPEL process call the asynchronous BPEL process.

  • Can't invoke a process control from a pageflow

    I create a simple pageflow that invokes a process control (jpd file) to start a
    business process. I created a process control from the jpd and added it as a control
    to the pageflow. I can run the process indepedently in the test harness, but cannot
    invoke from my pageflow.
    Any ideas what what could be wrong?
    When I invoke a method on the process control I get the following in the test
    browser:
    An error has occurred:
    EJB Exception: ; nested exception is:
    com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl invocation
    failed[null]
    caused by: : com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation failed[null]
    In the server console I have the following exceptions:
    <Dec 9, 2003 8:16:01 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level; Metho
    d=processes.customerNeed.SubmitNeed_wf.$__clientRequest(); Failure=java.lang.Cla
    ssCastException [ServiceException]>
    <Dec 9, 2003 8:16:01 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level; Metho
    d=processes.customerNeed.SubmitNeedControl.clientRequest(); Failure=com.bea.cont
    rol.ProcessControlException: [WLI-Core:530214]ProcessControl invocation failed[n
    ull]>
    [IDSSPortal] Unhandled exception caught in Global.app:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation failed[null]
    at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRunti
    meUtils.java:103)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome
    .java:295)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:2
    53)
    at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObj
    ect.java:141)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:110)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceH
    andleImpl.java:285)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(WlwProxyImpl.
    java:240)
    at $Proxy8.clientRequest(Unknown Source)
    at pageFlows.customerNeed.customerNeedController.submitNeed(customerNeed
    Controller.jpf:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowCont
    roller.java:1262)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Flow
    Controller.java:1214)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java
    :650)
    at com.bea.wlw.netui.pageflow.PageFlowController.execute(PageFlowControl
    ler.java:278)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:480)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:429)
    at com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(Dynamic
    SubappActionServlet.java:405)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessCont
    rol invocation failed[null]
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:369)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    0)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24
    5)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.ja
    va:85)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContai
    nerBean.java:185)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerB
    ean.java:103)
    at com.bea.wlwgen.SubmitNeedControlSLSBContImpl.clientRequest(SubmitNeed
    ControlSLSBContImpl.java:25)
    at com.bea.wlwgen.StatelessContainer_a0ubma_ELOImpl.clientRequest(Statel
    essContainer_a0ubma_ELOImpl.java:423)
    at com.bea.wlwgen.SubmitNeedControlSLSBContAdpt.invokeOnBean(SubmitNeedC
    ontrolSLSBContAdpt.java:62)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDisp
    atcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatche
    rBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatche
    rBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:100)
    ... 32 more
    Caused by: java.lang.ClassCastException [ServiceException]
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :379)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    0)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24
    5)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContai
    nerBean.java:185)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBea
    n.java:1530)
    at com.bea.wlwgen.SubmitNeedBMPContImpl.clientRequest(SubmitNeedBMPContI
    mpl.java:25)
    at com.bea.wlwgen.PersistentContainer_cfepz3_ELOImpl.clientRequest(Persi
    stentContainer_cfepz3_ELOImpl.java:207)
    at com.bea.wlwgen.SubmitNeedBMPContAdpt.invokeOnBean(SubmitNeedBMPContAd
    pt.java:80)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDisp
    atcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatche
    rBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatche
    rBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceH
    andleImpl.java:285)
    at com.bea.wlw.runtime.core.call.JavaCall.invoke(JavaCall.java:57)
    at com.bea.wli.bpm.runtime.SubFlowCall.invoke(SubFlowCall.java:42)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceCon
    trolImpl.jcs:873)
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:421)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceCon
    trolImpl.jcs:754)
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:359)
    ... 46 more
    Caused by: java.lang.ClassCastException
    at processes.customerNeed.SubmitNeed_wf.$__clientRequest(SubmitNeed_wf.j
    ava:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :353)
    ... 65 more

    Some additional information:
    The problem seems to be related to a custom object that I am passing to the exposed
    clientRequest(String, CustomObj) method in the process control. If I remove the
    CustomObj parameter, all works fine. Unfortunately, I need to pass that object
    to the workflow. I have the CustomObj define within my project "Project/com/omeninc/package/CustomObj",
    my process file located at "Project/processes/customerNeed/SubmitNeed.jpd" and
    my pageflow define at "Project/pageFlows/customerNeed/customerNeedController.jpf".
    The entire project builds without error, but when I run it I get the ClassCastException.
    Thanks in advance for any assistance!!
    <Dec 9, 2003 9:39:59 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level; Metho
    d=processes.customerNeed.SubmitNeed_wf.$__clientRequest(); Failure=java.lang.ClassCastException
    [ServiceException]>
    <Dec 9, 2003 9:39:59 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level; Metho
    d=processes.customerNeed.SubmitNeedControl.clientRequest(); Failure=com.bea.cont
    rol.ProcessControlException: [WLI-Core:530214]ProcessControl invocation failed[null]>
    [IDSSPortal] Unhandled exception caught in Global.app:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation failed[null]
    "Jim Anzaldi" <[email protected]> wrote:
    >
    I create a simple pageflow that invokes a process control (jpd file)
    to start a
    business process. I created a process control from the jpd and added
    it as a control
    to the pageflow. I can run the process indepedently in the test harness,
    but cannot
    invoke from my pageflow.
    Any ideas what what could be wrong?
    When I invoke a method on the process control I get the following in
    the test
    browser:
    An error has occurred:
    EJB Exception: ; nested exception is:
    com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation
    failed[null]
    caused by: : com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation failed[null]
    In the server console I have the following exceptions:
    <Dec 9, 2003 8:16:01 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level;
    Metho
    d=processes.customerNeed.SubmitNeed_wf.$__clientRequest(); Failure=java.lang.Cla
    ssCastException [ServiceException]>
    <Dec 9, 2003 8:16:01 AM GMT-05:00> <Warning> <WLW> <000000> <Id=top-level;
    Metho
    d=processes.customerNeed.SubmitNeedControl.clientRequest(); Failure=com.bea.cont
    rol.ProcessControlException: [WLI-Core:530214]ProcessControl invocation
    failed[n
    ull]>
    [IDSSPortal] Unhandled exception caught in Global.app:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessControl
    invocation failed[null]
    at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRunti
    meUtils.java:103)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome
    .java:295)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:2
    53)
    at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObj
    ect.java:141)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:110)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceH
    andleImpl.java:285)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(WlwProxyImpl.
    java:240)
    at $Proxy8.clientRequest(Unknown Source)
    at pageFlows.customerNeed.customerNeedController.submitNeed(customerNeed
    Controller.jpf:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowCont
    roller.java:1262)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Flow
    Controller.java:1214)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java
    :650)
    at com.bea.wlw.netui.pageflow.PageFlowController.execute(PageFlowControl
    ler.java:278)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:480)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:429)
    at com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(Dynamic
    SubappActionServlet.java:405)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.bea.control.ProcessControlException: [WLI-Core:530214]ProcessCont
    rol invocation failed[null]
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:369)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    0)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24
    5)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.ja
    va:85)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContai
    nerBean.java:185)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerB
    ean.java:103)
    at com.bea.wlwgen.SubmitNeedControlSLSBContImpl.clientRequest(SubmitNeed
    ControlSLSBContImpl.java:25)
    at com.bea.wlwgen.StatelessContainer_a0ubma_ELOImpl.clientRequest(Statel
    essContainer_a0ubma_ELOImpl.java:423)
    at com.bea.wlwgen.SubmitNeedControlSLSBContAdpt.invokeOnBean(SubmitNeedC
    ontrolSLSBContAdpt.java:62)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDisp
    atcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatche
    rBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatche
    rBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:100)
    ... 32 more
    Caused by: java.lang.ClassCastException [ServiceException]
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :379)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    0)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24
    5)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContai
    nerBean.java:185)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBea
    n.java:1530)
    at com.bea.wlwgen.SubmitNeedBMPContImpl.clientRequest(SubmitNeedBMPContI
    mpl.java:25)
    at com.bea.wlwgen.PersistentContainer_cfepz3_ELOImpl.clientRequest(Persi
    stentContainer_cfepz3_ELOImpl.java:207)
    at com.bea.wlwgen.SubmitNeedBMPContAdpt.invokeOnBean(SubmitNeedBMPContAd
    pt.java:80)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDisp
    atcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatche
    rBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatche
    rBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Syn
    cDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceH
    andleImpl.java:285)
    at com.bea.wlw.runtime.core.call.JavaCall.invoke(JavaCall.java:57)
    at com.bea.wli.bpm.runtime.SubFlowCall.invoke(SubFlowCall.java:42)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceCon
    trolImpl.jcs:873)
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:421)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceCon
    trolImpl.jcs:754)
    at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:359)
    ... 46 more
    Caused by: java.lang.ClassCastException
    at processes.customerNeed.SubmitNeed_wf.$__clientRequest(SubmitNeed_wf.j
    ava:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :353)
    ... 65 more

  • Looking up process instance from UserTask

    Hello all,
    I have got the following Problem, I created a UserTask with the workflow wizard. I used the workflow api to lookup the user task for a specific user. No I have got a oracle.tip.pc.api.worklist.IWorklistTask Interface where I can get the ProcessId, the ProcessName, the ProcessOwner and the ProcessVersion of the process that started the user task. Now I want to lookup a process variable of this process instance. Any hints how this is possible via the Java API?
    Thanks for help.
    Regards.

    Hi , I am having a problem with the workflow api. I can't a user taks initialized in the Bpel server. When I use the IWorklistService to retrieve the task list it returns empty, and no instances of TaskManager appears in the console. I can't find an error message somewhere, in the console or in any server log file . I'm working with version B18846-01 with patches. I don't know if I'm missing something when using the User Task Wizard .
    TaskActionHandler keeps waiting for the TaskUpdate to occur but is not happening.
    I'll appreciate any help you can give me.

  • Invoke BPEL process using a java client - NullPointer Exception

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

  • Invoke BPEL process using a java client - NullPointerException

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

    Hi,
    Please ensure that you include the SOAP Header "SOAPAction" in your request. Most importantly, the value for that should be enclosed within double quotes.
    For eg;
    req.setRequestHeader("SOAPAction", '"process"');

  • Class Not found Exception for invoking BPEL process through the Java code

    Hi.
    The JDeveloper IDE raise the Exception From the invoking the BPEL process through the java code .Class Not Found Exception (Locator,ID.......).What is process of importing these classes from API.

    In your code (.bpel file) import the library using the bpelx:exec tag. For example the adding the following entry in your .bpel file imports the com.oracle.bpel.client.util library.
    <bpelx:exec import="com.oracle.bpel.client.util.*"/>

Maybe you are looking for