Invoke BPEL from Java for 11g

I searched the forum and here's the code for 10g
Trying to Invoke BPEL from JAVA
I'm using 11g, do you know if the way to invoke BPEL is the same as 10g? If not, do you know what the differences are?
Thanks,
Andy

I got the below errors when I try to call a composite in 11g. I wrote it in a simple java program and run it within jdeveloper. I'm using the adf binding. When I passed in an empty NormalizedMessage object then it worked fine. But when I passed in the payload data then I got the errors below. It did create an instance on my soa server but the instance did not call the pbel process. Do you have any ideas?
StringBuffer inputPayload = new StringBuffer();
inputPayload.append("<ns1:process xmlns:ns1=\"http://xmlns.oracle.com/BPELScheduler/LineItemProcessEventList\">");
inputPayload.append("<ns1:input>test</ns1:input>");
inputPayload.append("</ns1:process>");
Locator locator = LocatorFactory.createLocator(jndiProps);
Composite composite = locator.lookupComposite("default/BPELScheduler!1.0");
Service service = composite.getService("lineitemprocesseventlist_client_ep_java");
NormalizedMessage input = new NormalizedMessageImpl();
input.getPayload().put("payload",inputPayload);
service.post("process",input);
============ ERROR ========================================
oracle.fabric.common.FabricInvocationException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
     java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
     at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:106)
     at com.masyc.scheduler.BPELDriver.callBpel(BPELDriver.java:54)
     at com.masyc.scheduler.BPELDriver.main(BPELDriver.java:24)
Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
     java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
     at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
     at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1031_WLStub.executeServiceMethod(Unknown Source)
     at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:875)
     at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:98)
     ... 2 more
Caused by: java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
     at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:866)
     at sun.reflect.GeneratedMethodAccessor2796.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
     at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
     at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy238.executeServiceMethod(Unknown Source)
     at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.java:1610)
     at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
     at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.fabric.common.FabricInvocationException
     at oracle.fabric.CubeServiceEngine.post(CubeServiceEngine.java:538)
     at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:142)
     at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:194)
     at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:204)
     at sun.reflect.GeneratedMethodAccessor1043.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
     at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy195.post(Unknown Source)
     at oracle.integration.platform.blocks.sdox.JavaEntryBindingComponent.post(JavaEntryBindingComponent.java:250)
     at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:864)
     ... 30 more
Edited by: user8742475 on Nov 10, 2009 1:39 PM

Similar Messages

  • Trying to Invoke BPEL from JAVA

    Hi
    I want to invoke a bpel process deployed on 10.1.3.X SOA Server from my java program.
    I have inculded a properties file which have following details:
    orabpel.platform=ias_10g
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://adc60009rems.us.oracle.com:6083:oc4j_soa/orabpel
    java.naming.security.principal=oc4jadmin
    java.naming.security.credentials=welcome1
    JAVA Code is:
    Locator locator = new Locator("default","bpel",props);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    System.out.println(nm);
    deliveryService.post("FixXREF", "initiate", nm);
    where xml is the soap message.
    The problem is, BPEL process is getting invoked but not with the given xml.
    Input to BPEL is empty.
    Can someone please let me know, what I am missing or what is the correct process to call a BPEL from Java.
    Thanks
    Sushama

    Hi,
    how does your payload (xml) looks like? I would recommend you to start a Process using the BPEL Console and then compare both payloads. Maybe you are missing some namespaces.

  • Trouble to invoke BPEL from Java Client following rmi example

    I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi .
    I created my Java class within NetBeans IDE. And the following line of code return null for url,
    java.net.URL url = ClassLoader.getSystemResource("context.properties");
    I think that I need to have SystemResource set up somewhere, how should I do that?

    if you using oc4j.. then please make a small change in oc4j_context.properties
    from
    java.naming.provider.url=[java.naming.provider.url]
    to
    java.naming.provider.url=ormi://hostname/orabpel
    And please make sure the context.properties file which gets copied to classes/context.properties has this above entry. For more details please refer to build.xml under rmi folder.
    Please do let me know if you face any issue.

  • [HELP] How to invoke BPEL from JAVA program via calling WSDL?

    Dear all,
    Customer want to invoke BPEL process in their Java program by calling BPEL WSDL, but not successfully.
    Does BPEL support this calling way? If so, would pls give a sample?
    BTW, they do not want to use API of OraBPEL.jar.
    Thanks in advance.

    Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
    On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
    The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java.

  • Invoke bpel from java - Failed to create "ejb/collaxa/system/DeliveryBean

    Hi,
    I have a very simple java class to invoke CreditRatingProcess sample:
    String ssn = null;
    if (ssn == null)
    ssn = "123-12-1234";
    String xml =
    "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
    Locator locator = new Locator("default", "oc4jadmin", "localhost");
    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("CreditRatingService", "process", nm);
    Map payload = res.getPayload();
    System.out.println("BPELProcess CreditRatingService executed!<br>");
    System.out.println("Credit Rating is " + payload.get("payload"));
    When I try to execute, I have the following error:
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
         at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
         at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
         at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
         at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
    I use SOA suite 10.1.3 Developer Preview and JDeveloper 10.1.3
    Can you help me?
    Cyryl
    Message was edited by:
    cbalmati
    Message was edited by:
    cbalmati

    Hi,
    Thanks fro your answer. But it does not work ...
    My demo runs on my laptop (SOA10.1.3 DP / JDeveloper 10.1.3)
    This is my code:
    public void test() {
    String xml = "<name xmlns=\"http://samples.otn.com/helloworld\">" + "test" + "</name>";
    Hashtable jndi = null;
    jndi = new Hashtable();
    // Change the PROVIDER_URL to your BPEL PM host...
    jndi.put(Context.PROVIDER_URL, "ormi://localhost/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");
    Locator locator = null;
    try {
    locator = new Locator("default","bpel", jndi);
    } catch (ServerException e) {
    e.printStackTrace();
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    System.out.println(xml);
    nm.addPart("payload" , xml );
    try {
    deliveryService.post("HelloWorld", "initiate", nm);
    } catch (ServerException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    and that's my error:
    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.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
         at docsdemo.ui.XMLMessageHelper.test(XMLMessageHelper.java:62)
         at docsdemo.ui.tests.Tests.<init>(Tests.java:15)
         at docsdemo.ui.tests.Tests.main(Tests.java:20)
    I don't understand because I created a simple JSP to invoke helloWorld process (same code), it's works !!
    Any suggestion?
    Cyryl

  • How to invoke Matlab from Java

    Hi, I want to pass some data generated from Java class to Matlab, then invoke Matlab from Java to run the computation program (file written in Matlab, myfile.m). I know Matlab can use classes generated from Java, how to drive Matlab from Java?
    I appreciate your help!
    yaya

    According to their documentation, you can't. Having said that, again according to their documentation, there are plans to support this in future releases.
    m

  • Urgent :: 11g Invoking Composite from Java/From Webservice Proxy

    Hi All,
    i have a requirement where in need to when ever the exception occurs it invokes custom java and then it invoked a BPEL process to handle the errror.
    in 10.1.3.4 i used to Java Api to invoke the BPEL process and it works fine.
    1) . now we are migrating to 11g, i know this API wont work with 11g as the server is on weblogic and client librairies may be different for invoking in composite it in 11g. if any body has invoked a composite using java and the using 11g libraries to invoke the composite ? if so can you please post here ?
    2). otherway i tried to create a Web Service proxy using Jdeveloper for the composite, when i test it using Jdeveloper it is working fine, but when i place it in the lib directory, im getting a bad response from server 503.
    please see logs below for the second approch
    Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invokeOneWay(DispatchImpl.java:989)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:224)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invokeOneWay(OracleDispatchImpl.java:102)
         at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:447)
         ... 61 more
    Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:209)
         at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:73)
         at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
         at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
         at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
         at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273)
         at oracle.j2ee.ws.common.async.RequestorImpl.invokeOneWay(RequestorImpl.java:169)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invokeOneWay(DispatchImpl.java:985)
         ... 64 more
    Caused by: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.processHttpResponseCode(HttpSOAPConnection.java:603)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:469)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:1203)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:207)
         ... 71 more
    if any body has already implemented the invocation of composite in one of above approaches, please let me know.
    any pointers to resolve this will be of great help
    Thanks
    Nadh

    Here is sample to invoke a composite from JSP, this should be same from Java Class. Note that the composite should use adf binding and not ws binding.
    Here is snippet of composite.xml service:
    <service name="rmibpel_client_ep" ui:wsdlLocation="RMIBPEL.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/Application1/RmiVsSOAP/RMIBPEL#wsdl.interface(RMIBPEL)"/>
    <binding.adf serviceName="rmibpel_client" registryName=""/> </service>
    Note the binding should be binding.adf and not binding.ws
    Sample jsp:
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.Map" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="oracle.soa.management.facade.Locator" %>
    <%@page import="oracle.soa.management.facade.LocatorFactory" %>
    <%@page import="oracle.fabric.common.NormalizedMessage" %>
    <%@page import="oracle.soa.management.util.NormalizedMessageImpl" %>
    <%@page import="oracle.soa.management.facade.Composite" %>
    <%@page import="oracle.soa.management.facade.Service" %>
    <html>
    <head>
    <title>Invoke HelloWorld</title>
    </head>
    <body>
    <%
    String msg = request.getParameter("world");
    if(msg == null)
    msg = "World";
    String xml = "<process xmlns=\"http://xmlns.oracle.com/Application1/RmiVsSOAP/RMIBPEL\"><input>" + msg + "</input></process>";
         Hashtable jndiProps = new Hashtable();
         jndiProps.put(Context.PROVIDER_URL,"t3://strec03-1.us.oracle.com:8001/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL,"weblogic");
    jndiProps.put(Context.SECURITY_CREDENTIALS,"weblogic");
    jndiProps.put("dedicated.connection","true");
    Locator locator = LocatorFactory.createLocator(jndiProps);
         String compositeDN = "default/RmiVsSOAP!1.0";
    Composite composite = locator.lookupComposite(compositeDN);
    String serviceName = "rmibpel_client_ep";
    Service deliveryService = composite.getService(serviceName);
    System.out.println("composite=" + composite);
    System.out.println("deliveryServce=" + deliveryService);
    // construct the normalized message and send to Oracle WLS
    NormalizedMessage nm = new NormalizedMessageImpl();
    nm.getPayload().put("payload", xml );
         NormalizedMessage res = null;
         try {
              res = deliveryService.request("process", nm);
         catch(Exception e)
         e.printStackTrace();
    Map payload = res.getPayload();
    out.println( "BPELProcess HelloWorldService executed!<br>");
    //See below output in log file
    oracle.xml.parser.v2.XMLElement elem =
         (oracle.xml.parser.v2.XMLElement) payload.get("payload");
    elem.print(System.out);
    %>

  • Invoke bpel from ADF Backing Bean

    Hi,
    I have a requirement of invoking a bpel process developed with SOA 11g Suite from a ADF Backing Bean in Jdeveloper 10g. Can someone provide me with code samples?
    I have reference for invoking bpel process from standalone java client in Jdeveloper 11g, but landing up getting exceptions.
    This is critical and any help is appreciated!

    Hi,
    Thanks. This is the code used. I'm trying to invoke a bpel created in SOA suite 11g using a stand alone java client in Jdeveloper 10.1.3.3.0.4147.
    public static void main(String args[]) throws Exception {
    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.PROVIDER_URL,
    "url");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL,"weblogic");
    jndiProps.put(Context.SECURITY_CREDENTIALS,"pwd");
    jndiProps.put("dedicated.connection","true");
    Locator locator = LocatorFactory.createLocator(jndiProps);
    String inputPayload = getDOM();
    String compositeDN="default/myprocess!1.0";
    Composite composite = locator.lookupComposite(compositeDN);
    System.out.println("getting the dn "+composite.getDN());
    String serviceName="myprocess";
    Service deliveryService = composite.getService(serviceName);
    // construct the normalized message and send to Oracle WLS
    NormalizedMessage nm = new NormalizedMessageImpl();
    nm.getPayload().put("payload", inputPayload );
    NormalizedMessage res = null;
    try
    res = deliveryService.request("initiate", nm);
    catch(Exception e)
    e.printStackTrace();
    System.out.println("updated");
    public static String getDOM() {
    StringBuffer res = new StringBuffer();
    String requestXml="";
    try{                       
    InputStream is = new BufferedInputStream(
    new FileInputStream("D:\\test.xml"));
    int c;
    while ((c = is.read())!= -1 ){
    res.append((char)c);
    }catch(Exception e){
    e.printStackTrace();
    return res.toString();
    This line res = deliveryService.request("initiate", nm);
    ends up getting the following exception.
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1032_WLStub.executeServiceMethod(Unknown Source)
    at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:916)
    at oracle.soa.management.internal.facade.ServiceImpl.request(ServiceImpl.java:118)
    at invokebpelprocess.InvokeBpel.main(InvokeBpel.java:74)
    The following jars are included.
    Soa-infra-mgmt.jar
    weblogic.jar
    wsclient.jar
    wsclient-extended.jar
    wlfullclient.jar
    fabric-common.jar
    fabric-runtime.jar
    Edited by: user10291345 on Oct 26, 2010 2:09 AM

  • Error while invoking BPEL from ESB

    Hi All,
    I am try'n to invoke BPEL process from ESB services ,where my BPEL process contains a webservice which has an input parameter of type ,a customized bean.
    I am hitting with the below error
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1182) at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source) at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(Unknown Source) at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(Unknown Source) at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(Unknown Source) at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source) at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source) at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source) 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.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711) 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.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595) ". at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source) at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(Unknown Source) at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(Unknown Source) at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(Unknown Source) at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source) at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source) at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source) 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.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711) 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.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595) Caused by: org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1182) ... 39 more ". </faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Help me out form this issue...
    & pls let me know if iam not clear.
    Regards,
    Kalyan patti.
    Message was edited by: kalyan
    patti

    Hi,
    Refer below thread and links for more information. Hope this should help you guys.
    ESB Not allowing to call Secured Service
    Regards

  • Error while invoking bpel through java

    when i was using java to invoke iam getting an exception
    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.
    when iam using html the bpel works fine.
    But when i use java with IDeliveryService.post() it is giving error in Bpel flow by saying
    exception on JaxRpc invoke:
    start fault message:
    Internal Server Error (Caught exception while handling request: oracle.forms.jdapi.JdapiException: '' does not have an extension)
    :end fault message.
    Please help me in this issue.

    try as follows
    Invoking a one-way operation via Java API The procedure for invoking a one-way BPEL operation via the Java API is very similar, except that you will use the IDeliveryService.post() method (which is also overloaded). These methods invoke a one-way operation on a BPEL process and thus return void since a response is not expected (at least not a synchronous response). In the code example shown here, the post method used is exactly the same as the request() shown above, except that it returns void: From JavaDoc for com.oracle.bpel.client.dispatch.IDeliveryService <br><br>
    public void post(java.lang.String processId, java.lang.String operationName, NormalizedMessage message) throws java.rmi.RemoteException <br>
    <br><br>Selected JSP source:<br><br>
    <%@page import="com.oracle.bpel.client.Locator" %> <br>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %> <br>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %> ... <br>Locator locator = new Locator("default", "bpel", null); <br>
    ... NormalizedMessage nm = new NormalizedMessage( ); <br>
    nm.addPart("payload" , xml ); <br>
    deliveryService.post("HelloWorld", "initiate", nm); <br>
    out.println( "BPELProcess HelloWorld initiated!" ); %>

  • Problem while invoking BPEL from a JSP.

    I have a very simple JSP
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <%@page import="java.util.Hashtable" %>
    <%@page import="javax.naming.Context" %>
    <html>
    <head>
    <title>Invoke HelloWorld</title>
    </head>
    <body>
    <%
    Hashtable jndi = null;
    String name = request.getParameter("name");
    if(name == null)
    name = "BPEL";
    String xml = "<name xmlns=\"http://samples.otn.com/helloworld\">" + name + "</name>";
    Locator locator = new Locator("default","bpel",jndi);
    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 );
    deliveryService.request("HelloWorld", "process", nm);
    out.println( "BPELProcess HelloWorld initiated!" );
    %>
    Please refer to the
    BPEL Console
    to see the status of the initiated HelloWorld BPEL Process.
    </body>
    </html>
    when i am trying to run this JSP i get the following error
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ApplicationContext.lookup(ApplicationContext.java:195)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)     at _Hello._jspService(_Hello.java:79)     [Hello.jsp]
    Please help.. is it any configuration problems do i need to set any classpath

    Try this first, to start the process from Java client:
    http://orasoa.blogspot.com/2007/06/calling-bpelesb-webservice-from.html
    The default demo applications should be working after a default install.

  • Problem in Invoking Bpel from HTML

    below Bpel process client wsdl code which is called from HTML(http://blogs.oracle.com/reynolds/2005/09/invoking_bpel_from_an_html_for.html followed the link ) but when i have called the process with this link http://sys0004:8889/httpbinding/default/getOpenInvoices/OpenInvoices?accountNumber=1608 the result is not coming up it shows only
    the query which it contains to get the result works fine in SqlDeveloper anyone please help me
    <OpenInvoiceProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/getOpenInvoices" />
    <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:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         xmlns:client="http://xmlns.oracle.com/getOpenInvoices">
        <types>
            <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/getOpenInvoices"  xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="OpenInvoiceProcessResponse">
          <complexType>
            <sequence>
              <element name="result" type="string"/>
            </sequence>
          </complexType>
        </element>
            </schema>
        </types>
        <message name="getOpenInvoicesRequestMessage">
            <part name="accountNumber" type="xsd:string"/>
        </message>
        <message name="getOpenInvoicesResponseMessage">
            <part name="payload" element="client:OpenInvoiceProcessResponse"/>
        </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/>
        </output>
        </operation>
        </binding>
        <service name="OpenInvoiceService">
        <port binding="client:OpenInvoicebindings" name="OpenInvoiceport">
        <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>above is from SOA 10.1.3.1 with 10.1.3.4 patchset DB version:oracle 10g on windows XP 32 bit

    Hi,
    any one please help me out in this issue
    in BPEL Manager log
    <2010-07-12 03:43:25,967> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/C:/xxx/oracle/soa/10.1.3.1/bpel/domains/default/tmp/.bpel_getOp
    enInvoices_v2010_07_12__58321_ddf0db917991d1bd56e2e86088d3ae01.tmp/getOpenInvoic
    esService.wsdl [ getOpenInvoicesService_ptt::getOpenInvoicesService(getOpenInvoi
    cesServiceInput_msg,getOpenInvoicesServiceOutputCollection) ] - Could not invoke
    operation 'getOpenInvoicesService' against the 'Database Adapter' due to:
    ORABPEL-11633
    Pure SQL Exception.
    Pure SQL Execute of SELECT distinct aps.trx_number TrxNumber, ra.purchase
    order PurchaseOrder,       rl.salesorder OrderNumber, ra.interface_heade
    r_attribute2 OrderType, hc.account_number CustomerNumber, rt.name T
    rxType, aps.acctd_amount_due_remaining AmmountDue, to_date(aps.trx_d
    ate,'DD-MON-YYYY HH24:MI:SS') TrxDate, to_date(aps.due_date,'DD-MON-YYYY
    HH24:MI:SS')TrxDueDate FROM ra_customer_trx_all ra , ra_customer_trx_li
    nes_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_i
    d AND ra.customer_trx_id = aps.customer_trx_id AND ra.org_id
    = aps.org_id AND rl.org_id = aps.org_id AND rct.cus
    tomer_trx_id = aps.customer_trx_id AND rct.customer_trx_id = r
    a.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
    = 'Y' AND rl.line_type IN ('FREIGHT', 'LINE') AND ra.cust_trx
    typeid = rt.cust_trx_type_id AND ra.bill_to_customer_id = hc.cu
    st_account_id AND hc.status = 'A' AND hp.party_id
    = hc.party_id AND hcasa_bill.cust_account_id = ra.bill_to_customer_id AN
    D hcasa_bill.cust_acct_site_id = hcsua_bill.cust_acct_site_id AND hcsua_bill.sit
    e_use_code = 'BILL_TO' AND hcsua_bill.site_use_id = ra.bill_to_site_us
    e_id AND hps_bill.party_site_id = hcasa_bill.party_site_id AND hcasa_bill.
    status = 'A' AND hcsua_bill.status = 'A' AND aps.amount_du
    e_remaining <> 0 AND aps.status = 'OP' AND hc.account_numbe
    r=? failed. Caused by java.lang.NullPointerException.
    The Pure SQL option is for border use cases only and provides simple yet minimal
    functionality. Possibly try the "Perform an operation on a table" option inste
    ad.
    <2010-07-12 03:43:25,967> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to se
    e full error stack
    <2010-07-12 03:43:25,967> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/C:/vijay/oracle/soa/10.1.3.1/bpel/domains/default/tmp/.bpel_getOp
    enInvoices_v2010_07_12__58321_ddf0db917991d1bd56e2e86088d3ae01.tmp/getOpenInvoic
    esService.wsdl [ getOpenInvoicesService_ptt::getOpenInvoicesService(getOpenInvoi
    cesServiceInput_msg,getOpenInvoicesServiceOutputCollection) ] - Rolling back JCA
    LocalTransaction
    <2010-07-12 03:44:11,108> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
    ogError> Error while invoking bean "delivery": Waiting for response has timed ou
    t. The conversation id is null. Please check the process instance for detail.
    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 com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:109)
    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:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke
    (EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(Inv
    ocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSI
    nterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(Inv
    ocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAAS
    Interceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:620)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAA
    SInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(Inv
    ocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invo
    ke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(Inv
    ocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSI
    nterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(Inv
    ocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContex
    tPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(S
    tatelessSessionEJBObject.java:87)
    at DeliveryBean_LocalProxy_4bin6i8.request(Unknown Source)
    at com.oracle.bpel.client.delivery.LocalDeliveryService.request(LocalDel
    iveryService.java:79)
    at com.oracle.bpel.client.delivery.LocalDeliveryService.request(LocalDel
    iveryService.java:48)
    at com.collaxa.cube.ws.http.HttpBindingServlet.call(HttpBindingServlet.j
    ava:201)
    at com.collaxa.cube.ws.http.HttpBindingServlet.doGet(HttpBindingServlet.
    java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.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(ServletReque
    stDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
    SocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocket
    AcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
    ServerSocketAcceptHandler.java:880)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for
    response has timed out. The conversation id is null. Please check the process in
    stance for detail.
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyTyp
    e(DeliveryHandler.java:528)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(Deliv
    eryHandler.java:451)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHand
    ler.java:125)
    at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
    ... 43 more
    2010-07-12 03:44:11.123 ERROR ServletException cause
    this is from BPEL Manager 10.1.3.1

  • How to invoke bpel from jsp

    Hi,
    I created a bpel application helloword.bpel which has one assign activity it takes input as a name i want to invoke this from jsp i write a code in jsp as follows:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="com.oracle.bpel.client.Locator" %>
    <%@ page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@ page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <%@ page import="com.oracle.bpel.client.util.Parameters" %>
    <html>
    <head>
    <title>helloworld</title>
    </head>
    <%
    String name=request.getParameter("name");
    if(name==null)
    name="BPEL";
    String xml ="<name xmlns=\"http://xmlns.oracle.com/helloworld\">" + name + "</name>";
    Locator locator = new Locator("default","helloworld");
    com.oracle.bpel.client.dispatch.IDeliveryService deliveryService = (com.oracle.bpel.client.dispatch.IDeliveryService) locator.lookupService(com.oracle.bpel.client.dispatch.IDeliveryService.SERVICE_NAME);
    com.oracle.bpel.client.NormalizedMessage nm = new com.oracle.bpel.client.NormalizedMessage();
    nm.addPart("payload",xml);
    deliveryService.post("helloworld","intiate",nm);
    out.println("BPELprocess helloWorld intiated");
    %>
    </html>
    i compiled this it is error free but when i try to run this i got a 500 internal server error whats the problem i dont if any one knows pls help me out.
    im new to bpel.
    the error is
    500 Internal Server Error
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.lookup(ApplicationContext.java:195)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at _helloworld._jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)".     at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at helloworld.jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.lookup(ApplicationContext.java:195)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at _helloworld._jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)".     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     ... 21 more

    Looks like you are hitting some bug on 10.1.3.1.0, have you tried on a higher version and also referred SOA_ORACLE_HOME\bpel\samples\tutorials\102.InvokingProcesses\jsp sample ?

  • How to Invoke BPEL through JAVA

    I am struggling since last 4-5 days to invoke BPEL process through java.
    So can any one provide me with full code.
    I want any java code like jsp,core java,servlets etc.
    Here is my jsp code with which I am trying to invoke my BPEL process named 'invoke'.which has just one input parameter 'InvokeProcessRequest'.
    The error is 500 internal server error.
    also,
    I want to know,
    what parameter to write in Locator class.
    whether we have to make in changes in any xml file or so.
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <html>
      <head>
       <title>InvokeBPEL</title>
      </head>
    <body>
    <%
      String Payload = request.getParameter("Payload");
    %>
        <!-- Construct HTML form here -->
         <h3>Invoke</h3>
    <h4>Application Form</h4>
    <form>
       <table>
       <tr>
         <td>Payload</td>
         <td><input type="text" name="Payload" value="123456789"></td>
       </tr>
       <tr>
         <td>InvokeProcessRequest</td>
         <td><input type="text" name="InvokeProcessRequest" value="invoke"></td>
       </tr>
       </table>
       <input type="submit" value="Send Application">
    </form>
    <%
        // 1. Get form fields
         String InvokeProcessRequest = request.getParameter("InvokeProcessRequest"); 
        // 2. Create loan application XML document
          String xml = "<invoke xmlns=\"http://www.w3.org/2001/XMLSchema\">"      
             + "<Payload>" + Payload + "</Payload>"     
          + "<InvokeProcessRequest>" + InvokeProcessRequest + "</InvokeProcessRequest>"     
            + "</invoke>";
        // 3. Initiate the BPEL process here
          // Connect to Oracle BPEL server
             Locator locator = new Locator("default","bpel");
            IDeliveryService deliveryService = (IDeliveryService)
            locator.lookupService(IDeliveryService.SERVICE_NAME );
             // Construct a normalized message and send to Oracle BPEL Process Manager  
         NormalizedMessage nm = new NormalizedMessage();  
         nm.addPart("payload", xml);
           // Initiate the BPEL process  
         deliveryService.post("invoke", "initiate", nm);
         %>    <p>BPEL Process <code>MyLoanFlow</code> initiated    
                 with a loan application containing Payload=<%= Payload %></p>
               <p>Please refer to the   
               <a href="/BPELConsole/displayInstance.jsp">BPEL Console</a>
                to see the status of the initiated MyLoanFlow BPEL Process.</p>
         <%
    %>
    </body>
    </html>

    Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
    On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
    The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java.

  • How to invoke javafx from java code

    hi all,
    i'm trying to invoke my .fx class from java class, but getting exception.
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    javax.script.ScriptException: compilation failed
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.parse(JavaFXScriptEngineImpl.java:255)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:145)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:136)
    at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
    at myclockproject.Main2.main(Main2.java:34)
    I read in article http://java.sun.com/developer/technicalArticles/scripting/javafx/javafx_and_java/ about including javafxc.jar in classpath .. could some one tell me what classpath he meant, i have included it in my environment variable and also project libraries .. still getting error :(

    coolsayan.2009 wrote:
    thanx.is communication api required?but is the communication api available for windows?its available for linux and sparc??Are you referring to the COMM API that is referenced in the first link when you google - the one entitled "How to Send SMS using Java Program (full code sample included)"? If so, Here: [http://java.sun.com/products/javacomm/|http://java.sun.com/products/javacomm/]
    what to do in serverside?is any change required in web.xml or any jndi setup in serverside if i call the java class from a jsp page?I don't know, are you planning on making your class available through JNDI?

Maybe you are looking for

  • Vendor debit balance should come in sundry debtor balance

    Hi, Gurus                 My problem is that my client wants that if a vendor has debit balance than it should be treated as sundry debtor (Current Asset) and balance should come in sundry debtor reco. GL, similarly if a Customer has credit balance t

  • Photos/videos lost iphone 4.

    I purchased a new iphone 4 last week and had my photos videos and contacts imported from my old Android phone and then sold my old phone. An hour later, I went to look at my pictures and they were just gone. I had videos of a pet that recently passed

  • Using C6 as a modem via USB in MacBook Pro

    I'm having trouble connecting my MacBook Pro to Internet via C6. I would like to use it via USB. My system in Mac is 10.5.8 Can someone tell me what to do?

  • Satellite P305-S8997E: Cannot upgrade to Win7 64bit - error: Your System Is Not Applicable To Upgrade

    Hi everyone. I have the Toshiba Upgrade Disc for Windows 7 Home Premium as I am currently running Vista Home Premium 64bit. I do choose the 64bit upgrade version path with the Toshiba Upgrade Assistant. However, I get knocked out with the Toshiba Upg

  • How can I request an enhancement to Thunderbird?

    I'd like to see a capability in Thunderbird that would allow user to switch on/off (ie an over-ride of current system setting) "saving a copy" at an individual e-mail level at time of creation/send of the e-mail. For example, my personal default sett