BPEL Process CurrencyExchangeList BUG or Limitation...its part of Oracle PIPs for AIA,

Hi All,
The BPEL process CurrencyExchangeListEbizJMSProducer is a Oracle standard process (PIPs) , but still we are getting the error.
The below error in red I took from server log file.
We are getting an error in Production environment while a BPEL process producing (enqueue) a message to a JMS queue by using JMS adapter. (partener link)
We are using Orcacle 10G SOA suite with OC4J server and AIA 10G.
Please note that we are not getting this error every time,  few BPEL instances are getting this error, around 4 out of 10 instances.
Failed to handle dispatch message ... exception ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{summary=file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
; nested exception is:
ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
I tried all the below JMS tunings with different combination, but not no improvement.
<property name="useJCAConnectionPool">true</property>
<property name="maxSizeJCAConnectionPool">500</property>
<property name="retryMaxCount">10</property>
<property name="retryInterval">60</property>
First we are taking these messages from BPEL_Q_TAB (business event) by Apps adapter then sending to JMS Queue. So, throttling also not working as this is apps adapter.
I tried "minimumDelayBetweenMessages">1000</property> in the apps adapter while consume the message from Business Event Q (BPEL_Q_TAB).
But it didn’t work, there was no delay happened while picking the messages.
Please let me know if there is any fix for this issue, otherwise pls let me know is there any way to throttle the apps adapter.
Thanks,
Pershad

Hi Lonneke
Thanks for responding....
You are correct in seeing that the two services are different in name.
However they are identical in function.
I created the service POSyncComp in my earlier version of JDev and deployed it to my local OC4J.
Which is launched by a PeopleSoft call using PeopleCode.
I have now rewritten this service in my new JDev and called it POSyncCompInt and deployed to home in an SOA suite implementation.
So whilst I test and before I roll the original service call out, I have both.
I have duplicated the PeopleCode and tweaked the message call, so that for testing purposes, and before I drop the current working version I have both calls in my PeopleCode event.
The original POSyncComp call still works, but the call to the 'new replacement' does not.
Hence the log shows both calls.... with slightly different names.
The strange thing is that the PeopleSoft LOG shows very similar code in the Request Message, but the response from the new call shows the HTML Form that I get if I run the second BPEL process from the SOA BPEL console.
So it looks like it is addressing the URL correctly.... but it suggests that stand alone OC4J returns a different response to the SOA suite which I am using for the new version of the BPEL process.... Is this configuration ?
It hints at the xsd file and the complex message type at entry to the BPEL process.
I can run the new process from the SOA suite BPEL Console with no problems.
I hope that clarifies your question about two different service names

Similar Messages

  • AIA PIPs  CurrencyExchangeList BUG or Limitation...

    Hi All,
    The BPEL process is a Oracle standard process (PIPs) CurrencyExchangeListEbizJMSProducer, but still we are getting the error.
    The below error in red I took from server log file.
    We are getting an error in Production environment while a BPEL process producing (enqueue) a message to a JMS queue by using JMS adapter. (partener link)
    We are using Orcacle 10G SOA suite.
    Please note that we are not getting this error every time,  few BPEL instances are getting this error, around 4 out of 10 instances.
    Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
    file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
    ; nested exception is:
    ORABPEL-12511
    Adapter Framework unable to create outbound JCA connection.
    I tried all the below JMS tunings with different combination, but not no improvement.
    <property name="useJCAConnectionPool">true</property>
    <property name="maxSizeJCAConnectionPool">500</property>
    <property name="retryMaxCount">10</property>
    <property name="retryInterval">60</property>
    First we are taking these messages from BPEL_Q_TAB (business event) by Apps adapter then sending to JMS Queue. So, throttling also not working as this is apps adapter.
    I tried "minimumDelayBetweenMessages">1000</property> in the apps adapter while consume the message from Business Event Q (BPEL_Q_TAB).
    But it didn’t work, there was no delay happened while picking the messages.
    Please let me know if there is any fix for this issue, otherwise pls let me know is there any way to throttle the apps adapter.
    Thanks,
    Pershad

    Unfortunatly disconecting from the typdef will not be an option during development since I use typdefs to encapsulate structures which I change while developing the code (add or change fileds as needed).  If I create a dynamic event which uses the same typdef do you know if this work around works: make a dynamic event which uses the same typdef and generate a user event inplace of a value signaling essentially doing the same (although complicated the code a little).  If not I will have to upgrade.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Oracle BPEL Process Manager 10.1.3.x sensors and Oracle BAM Server 11g TP4

    In Oracle Fusion Middleware Developers Guide for Oracle SOA Suite in section 42.5 there is the next:
    "You can also use Oracle BPEL Process Manager 10.1.3.1 sensor actions to publish sensor data as data objects on Oracle BAM Server 11g"
    Is it really possible?

    Hi, Please post this in BPEL forum, not here.
    Regards,
    Priyanka GES

  • Unable to deploy a BPEL process with rules

    Hi All
    I created a very simple BPEL process and defined a business Rule in composite, that I call from within my BPEL process.
    I am however not able to deploy the project completely successfully.
    I am using JDEV 11g to build/deploy my projects on a SOA_Suite_11g. Note that I can deploy a project successfully if it does not have a business rule.
    This is what I see in the 'Deployment Log' tab:
    [01:49:17 PM] Deploying profile...
    [01:49:17 PM] Wrote SAR file to /Users/satinder/jdeveloper/mywork/ChapterTwo/FLThree/deploy/sca_FLThree_rev1.0.jar
    [01:49:17 PM] Deploying sca_FLThree_rev1.0.jar to soa_server1 [redunca.pvo.groundhog.com.au:8001]
    [01:49:17 PM] Processing sar=/Users/satinder/jdeveloper/mywork/ChapterTwo/FLThree/deploy/sca_FLThree_rev1.0.jar
    [01:49:17 PM] Adding sar file - /Users/satinder/jdeveloper/mywork/ChapterTwo/FLThree/deploy/sca_FLThree_rev1.0.jar
    [01:49:17 PM] Preparing to send HTTP request for deployment
    [01:49:17 PM] Creating HTTP connection to host:redunca.pvo.groundhog.com.au, port:8001
    [01:49:17 PM] Sending internal deployment descriptor
    [01:49:17 PM] Sending archive - sca_FLThree_rev1.0.jar
    [01:49:19 PM] Received HTTP response from the server, response code=500
    [01:49:19 PM] Error deploying archive sca_FLThree_rev1.0.jar to soa_server1 [redunca.pvo.groundhog.com.au:8001]
    [01:49:19 PM] HTTP error code returned [500]
    [01:49:19 PM] Error message from server:
    Error during composite deployment: oracle.fabric.common.FabricDeploymentException: oracle.fabric.common.FabricException: Error occurred during deployment of component: FLI to service engine: implementation.bpel, for composite: FLThree: ORABPEL-01010
    Process Generation Failed.
    failure to generate the BPEL process file "".
    Could not generate named BPEL process file. The exception reported was "/apps/oracle/ofm_11g/user_projects/domains/soa_dev_domain/deployed-composites/FLThree_rev1.0/sca_FLThree_rev1.0/198abebc-19d9-4df6-a712-2122b0b9730a/SCA-INF/FLI.lock (Too many open files)".
    Ensure that the file "" is a valid file to be generated.
    : Error occurred during deployment of component: FLI to service engine: implementation.bpel, for composite: FLThree: ORABPEL-01010
    Process Generation Failed.
    failure to generate the BPEL process file "".
    Could not generate named BPEL process file. The exception reported was "/apps/oracle/ofm_11g/user_projects/domains/soa_dev_domain/deployed-composites/FLThree_rev1.0/sca_FLThree_rev1.0/198abebc-19d9-4df6-a712-2122b0b9730a/SCA-INF/FLI.lock (Too many open files)".
    Ensure that the file "" is a valid file to be generated.
    [01:49:19 PM] Check server log for more details.
    [01:49:19 PM] #### Deployment incomplete. ####
    [01:49:19 PM] Error deploying archive file:/Users/satinder/jdeveloper/mywork/ChapterTwo/FLThree/deploy/sca_FLThree_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Any ideas..
    Thanks

    "Too many open files" issue is most likely because of a (few) Sun JDK6 bug(s). These bugs may not even get fixed in JDK6. It could hit at runtime or compile time depending on the number of jar files getting used and/or a few other variations around the use of file descriptors at a time by the JDK/JRE. One can use "lsof -p <pid>" command on Linux and see how the File Descriptors are growing when this issue is seen. E.g. use the pid of junit java process and not the main Ant java process if you want to debug at runtime. For compile time, grep on the compiler process.
    Increasing the limit of file descriptors is used as a workaround.
    How to increase per-process per-user file descriptor limit on your Linux hosted box:
    Using "limit" (csh) or "ulimit" (bash) command find out what is the value of "descriptors". As a root user (use sudo) edit /etc/security/limits.conf file.
    Close your x term and re-open (or re-connect your NX client) for this change to take effect. System re-start should not be required. If you are not able to increase the limit for some reason using these steps, try a few other things like re-starting your VNC server (or something similar), re-start your Linux box.

  • BPEL process with one or more requests and one or more responses

    We need to create a process that will have one or more requests and one or more responses, and CheckoutFlow example is exactly what we need. Now we just have to find out how to invoke this process from the Axis client and how to invoke other operations like ‘continue’ and ‘submit’ from the same example.
    I understand that we have to set ws-addressing information into SOAP header, but I am not sure when and how to do that. Also I am not sure why we have to set correlation set when invoking ‘initatiate’, ‘continue’ and ‘submit’ as they are defined as two-way operations in CheckoutFlow.wsdl. I would expect to send correlation set only for ‘onResult’ operation.
    I have used wsdl2java to create stub classes and here is a test client code:
    public void testCheckoutFlow() throws Exception {
    com.erggroup.mass.wf.CheckoutFlowBindingStub stub = null;
    try {
         stub = (com.erggroup.mass.wf.CheckoutFlowBindingStub)
                                                           new com.erggroup.mass.wf.CheckoutFlow_ServiceLocator().getCheckoutFlowPort();
              catch (javax.xml.rpc.ServiceException jre) {
              // Time out after a minute
              stub.setTimeout(60000);
              com.erggroup.mass.wf.OrderType order = new com.erggroup.mass.wf.OrderType();
              order.setProduct("Axis product");
              com.erggroup.mass.wf.ProfileType profile = new com.erggroup.mass.wf.ProfileType();
              profile.setEmail("[email protected]");
              order.setProfile(profile);
              //      Invoke initiate
              com.erggroup.mass.wf.AddressType address = stub.initiate(order);
              address.setName("Axis test");
              //      Invoke continue
              stub._continue(address);
    and this is exception message
    ORABPEL-03802
    Correlation definition not registered.
    The correlation set definition for operation "continue", process "CheckoutFlow", has not been registered with the process domain.
    Please try to redeploy your process to the process domain.
    Is there any example for this? I was looking AXISCallingAsyncBPEL example but it does not help in this case.
    Thanks,
    Dragana

    Error while invoking other method 'proceedNext' after initiating the process:
    Correlation definition not registered.
    The correlation set definition for operation "proceedNext", process "Connection", has not been registered with the process domain.
    Please try to redeploy your process to the process domain.
    WSDL is:
         <message name="ConnectionRequestMessage">
              <part name="payload" element="client:ConnectionProcessRequest"/>
         </message>
         <message name="ConnectionResponseMessage">
              <part name="payload" element="client:ConnectionProcessResponse"/>
         </message>
    <!-- portType implemented by the Connection BPEL process -->
         <portType name="Connection">
              <operation name="initiate">
                   <input message="client:ConnectionRequestMessage"/>
              </operation>
    <operation name="proceedNext">
                   <input message="client:ConnectionRequestMessage"/>
              </operation>
    <operation name="terminateFinally">
                   <input message="client:ConnectionRequestMessage"/>
              </operation>
         </portType>
    MY java class:::
    import com.oracle.services.bpel.Connection.*;
    import org.apache.axis.message.*;
    import javax.xml.soap.Name;
    public class ProceedNext
    public static void main(String [] args) throws Exception {
    ConnectionBindingStub stub = null;
    try {
    stub = (ConnectionBindingStub)
    new Connection_ServiceLocator().getConnectionPort();
    catch (javax.xml.rpc.ServiceException jre) {
    jre.printStackTrace();
    // Time out after a minute
    stub.setTimeout(60000);
    String conversationId = "LocalGUID:c568752ccc493590:148662:1093d9c661f:-7fed";
    javax.xml.namespace.QName qname= new javax.xml.namespace.QName("http://services.oracle.com/bpel/Connection","ConnectionRequestMessage");
    SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId);
    SOAPEnvelope se = new SOAPEnvelope();
    Name name = se.createName("rootId", "nsbpel",
    "http://services.oracle.com/bpel/Connection");
    el.addAttribute(name, conversationId);
    name = se.createName("parentId", "nsbpel",
    "http://services.oracle.com/bpel/Connection");
    el.addAttribute(name, conversationId);
    name = se.createName("priority", "nsbpel",
    "http://services.oracle.com/bpel/Connection");
    el.addAttribute(name, "0");
    stub.setHeader(el);
    /*String conversationId = "LocalGUID:c568752ccc493590:148662:1093d9c661f:-7ff0";
    javax.xml.namespace.QName qname= new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing","MessageID");
    SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId);
    SOAPEnvelope se = new SOAPEnvelope();
    Name name = se.createName("rootId", "nsbpel",
    "http://schemas.oracle.com/bpel");
    el.addAttribute(name, conversationId);
    name = se.createName("parentId", "nsbpel",
    "http://schemas.oracle.com/bpel");
    el.addAttribute(name, conversationId);
    name = se.createName("priority", "nsbpel",
    "http://schemas.oracle.com/bpel");
    el.addAttribute(name, "0");
    stub.setHeader(el);
    // Set up the object which will be the input message
    // Note that this Java bean is generated by wsdl2java
    ConnectionProcessRequest conReq=new ConnectionProcessRequest( );
    conReq.setSubject("***************");
    // Make the actual call
    stub.proceedNext(conReq);
    System.out.println("ConnectionProcessRequest BPEL process proceeded!");
    Please help its very urgent....................

  • Simple invoking BPEL process from JSP not working

    Hello Everybody,
    I'm trying to invoke a BPEL process from a client JSP. I'm following the tutorial 7 Invoking the BPEL processes.
    I'm trying to use the same tutorial for a different application.
    Here is my WSDL snippet.
    <types>
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://www.arcwebservices.com/v2006"
    xmlns="http://www.w3.org/2001/XMLSchema">
              <element name="SpatialQueryRequest" type="s1:SpatialQueryRequestType"/>
              <element name="SpatialQueryResponse" type="s1:SpatialQueryResponseType"/>
              <complexType name="SpatialQueryRequestType">
              <sequence>
                   <element name="username" type="string"/>
                   <element name="password" type="string"/>
              </sequence>
              </complexType>
              <complexType name="SpatialQueryResponseType">
              <sequence>
                   <element name="token" type="string"/>
              </sequence>
              </complexType>
         </schema>
    </types>
    <message name="SpatialQueryRequestMessage">
    <part name="payload" element="s1:SpatialQueryRequest"/>
    </message>
    <message name="SpatialQueryResponseMessage">
    <part name="payload" element="s1:SpatialQueryResponse"/>
    </message>
    <portType name="SpatialQuery">
    <operation name="initiate">
    <input message="tns:SpatialQueryRequestMessage"/>
    </operation>
    </portType>
    <!-- portType implemented by the requester of SpatialQuery BPEL process
    for asynchronous callback purposes
    -->
    <portType name="SpatialQueryCallback">
    <operation name="onResult">
    <input message="tns:SpatialQueryResponseMessage"/>
    </operation>
    </portType>
    The JSP code is:
    <%
    String ssn = request.getParameter("ssn");
    //if(ssn == null)
    // ssn = "123-12-1234";
         String username = "jaweed";
         String password = "ibrahim";
    //String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
         //String xml = "<UserName xmlns="http://www.arcwebservices.com/v2006">" + username + "</UserName><Password xmlns="http://www.arcwebservices.com/v2006">" + password + "</Password>";
         String xml = "<UserName xmlns=\"http://www.arcwebservices.com/v2006\">" + username + "</UserName><Password xmlns=\"http://www.arcwebservices.com/v2006\">" + password + "</Password>";
    Locator locator = new Locator("default","bpel");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    NormalizedMessage res = deliveryService.request("SpatialQuery", "initiate", nm);
    Map payload = res.getPayload();
    //out.println( "BPELProcess CreditRatingService executed!<br>" );
    out.println( "Token is " + payload.get("payload") );
    %>
    com.oracle.bpel.client.ServerException: IDeliveryService.request() invoked for one-way operation 'initiate'. This method can only be used to invoke two-way operations which return an output message. Please check the WSDL which defines this operation and use the method IDeliveryService.post() to invoke a one-way operation
    But I'm getting an exception. I'm in deep trouble please help me. Urgent

    Yeah ..This is my final project for my masters degree.
    I'm integrating BPEL with GIS(Geographic Information System) webservices provided by ESRI(Arcweb services). My main BPEL process that I built follows this sample example. The problem is that I need to show a working client application within 2 days or else my project is termed as incomplete and my graduation will be postponed to next semester. :(
    I tried your advice, as soon as I add a Java code to my BPEL process, the application is taking longer time to execute in the BPEL console itself.
    <bpelx:exec xmlns:bpelx="http://schemas.oracle.com/bpel/extension" language="java" version="1.4" name="exec-1">
    <![CDATA[setConversationId("output");]]>
    </bpelx:exec>
    So after the thread sleep the webservice is not ready to give its output.
    Just a quick thought, I assumed that if I attach the output of the my Invoke(Client) to a Reply activity,which will make it a two way operation.
    Then I could use,
    NormalizedMessage res = deliveryService.request("SpatialQuery", "initiate", nm);
    will work.
    I assigned the ouput of the Invoke(Client) to the variable in Reply activity.
    But my reply activity is throwing a NULL pointer exception.
    This is my BPEL code:
    <sequence name="main">
              <receive name="receiveInput" partnerLink="client" portType="tns:InvokeTest" operation="initiate" variable="input" createInstance="yes"/>
              <assign name="assign-1">
                   <copy>
                        <from variable="input" part="payload" query="/nsxml0:InvokeTestRequest/nsxml0:username"></from>
                        <to variable="IsaInput" part="parameters" query="/nsxml0:getToken/nsxml0:username"/>
                   </copy>
                   <copy>
                        <from variable="input" part="payload" query="/nsxml0:InvokeTestRequest/nsxml0:password"></from>
                        <to variable="IsaInput" part="parameters" query="/nsxml0:getToken/nsxml0:password"/>
                   </copy>
              </assign>
              <invoke name="invoke-1" partnerLink="Authentication" portType="nsxml0:IAuthentication" operation="getToken" inputVariable="IsaInput" outputVariable="IsaOutput"/>
              <assign name="assign-2">
                   <copy>
                        <from variable="IsaOutput" part="parameters" query="/nsxml0:getTokenResponse/nsxml0:Result"></from>
                        <to variable="output" part="payload" query="/nsxml0:InvokeTestResponse/nsxml0:token"/>
                   </copy>
              </assign>
              <reply name="reply-2" partnerLink="client" portType="tns:InvokeTest" operation="initiate" variable="output"/>     </sequence>
    I really appreciate your patience and help.

  • Time Out for a syncronus BPEL process

    Hi All,
    Need your help with regards to the following:
    From a parent BPEL process we need to invoke a synchronous BPEL Process .This(child) could take anything between 20-30 seconds for processing a request.
    Now the requirement is to time out the parent BPEL process if the BPEL process it is calling takes more than 25 seconds for processing a request.
    If( time taken to get from partner process >25 sec)
    time out
    Else
    Move along with the rest of the process.
    Approaches considered:
    1)     Pick activity :
    Fallout: the pick activity would work only when you are calling a asynchronous BPEL process.
    2)     Having the invoke activity in a scope and adding an on Alarm branch for the scope.
    Fallout: The BPEL process manager executes all the other activities even after exceeding the maximum time the process is set for timing out.
    That is if we consider the below scenario
    If( time taken to get from partner process >25 sec)
    time out
    Else
    move along with the rest of the process.
    Instead of executing the if block( onAlarm) it is executing the else block.
    Request you to suggests approaches to suffice this requirement.

    Hi Sai Madalli,
    An approach to it, would be use the syncMaxWaitTime with time that you need, its a configuration per domain.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/events.htm#BABGGADB
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/app_trblshoot.htm
    Regards

  • Invoking a BPEL Process from Java Class

    Hi All,
    I am new to BPEL. I am trying to invoke a BPEL Process using Java.
    This following is the Oracle AS Home : D:\product\10.1.3.1\OracleAS_1
    Credentials to access the default BPEL domain :
    username - oc4jadmin
    password - oc4jadmin
    RMI Port in Oracle AS - 12401
    (code)
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.dispatch.IDeliveryService;
    import com.oracle.bpel.client.NormalizedMessage;
    import java.util.Hashtable;
    import java.util.Map;
    import javax.naming.Context;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    public class Class1 {
         public static void main(String[] args) {
              try {
              Hashtable jndi = new Hashtable();
              jndi.put(Context.PROVIDER_URL, "ormi://localhost:12401/orabpel");
              jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
              jndi.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
              jndi.put(Context.SECURITY_CREDENTIALS, "oc4jadmin");
              jndi.put("dedicated.connection", "true");
              Locator locator = new Locator("default", "oc4jadmin", jndi);
              System.out.println( "check 1" );
              IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
              System.out.println( "check 2" );
              String xml = "&ltssn xmlns=\"http://services.otn.com\" &gt111222333</ssn>";
              NormalizedMessage nm = new NormalizedMessage( );
              nm.addPart("payload", xml );
              System.out.println( "check 3" );
              NormalizedMessage res = deliveryService.request("CreditRatingService","process",nm);
              System.out.println( "check 4" );
              System.out.println( "BPELProcess CreditRatingService executed!" );
              Map payload = res.getPayload();
              Element part = (Element)payload.get("payload");
              Node outputElement = part.getFirstChild();
              System.out.println("Rating: " + outputElement.getNodeValue());
              catch (Exception ex) {
              ex.printStackTrace();
    (code)
    When I run this, I get the following exception :
    D:\JDeveloper\jdk\bin\javaw.exe -client -classpath D:\JDeveloper\jdev\mywork\mywork\test_bpel_java\ViewController\classes;D:\JDeveloper\jakarta-struts\lib\struts.jar;D:\JDeveloper\jakarta-struts\lib\commons-beanutils.jar;D:\JDeveloper\jakarta-struts\lib\commons-collections.jar;D:\JDeveloper\jakarta-struts\lib\commons-fileupload.jar;D:\JDeveloper\jakarta-struts\lib\commons-digester.jar;D:\JDeveloper\jakarta-struts\lib\commons-lang.jar;D:\JDeveloper\jakarta-struts\lib\commons-logging.jar;D:\JDeveloper\jakarta-struts\lib\commons-validator.jar;D:\JDeveloper\jakarta-struts\lib\jakarta-oro.jar;D:\JDeveloper\j2ee\home\lib\ojsp.jar;D:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;D:\JDeveloper\j2ee\home\oc4j.jar;D:\JDeveloper\j2ee\home\lib\oc4j-internal.jar;D:\JDeveloper\j2ee\home\lib\servlet.jar;D:\JDeveloper\jdev\lib\ojc.jar;D:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar view.Class1
    check 1
    check 2
    check 3
    Mar 22, 2011 11:04:07 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    java.lang.NoClassDefFoundError: javax/ejb/EJBHome
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.rmi.ClientRmiTypeCache$InterfaceTypeCache.getNamedInterfaces(ClientRmiTypeCache.java:98)
         at oracle.oc4j.rmi.ClientRmiTypeCache$InterfaceTypeCache.getInterfaceType(ClientRmiTypeCache.java:85)
         at oracle.oc4j.rmi.ClientRmiTypeCache.getCachedType(ClientRmiTypeCache.java:33)
         at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:981)
         at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
         at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         at com.evermind.server.rmi.RMIClientConnection.handleLookupResponse(RMIClientConnection.java:825)
         at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:283)
         at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
         at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
         at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at view.Class1.main(Class1.java:40)
    Process exited with exit code 1.
    I have used checkpoints in between the code. It works fine till the third one. After that, it raises an exception.
    Can anyone help me out with this?
    Edited by: 846458 on Mar 22, 2011 11:04 AM

    Hi
    Can you try with below code
    package com.otn.samples;
    import java.util.Properties;
    import java.util.Map;
    import javax.naming.InitialContext;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import com.collaxa.xml.XMLHelper;
    import com.oracle.bpel.client.ClientDefs;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    public class CallBPEL
        public static void main(String[] args) throws Exception {
            if (args.length != 1) {
                System.out.println(
                    "I am here");
                return;
            try{
                String ssn = args[0];
                System.out.println("ssn is " + ssn);
                // properties in the classpath
                Properties props = new java.util.Properties();
                java.net.URL url = ClassLoader.getSystemResource("context.properties");
                props.load(url.openStream());
                System.out.println(props);
                String xml = "<ssn  xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
                Locator locator = new Locator("default","bpel",props);
                IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
                // construct the normalized message and send to collaxa server
                NormalizedMessage nm = new NormalizedMessage( );
                nm.addPart("payload", xml );
                NormalizedMessage res = deliveryService.request("CreditRatingService", "process", nm);
                Map payload = res.getPayload();
                System.out.println( "BPELProcess  CreditRatingService executed!" );
                Element partEl = (Element) payload.get("payload");
                System.out.println( "Credit Rating is " + XMLHelper.toXML(partEl) );
            }catch(Exception e)
                e.printStackTrace();
    }Thanks
    AJ

  • Configuring JMS adapter for a BPEL process which puts a msg in a Q of MQ

    Hi,
    I am trying to develop a BPEL process which picks up a message from a Q in Websphere MQ and puts that message in another Q of MQ after processing that.
    I have updated the oc4j-ra.xml with the following inputs:
    <connector-factory location="eis/MQSeries/Queue" connector-name="Jms Adapter">
              <config-property name="connectionFactoryLocation" value="com.ibm.mq.jms.MQQueueConnectionFactory"/>
              <config-property name="factoryProperties" value="QueueManager=TestManager;TransportType=1;Hostname=machine's ip address;Port=1414;Channel=channel name for connecting to client"/>
              <config-property name="acknowledgeMode" value="AUTO_ACKNOWLEDGE"/>
              <config-property name="isTopic" value="false"/>
              <config-property name="isTransacted" value="true"/>
              <config-property name="username" value="admin"/>
              <config-property name="password" value="welcome"/>
         </connector-factory>
    But while testing the BPEL process, I get the error:
    <remoteFault>
    <part name="code" >
    <code>null</code>
    </part>
    <part name="summary" >
    <summary>file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection. file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12141 ERRJMS_CONN_FAC_NOT_FOUND. Unable to instantiate connection factory. JMS adapter was unable to look up the connection factor com.ibm.mq.jms.MQQueueConnectionFactory neither through JNDI nor instantiate it as a Java class Please examine the log file to determine the problem. ; nested exception is: ORABPEL-12511 Adapter Framework unable to create outbound JCA connection. file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12141 ERRJMS_CONN_FAC_NOT_FOUND. Unable to instantiate connection factory. JMS adapter was unable to look up the connection factor com.ibm.mq.jms.MQQueueConnectionFactory neither through JNDI nor instantiate it as a Java class Please examine the log file to determine the problem. Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console. </summary>
    </part>
    <part name="detail" >
    <detail>null</detail>
    </part>
    </remoteFault>
    Can anyone tell me what has gone wrong in setting the connection factory for the Q or what else I have to configure to sort out this problem?
    Thanks,
    Jayatu

    I am experiencing the exact same issue while configuring for Tibco EMS!!!
    I have also checked the oc4j-xa.xml file etc and I am also unable to find any guidance on the steps required from XML config files through to adapter wizard entries!

  • Async BPEL Process Invocation...

    We have a business process, which when invoked from BPEL console works fine, however, when we invoke it from an web application of ours, it does gets initiated, but fails later.
    We have Apache Axis deployed in the same OC4J server as the Oracle BPEL PM(10.1.2.0.2), which exposes few EJBs as SOAP Services.
    The Business Process invokes couple of SOAP Services and then creates a Task and then waits for task completion and based on task action invokes two other SOAP services.
    When we invoke it from the BPEL Console, everything works fine. It also works fine, if we invoke it first (after startup) from BPEL Console and then through our web application.
    However, if we invoke it first through our web application, then it does initiates, but fails at the Task creation. If we try to hit the BPEL Console, we get this error
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 10.1.2.0.2
    Build: 2196
    Build time: Tue Jan 10 12:31:53 UTC 2006
    Build type: release
    Source tag: BPEL_10.1.2.0.2_GENERIC_060110.1200
    Exception Message:
    [java.lang.Exception]
    Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/ServerBean not found
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:164)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:333)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:120)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    <b>Nothing works after that, unless we re-start.</b>
    Once we re-start, BPEL Console works fine.
    Investigating the flow of the business process, we find the "initiateTask" of the workflow is fine, but it failed at "initiateTaskActionHandler" with the following error:
    <remoteFault>
    <part name="code" >
    <code>WSDLReadingError</code>
    </part>
    <part name="summary" >
    <summary>Failed to read wsdl. Failed to read wsdl at "http://Uranus:9700/orabpel/default/TaskActionHandler/TaskActionHandler?wsdl", because "WSDLException: faultCode=INVALID_WSDL: The document: http://Uranus:9700/orabpel/default/TaskActionHandler/TaskActionHandler?wsdl is not a wsdl file or does not have a root element of "definitions" in the "http://schemas.xmlsoap.org/wsdl/" namespace or the "http://www.w3.org/2004/08/wsdl" namespace.". Make sure wsdl is valid. You may need to start the OraBPEL server, or make sure the related bpel process is deployed correctly. </summary>
    </part>
    </remoteFault>
    <b>Below is the code as to how we are invoking the Business Process...using orabpel taglibs...</b>
    <orabpel:locator domainId="default" password="bpel" contextEnv="jndi">
    <orabpel:deliveryService processId="ApprovalProcess">
    <orabpel:post title="ApprovalProcess">
    <orabpel:part name="payload">
    <customerObj xmlns="http://xmlns.misys.com/ApprovalProcess/approval">
    <applicationNo><%= customer.getApplicationNo() %></applicationNo>
    <customerId><%= customer.getCustomerId() %></customerId>
    <primaryFirstName><%= customer.getPrimaryFirstName() %></primaryFirstName>
    <primaryLastName><%= customer.getPrimaryLastName() %></primaryLastName>
    <primaryCardName><%= customer.getPrimaryCardName() %></primaryCardName>
    <primaryDay><%= customer.getPrimaryDay() %></primaryDay>
    <primaryMonth><%= customer.getPrimaryMonth() %></primaryMonth>
    <primaryYear><%= customer.getPrimaryYear() %></primaryYear>
    <primaryDob><%= customer.getPrimaryDob() %></primaryDob>
    <primarySex><%= customer.getPrimarySex() %></primarySex>
    <primaryPanNo><%= customer.getPrimaryPanNo() %></primaryPanNo>
    <accountType><%= customer.getAccountType() %></accountType>
    <cardType><%= customer.getCardType() %></cardType>
    <primaryStreet1><%= customer.getPrimaryStreet1() %></primaryStreet1>
    <primaryStreet2><%= customer.getPrimaryStreet2() %></primaryStreet2>
    <primaryLandmark><%= customer.getPrimaryLandmark() %></primaryLandmark>
    <primaryCity><%= customer.getPrimaryCity() %></primaryCity>
    <primaryState><%= customer.getPrimaryState() %></primaryState>
    <primaryCountry><%= customer.getPrimaryCountry() %></primaryCountry>
    <primaryPinCode><%= customer.getPrimaryPinCode() %></primaryPinCode>
    <primaryOffPhoneNo><%= customer.getPrimaryOffPhoneNo() %></primaryOffPhoneNo>
    <primaryOffExtnNo><%= customer.getPrimaryOffExtnNo() %></primaryOffExtnNo>
    <primaryResPhoneNo><%= customer.getPrimaryResPhoneNo() %></primaryResPhoneNo>
    <primaryMobileNo><%= customer.getPrimaryMobileNo() %></primaryMobileNo>
    <primaryEmailId><%= customer.getPrimaryEmailId() %></primaryEmailId>
    <productInterest><%= customer.getProductInterest() %></productInterest>
    <sourceReferral><%= customer.getSourceReferral() %></sourceReferral>
    <channel><%= customer.getChannel() %></channel>
    <accountNo><%= " " %></accountNo>
    <documentsSubmitted><%= customer.getDocumentsSubmitted() %></documentsSubmitted>
    <creditRating><%= 0.0 %></creditRating>
    <eligibleCustomer><%= false %></eligibleCustomer>
    <segment><%= " " %></segment>
    <action><%= " " %></action>
    <remarks><%= " " %></remarks>
    <approverEmail><%= customer.getApproverEmail() %></approverEmail>
    <bPELProviderUrl><%= customer.getBPELProviderUrl() %></bPELProviderUrl>
    </customerObj>
    </orabpel:part>
    </orabpel:post>
    </orabpel:deliveryService>
    </orabpel:locator>
    <b>We also tried this way...same result</b>
    Properties jndi = new Properties();
    jndi.put(Context.PROVIDER_URL,"ormi://localhost:23791/orabpel");
    jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    jndi.put(Context.SECURITY_PRINCIPAL, "admin");
    jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
    jndi.put("dedicated.connection", "true");
    String xml = "....";
    NormalizedMessage input = new NormalizedMessage( );
    input.addPart("payload", xml);
    String conversationId = String.valueOf(System.currentTimeMillis());
    input.setProperty(NormalizedMessage.TITLE, "Dynamic CustomerRegistration Invocation");
    input.setProperty(NormalizedMessage.CONVERSATION_ID, conversationId);
    input.setProperty(NormalizedMessage.CREATOR, "Oracle BPEL");
    Locator locator = new Locator("default","bpel",jndi);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    deliveryService.post("ProductRegistration", "initiate", input );
    <b>The entry in application.xml for the web application is as follows:</b><br/>
    <web-module id="registration" path="../../home/applications/registration.war"/>
    The entry in http-web-site.xml for the web application is as follows:<br/>
    <web-app application="orabpel" name="registration" load-on-startup="true" root="/registration"/>
    <web-app application="default" name="registration"      root="/registration"/>
    I have tried to provide all possible relevant info, if you need more, do reply back to me.
    Thanks in advance for helping us to resolve this issue.
    |Soumen|

    We have a business process, which when invoked from BPEL console works fine, however, when we invoke it from an web application of ours, it does gets initiated, but fails later.
    We have Apache Axis deployed in the same OC4J server as the Oracle BPEL PM(10.1.2.0.2), which exposes few EJBs as SOAP Services.
    The Business Process invokes couple of SOAP Services and then creates a Task and then waits for task completion and based on task action invokes two other SOAP services.
    When we invoke it from the BPEL Console, everything works fine. It also works fine, if we invoke it first (after startup) from BPEL Console and then through our web application.
    However, if we invoke it first through our web application, then it does initiates, but fails at the Task creation. If we try to hit the BPEL Console, we get this error
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 10.1.2.0.2
    Build: 2196
    Build time: Tue Jan 10 12:31:53 UTC 2006
    Build type: release
    Source tag: BPEL_10.1.2.0.2_GENERIC_060110.1200
    Exception Message:
    [java.lang.Exception]
    Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/ServerBean not found
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:164)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:333)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:120)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    <b>Nothing works after that, unless we re-start.</b>
    Once we re-start, BPEL Console works fine.
    Investigating the flow of the business process, we find the "initiateTask" of the workflow is fine, but it failed at "initiateTaskActionHandler" with the following error:
    <remoteFault>
    <part name="code" >
    <code>WSDLReadingError</code>
    </part>
    <part name="summary" >
    <summary>Failed to read wsdl. Failed to read wsdl at "http://Uranus:9700/orabpel/default/TaskActionHandler/TaskActionHandler?wsdl", because "WSDLException: faultCode=INVALID_WSDL: The document: http://Uranus:9700/orabpel/default/TaskActionHandler/TaskActionHandler?wsdl is not a wsdl file or does not have a root element of "definitions" in the "http://schemas.xmlsoap.org/wsdl/" namespace or the "http://www.w3.org/2004/08/wsdl" namespace.". Make sure wsdl is valid. You may need to start the OraBPEL server, or make sure the related bpel process is deployed correctly. </summary>
    </part>
    </remoteFault>
    <b>Below is the code as to how we are invoking the Business Process...using orabpel taglibs...</b>
    <orabpel:locator domainId="default" password="bpel" contextEnv="jndi">
    <orabpel:deliveryService processId="ApprovalProcess">
    <orabpel:post title="ApprovalProcess">
    <orabpel:part name="payload">
    <customerObj xmlns="http://xmlns.misys.com/ApprovalProcess/approval">
    <applicationNo><%= customer.getApplicationNo() %></applicationNo>
    <customerId><%= customer.getCustomerId() %></customerId>
    <primaryFirstName><%= customer.getPrimaryFirstName() %></primaryFirstName>
    <primaryLastName><%= customer.getPrimaryLastName() %></primaryLastName>
    <primaryCardName><%= customer.getPrimaryCardName() %></primaryCardName>
    <primaryDay><%= customer.getPrimaryDay() %></primaryDay>
    <primaryMonth><%= customer.getPrimaryMonth() %></primaryMonth>
    <primaryYear><%= customer.getPrimaryYear() %></primaryYear>
    <primaryDob><%= customer.getPrimaryDob() %></primaryDob>
    <primarySex><%= customer.getPrimarySex() %></primarySex>
    <primaryPanNo><%= customer.getPrimaryPanNo() %></primaryPanNo>
    <accountType><%= customer.getAccountType() %></accountType>
    <cardType><%= customer.getCardType() %></cardType>
    <primaryStreet1><%= customer.getPrimaryStreet1() %></primaryStreet1>
    <primaryStreet2><%= customer.getPrimaryStreet2() %></primaryStreet2>
    <primaryLandmark><%= customer.getPrimaryLandmark() %></primaryLandmark>
    <primaryCity><%= customer.getPrimaryCity() %></primaryCity>
    <primaryState><%= customer.getPrimaryState() %></primaryState>
    <primaryCountry><%= customer.getPrimaryCountry() %></primaryCountry>
    <primaryPinCode><%= customer.getPrimaryPinCode() %></primaryPinCode>
    <primaryOffPhoneNo><%= customer.getPrimaryOffPhoneNo() %></primaryOffPhoneNo>
    <primaryOffExtnNo><%= customer.getPrimaryOffExtnNo() %></primaryOffExtnNo>
    <primaryResPhoneNo><%= customer.getPrimaryResPhoneNo() %></primaryResPhoneNo>
    <primaryMobileNo><%= customer.getPrimaryMobileNo() %></primaryMobileNo>
    <primaryEmailId><%= customer.getPrimaryEmailId() %></primaryEmailId>
    <productInterest><%= customer.getProductInterest() %></productInterest>
    <sourceReferral><%= customer.getSourceReferral() %></sourceReferral>
    <channel><%= customer.getChannel() %></channel>
    <accountNo><%= " " %></accountNo>
    <documentsSubmitted><%= customer.getDocumentsSubmitted() %></documentsSubmitted>
    <creditRating><%= 0.0 %></creditRating>
    <eligibleCustomer><%= false %></eligibleCustomer>
    <segment><%= " " %></segment>
    <action><%= " " %></action>
    <remarks><%= " " %></remarks>
    <approverEmail><%= customer.getApproverEmail() %></approverEmail>
    <bPELProviderUrl><%= customer.getBPELProviderUrl() %></bPELProviderUrl>
    </customerObj>
    </orabpel:part>
    </orabpel:post>
    </orabpel:deliveryService>
    </orabpel:locator>
    <b>We also tried this way...same result</b>
    Properties jndi = new Properties();
    jndi.put(Context.PROVIDER_URL,"ormi://localhost:23791/orabpel");
    jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    jndi.put(Context.SECURITY_PRINCIPAL, "admin");
    jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
    jndi.put("dedicated.connection", "true");
    String xml = "....";
    NormalizedMessage input = new NormalizedMessage( );
    input.addPart("payload", xml);
    String conversationId = String.valueOf(System.currentTimeMillis());
    input.setProperty(NormalizedMessage.TITLE, "Dynamic CustomerRegistration Invocation");
    input.setProperty(NormalizedMessage.CONVERSATION_ID, conversationId);
    input.setProperty(NormalizedMessage.CREATOR, "Oracle BPEL");
    Locator locator = new Locator("default","bpel",jndi);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    deliveryService.post("ProductRegistration", "initiate", input );
    <b>The entry in application.xml for the web application is as follows:</b><br/>
    <web-module id="registration" path="../../home/applications/registration.war"/>
    The entry in http-web-site.xml for the web application is as follows:<br/>
    <web-app application="orabpel" name="registration" load-on-startup="true" root="/registration"/>
    <web-app application="default" name="registration"      root="/registration"/>
    I have tried to provide all possible relevant info, if you need more, do reply back to me.
    Thanks in advance for helping us to resolve this issue.
    |Soumen|

  • Invoking BPEL Process through pl/sql is failing

    Hi all,
    I am trying to invoke BPEL process through PL/SQL and its throwing following error.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/"><faultcode xmlns="">null:Read_ptt</faultcode><faultstring xmlns="">Cannot figure out operation name. Bad SOAPAction or wsa:Action.</faultstring><faultactor xmlns="">initiate</faultactor></env:Fault></env:Body></env:Envelope>
    Following is code I am using to invoke BPEL PROCESS
    declare
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    begin
    soap_request:='<?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/">
    --<ns1:Read_plt><ns1:input>leeg</ns1:input></ns1:Read_plt>
    </soap:Body>
    </soap:Envelope>';
    http_req:= sys.utl_http.begin_request('http://localhost/orabpel/default/BPELProcess1/v2007_12_03__65618','POST','HTTP/1.1' );
    sys.utl_http.set_header(http_req, 'Content-Type', 'text/xml') ;
    sys.utl_http.set_header(http_req, 'Content-Length', length(soap_request)) ;
    sys.utl_http.set_header(http_req, 'SOAPAction', 'initiate');
    sys.utl_http.write_text(http_req, soap_request) ;
    http_resp:= sys.utl_http.get_response(http_req) ;
    sys.utl_http.read_text(http_resp, soap_respond) ;
    sys.utl_http.end_response(http_resp) ;
    dbms_output.put_line(soap_respond);
    end;
    Any help would be appriciated.
    Thanks,
    Vipul

    Hi,
    Switching on or off a bpel is an admin job.
    u can stop an application but not one bpel.
    I doubt if there is any way to do it programatically.
    Let us get other opinons
    Regards

  • Question about the usage of wsdlRuntimeLocation property in BPEL process

    Hi,
    I have a BPEL process P1. And then I also have a BPEL process P2. Within P2, I invoke the process P1 using P1.wsdl in the following way -
    <partnerLinkBinding name="WshGetRefDataPL">
    <property name="wsdlLocation">http://rvishnuv-PC2:9700/orabpel/default/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl</property>
    </partnerLinkBinding>
    Then I tried adding the following property -
    <property name="wsdlRuntimeLocation">${domain_url}/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl</property>
    Then, when I try to deploy my process P2 after adding this in my bpel.xml I keep getting the error -
    Error:
    [Error ORABPEL-10903]: failed to read wsdl
    [Description]: in "bpel.xml", Error loading schemas from wsdl.
    Error while loading schemas from wsdl file at location "file:/H:/jdevhome/jdev/mywork/BPELProj/WshSendRefDataStlToOtm/WshSendRefDataStlToOtm.wsdl". The reason is The specified network name is no longer available.
    Please verify the schemas defined in wsdl.
    [Potential fix]: If your site has a proxy server, then you may need to configure your BPEL Server, designer and browser with your proxy server configuration settings (see tech note on http://otn.oracle.com/bpel for instructions).
    I also tried - <property name="wsdlRuntimeLocation">${domain_url}/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl/1.0</property>
    With this change, the process P2 gets deployed successfully, but I am running into the following runtime issue -
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>WSDLReadingError</code>
    </part>
    <part name="summary">
    <summary>Failed to read wsdl. Failed to read wsdl at "http://rvishnuv-PC2:9700/orabpel/default/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl/1.0", because "WSDLException: faultCode=INVALID_WSDL: The document: http://rvishnuv-PC2:9700/orabpel/default/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl/1.0 is not a wsdl file or does not have a root element of "definitions" in the "http://schemas.xmlsoap.org/wsdl/" namespace or the "http://www.w3.org/2004/08/wsdl" namespace.". Make sure wsdl is valid. You may need to start the OraBPEL server, or make sure the related bpel process is deployed correctly.</summary>
    </part>
    </remoteFault>
    I have also pasted process P2's bpel.xml below.
    Can you please let me know what I might be missing here?
    Thanks a lot for your help.
    Thanks
    Ravi
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="WshSendRefDataStlToOtm" src="WshSendRefDataStlToOtm.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="client">
    <property name="wsdlLocation">WshSendRefDataStlToOtm.wsdl</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="WshGetRefDataPL">
    <property name="wsdlLocation">http://rvishnuv-PC2:9700/orabpel/default/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl</property>
    <property name="wsdlRuntimeLocation">${domain_url}/WshSendLocRefDataToOtm/WshSendLocRefDataToOtm?wsdl</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="SendRefDataToGC3PL">
    <property name="wsdlLocation">GLogXML.wsdl</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    </BPELProcess>
    </BPELSuitcase>

    there is a nice article on this issue.
    http://www.oracle.com/technology/products/ias/bpel/pdf/bpel-admin-webinar.pdf
    Try another property to see if you have the same issue:
    Deployment in 10.1.2, String substitution, Only have support for:
    • server_url
    • domain_url
    • suitcase_url
    • suitcase_path
    bpel.xml
    <BPELSuitcase>
    <BPELProcess id="OrderBooking" src="OrderBooking.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="CreditRatingService">
    <property name="wsdlLocation">
    http://$(server_url)/orabpel/default/CreditRatingService?wsdl
    </property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    </BPELProcess>
    </BPELSuitcase>

  • Dynamic copy operation in BPEL process

    Hi.
    I wan to create a Copy Operation which would copy a specific part of the input XML depending on what is the name of activity.
    So for example
    I have a invoke activity - "thisIsTheActivityName"
    I want to get the name of the activity - put it in the XML, send it to 2nd process... and that process would check if he has the "thisIsTheActivityName" part in his XML : for example
    <nothing />
    <stillnothing />
    <thisIsTheActivityName title="thisoneshouldbesent" />
    <againnothing />
    and if "thisIsTheActivityName" part is found the 2nd process would reply to the original process with part only.
    Any one has any clues ?
    Thanks in advance

    Hi Shankari,
    apart of using the the config plan you can change the endpoint uri in runtime if you define the property "endpointURI" in your composite
    <binding.ws port="http://xmlns.oracle.com/bpel/workflow/taskService#wsdl.endpoint(TaskService/TaskServicePortSAML)"
    location="http://localhost:7001/integration/services/TaskService/TaskServicePortSAML?ORAWSDL"
    soapVersion="1.1">
    <property name="weblogic.wsee.wsat.transaction.flowOption"
    type="xs:string" many="false">WSDLDriven</property>
    <property name="endpointURI"
    type="xs:string" >http://localhost:7001/integration/services/TaskService/TaskServicePort</property>
    </binding.ws>
    then right click your composite in the enterprise manager and go to "Service/Reference Properties". There you can change the endpointURI property.
    You can also change the endpointURI inside your BPEL process. Go to the invoke inside the bpel process and go to the "properties" tab. There search for the property "endpointURI" and set a value.
    hope this helps
    cheers Nicolas

  • Installation of "Oracle BPEL Process Manager" (newbie)

    Hello,
    I need to evaluate the "Oracle BPEL Process Manager" for a seminar at my university.
    I am completely new to the BPEL topic and I need some help installing the "BPEL Process Manage".
    1) I downloaded the file "Oracle BPEL Process Manager (10.1.3.1.0)" for x86 Windows. 340 MB ; filename: "soa_windows_x86_bpel_101310.zip"
    2) In the Install Guide of that package it says there are two installation scenarios:
    ■ Scenario 1: Oracle BPEL Process Manager with Oracle SOA Suite
    ■ Scenario 2: Oracle BPEL Process Manager for OracleAS Middle Tier
    I think the best and easiest (and smallest?) for me is the first one "with Oracle SOA Suite". But the Guide I have is only for the second Scenario.
    It says the first one would be explained in the guide "Oracle Application Server 10g Release 3 (10.1.3.1.0) Installation Guide", but there's nothing said about BPEL ! ??
    Do I have to download the complete "Oracle SOA Suite 10g (10.1.3.x)" ?!
    Or can I just try to execute the setup of my "Oracle BPEL Process Manager (10.1.3.1.0)" without a guide?
    I'm really confused here and help would be much appreciated.
    regards

    545515 wrote:
    Anirudh Pucha wrote:
    This is the simplest for you for small demos/testcases : http://download.oracle.com/docs/cd/B31017_01/win.1013/install/basic_install.htm#BABCHEJI
    that segment will lead for installatoin of the SOA with the datbase Lite. Can Lite database work for the tutorals or cause problems for the SOA 10.1.3.4 upgrade etc?? I guess there may be scripts built not for the lite db in the examples and the upgrade.Question, what would be the Lite database name? I have loaded SOA 10.1.3.1 with Olite. Now try to upgrade it to SOA 10.1.3.4.
    the part of the upgrade is to run the upgrade scritps. Since the db is lite, we have to use msql via jdbc connection. But I have no idea what's the db name created under 10.1.3.1. Checked ORACLE_HOME/install/readme, there seem no such info. it could be the instance name in the readme. But had it tried, no work.

  • Any API to get handle to Outbound BPEL process endpoint activation?

    Hi,
    we are developing both inbound and outbound BPEL processes using a custom JCA 1.5 based adapter. For the inbound BPEL process deployment/undeployment, we have the ResourceAdapter's endpointActivate() endpointDeactivate() methods called in and so we can post process, like clean up endpoints when these methods get called. Is there somethign simillar that we can use as an API to get a handle to the outbound process endpoints deactivate/activate, so that we can clean up these too, or does the oracle adapter framework internally clean these up?
    Also even though we undeploy all processes before stopping the adapter (from the bpel console), after that if we redeploy the adapter rar, from then on any new BPEL process deployment (through jdeveloper) always throws a "500 Internal Server Error". Only after restarting the SOA, then on any new deployments go through fine. This is a serious limitation for us.. Any idea why this is happening and how to resolve this?
    Thanks
    Pramodh

    Hi Pramodh,
    That's a nice requirement.
    The inbound (ActivationSpec) properties can only be set dynamically (typically via the BPEL console) if their values are bound via property values defined in bpel.xml for the particular JCA Activation Agent in question. This is fundamentally as per the JCA 1.5 design where EndpointActivation (which receives an instance of ActivationSpec) takes place when the BPEL process starts up, i.e. only once. More often than not the BPEL process will have to be bounced (Off/On) for ActivationSpec attribute changes to take effect (thereby allowing the JCA 1.5 inbound message endpoint to be restarted/reinitialized). Some adapters do look dynamically for changes to bpel.xml bound values (subscribed to via the adapter framework) and will react appropriately without the need for bumping the process (e.g. adjusting a timeout or retryCount or other secondary attribute which doesn't change the first order attributes of the endpoint, such as e.g. the database host name etc). An example of an activation property which requires the adapter to restart is the JMS adapter MessageSelector property.
    Having said that, please try using the activation agent properties set in the outbound PL and see if that works!
    Cheers
    A

Maybe you are looking for

  • 10.6.8 server AFP Crashing

    I know Apple have had problems with AFP Crashing for sometime now but when I first installed 10.6.6 I was only getting about 4 AFP crashes a year (its sad that I think this is a good thing) and even when I upgraded to 10.6.7 it wasn't much different.

  • Wireless Connection Disengaged

    Hello, I had inadvertently disengaged our wireless printer from the network. I am unable to scan or print. Please advise how to re connect wireless printer to laptop. This question was solved. View Solution.

  • Cant connect daughters laptop to broardband - help

    My daughter has come home and has a new laptop, she tried to use my bb conection but after entering the network key which i got of the back of the home hub it then say the network password needs to be 40bit or 104bits depending on your network config

  • WRT54G V8.00.2 Linksys advisor fault

    I am hard wired into a WRT54G V8.00.2 and an get on the internet and also can get on wirelessly with a laptop. The power, WLAN, 1 and Internet lights are lit.  Yet when I go into the Easylink advisor to refresh the network status it tells me there is

  • IChat with new iMac

    Hmmm... Seems I'm having the same problem others are having and NOTHING seems to work. Can see video preview just fine, but when I try to connect, I get the error -21, "Can't get video from camera." I've done everything described in other posts. Frus