Invoking BPEL from Webservice
Hello,
I'm trying to change BPEL process state from webservice. The code:
public void switchProcessOf(String name) throws Exception
Hashtable contextProps = new Hashtable();
contextProps.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
contextProps.put(javax.naming.Context.SECURITY_PRINCIPAL, "admin");
contextProps.put(javax.naming.Context.SECURITY_CREDENTIALS, "manager");
contextProps.put(javax.naming.Context.PROVIDER_URL, "ormi://localhost:23791/orabpel");
locator = new Locator("default","bpel", contextProps);
IBPELProcessHandle scHandle = locator.lookupProcess(name);
BPELProcessRevisionInfo ri = scHandle.getRevision();
ri.setState(IBPELProcessHandle.STATE_OFF);
scHandle.updateRevision(ri);
I invoke the websvc and when I log in the BPEL console I get the following error:
"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)
at com.oracle.bpel.client.util.BeanRegistry.lookupServerBean(BeanRegistry.java:95)
at com.oracle.bpel.client.Server.getServerBean(Server.java:463)
at com.oracle.bpel.client.Server.isDomainListingEnabled(Server.java:419)
at _login._jspService(_login.java:90)
Any ideas?
Thanks,
Rogerio
Hi Clemens,
I actually checked the way the entry is required, and it was the same we used here.
I am listing the entries here. Let me know if I am going wrong somewhere.
In Server.xml,
<application
name="customer"
path="../applications/customer.ear"
parent="orabpel"
auto-start="true"/>
In http-web-site.xml,
<web-app
application="customer"
name="customer"
load-on-startup="true"
root="/customer"/>
<web-app
application="customer "
name="customer"
root="/customer"/>
The customer.ear application has just only one cutomer.war file. It fails this way as well as other way where we deploy just the cutomer.war file standalone as a web application.
1. Am I missing any entries ?
2. We need to make duplicate web-app entry with just an additional attribute. What is the reason for this?
Thanks in advance.
|Soumen|
Similar Messages
-
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,
AndyI 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 -
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
pattiHi,
Refer below thread and links for more information. Hope this should help you guys.
ESB Not allowing to call Secured Service
Regards -
[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. -
Hi,
I am trying to Invoke my BPEL process from Apps Event.
I am following the steps given in the Invoking BPEL using Business event in Adapter for Oracle Applications User's Guide .
I have followed all the steps in that but once i create a purchase order and approve it in the Oracle apps side my BPEL process is not getting invoked.
Has anybody tried this and were sucessfull in invoking the BPEL process.
Regards
AshwiniHi.
I'm just working in this type of integration now.
The only difference is that, instead of using BPEL, I'm using Service Bus to receive the events, through the same Oracle Apps Adapter configuration.
I did't have to create any agent listener, but enshured that the Workflow Deferred Agent Listener is running.
In order to have the event generated, you have to create a purchase order using a properly configured trading partner as a supplier. To know if it is OK, when you approve the PO, the transmission method must be XML, otherwise your supplier is not well configured. Note that you have one trading partner configuration per site location, so ensure the site of your supplier is also correct.
Second, check if your PO is approved after submission. If not, maybe it needs approval from some user other than the one you are using for creating the PO.
These steps were enough for me to get it working.
Regards.
Denis -
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 -
How to get ConversationID after invoking BPEL using WebService
Dear all, I have a problem. I have a BPEL process, and I invoked it using Webservices successfully, and the created process instance ran well. However the invoke is asynchronous call and does not return anything.I had a look of the JSP files of BPEL console, it generates the ConversationID using GUIDGenerator.generateGUID(), and this value get set in the property of NormalizedMessage. I have 2 questions
1. Is it possible to include the ConversationID inside the SOAP message so that I can using a pure JAX-WS client to invoke BPEL and get the generated ConversationID?
2. Do you guys have some experienced on how to use the NormalizedMessage.setPayload with a Map argument, not a XML string? So that I construct the Normalized message without adding a XML part
Rgds
Edited by: Linh Dang, Renewtek Vn on Oct 23, 2009 2:13 AMI can answer about 1st:
You can get a conversationID using function ora:getConversationID(). Just Assign this function to your Reply. -
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 moreLooks 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 ?
-
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
SushamaHi,
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. -
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 classpathTry 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. -
Hi All,
I can see from the CICS adapter documentation that SOA Suite can invoke CICS Transactions for a Request-Response style communication.
But I want to know if CICS transaction starts the communication.
e.g. if a CICS transaction triggered on user event, needs some data from a BPEL process, how to start such a communication.
Is there any workaround if this is not provided out of the box.
Thanks,
Ambadas.i think now CICS is supporting webservices as well ,
whene ever CICS transaction triggered on user event invoke the BPEL(Webservice) from CICS
Krishna -
CorrelationSet error while invoking Bpel from a java appli
Hi There,
I'm trying to send a signal from a java application to a bpel process (already instanciated before) and I get the following error :
[Erreur ORABPEL-10015] : propriété de corrélation non résolue
[Description] : à la ligne 25 de "/oracle/product/10.1.2/.../myProjectConvertPdf.bpel", la propriété de corrélation "{http://xmlns.oracle.com/myProjectConvertPdf/correlationset}filename" du correlationSet "CorrelationSet_signalConvOk" n'est pas définie.
[Solution potentielle] : assurez-vous que la propriété "{http://xmlns.oracle.com/myProjectConvertPdf/correlationset}filename" est définie dans l'un des fichiers WSDL référencés.
My java application is designed to get the value of the correlation parameter from another source (the bpel process calls a webservice a webservice in another virtual machine and transmits the parameter value by a database table or a file)
My file .bpel contains :
<receive name="Receive_signalConvOk" partnerLink="signalConvPdfOk" portType="client:projectSignal" operation="receiveSignal" variable="Receive_signalConvOk_receiveSignal" createInstance="no">
<correlations>
<correlation initiate="no" set="CorrelationSet_signalConvOk"/>
</correlations>
</receive>
the correlation is defined as followed :
<correlationSets>
<correlationSet name="CorrelationSet_signalConvOk" properties="ns1:filename"/>
</correlationSets>
and the property alias :
<definitions
name="properties"
targetNamespace="http://xmlns.oracle.com/myProjectConvertPdf/correlationset"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<bpws:property name="filename" type="xsd:string"/>
</definitions>
My java appli calls the bpel process by the following code :
String xml = "<filename xmlns=\"http://xmlns.oracle.com/myProjectConvertPdf\">"+parameterValue+"</filename>\n";
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml );
deliveryService.post(nomProcessBpel,
null,
"signalConvPdfOk",
null,
nomOpBpel,
nm);
My first problem is obviousy the error message and my second problem is that I don't know how to transmit the correlation parameter in the request my java appli does to the bpel process.
Thanks in advance for your helpHi,
Refer below thread and links for more information. Hope this should help you guys.
ESB Not allowing to call Secured Service
Regards -
Error Invoking BPEL from another BPEL
Hi,
I was trying to invoke a BPEL process deployed on the server from another via the partner link activity. In the WSDL URL I gave the server URL for the WSDL, but upon attempting to parse it, the composite gave an error http 502. However, when I try to invoke services that aren't in the SOA contanier, they work out fine. Could anybody say what I'm doing wrong?Hi,
Spoke with the network team, and it is indeed a proxi server problem, I just had to apply for some previlagess, and turn off the proxy checking on Jdev, and I'm home free. Thanks anyway, all.
Bye for now. -
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. -
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 bitHi,
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
Maybe you are looking for
-
Image upload/retrieve turorial not working
The tutorial regarding image upload retrieval in the following link is not working: http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html I get the following error: Java.sql.SQLException: Error in allocatin
-
Error occured while deserializing simple transformation program
Hi, In the SOA Manager( In the CRM PRD system ), when I check the payload trace, the Request is blank and in the Response I find that there are few exceptions 1) CX_SY_CONVERSION_DATA_LOSS: XSLT exception - An error occured while deserializing the si
-
Quicktime export, colors washed out
I think this question has been asked before but I just couldn't find a good explanation in the archives. Wondering if anyone knows why, when I export my movie out of FCP to h.264 and then playback in quicktime, the colors become much more muted and w
-
White screen & beeping on start
My son's early 2008 15" Macbook pro shows only a white screen and beeping on pressing the power button. I am getting this info long distance. Does the beep configuration mean different things?. Is there a start up protocol for this? Dave
-
Hi everyone I need some help on sequencing an application. I am trying to sequence Business Objects 6.5 with all it's dependencies such as Oracle client, Java and MDAC. The application installs and runs with no issues on both Windows 7 SP1 and Window