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.
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 -
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:
cbalmatiHi,
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 -
I tried to invoke WS from BPEL process
I tried to invoke WS from BPEL process. And error occurred when I deployed the process.
Error:
[ERROR ORABPEL-10902]: COMPILING FAILED.
[NOTE]: IN "bpel.xml", XML syntax analysis failed. The reason is "Part Element not defined".
In "http://192.168.0.188:8989/newTest-newTest-context-root/MyorderListWS?wsdl" , Message Part Element "{http://www.w3.org/2001/XMLSchema}any" is not defined in any SCHEMA。
Please make sure to spell the definite name of the ELEMENT correctly and import WSDL completely.
wsdl file(IMyorderListWS.wsdl)
<?xml version = '1.0' encoding = 'UTF-8'?>
<!--Generated by the Oracle JDeveloper 10g Web Services WSDL Generator-->
<!--Date Created: Thu Sep 29 17:00:15 CST 2005-->
<definitions
name="MyorderListWS"
targetNamespace="http://zbht/com/orderList.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://zbht/com/orderList.wsdl"
xmlns:ns1="http://zbht.com/IMyorderListWS.xsd">
<types>
<schema
targetNamespace="http://zbht.com/IMyorderListWS.xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"/>
</types>
<message name="getResInfo0Request">
<part name="custID" type="xsd:string"/>
<part name="prodctID" type="xsd:string"/>
</message>
<message name="getResInfo0Response">
<part name="return" element="xsd:any"/>
</message>
<portType name="orderListPortType">
<operation name="getResInfo">
<input name="getResInfo0Request" message="tns:getResInfo0Request"/>
<output name="getResInfo0Response" message="tns:getResInfo0Response"/>
</operation>
</portType>
<binding name="orderListBinding" type="tns:orderListPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getResInfo">
<soap:operation soapAction="" style="rpc"/>
<input name="getResInfo0Request">
<soap:body use="encoded" namespace="MyorderListWS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output name="getResInfo0Response">
<soap:body use="literal" namespace="MyorderListWS"/>
</output>
</operation>
</binding>
<service name="MyorderListWS">
<port name="orderListPort" binding="tns:orderListBinding">
<soap:address location="http://192.168.0.188:8989/newTest-newTest-context-root/MyorderListWS"/>
</port>
</service>
</definitions>
/*****************************************************************************************/In your wsdl ...
instead of
<part name="custID" type="xsd:string"/>
try
<part name="custID" element="xsd:string"/>
the part is usually an element such as
<element name="BPELProcess1ProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
hth clemens -
Hi,
Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
Our connectivity between the MQ is success but getting the following error while trying to read the payload.
Text: TxManagerFilter received an error:
[EXCEPTION]
java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
I have searched SDN but couldn't fix it. Please provide your suggestion.
With Regards
Amarnath MHi Amarnath,
Where exactly you are getting this error?
If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
for reference follow below blogs:
Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
Michal's PI tips: XPI inspector - help OSS and yourself
XPI Inspector -
Hi everyone,
I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
And the notifications configured on approval task does not start either.
The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
Has anyone passed trough this situation in SP09?
I think there is an issue with the runtime components delivered with this initial package of SP09.
Suggestions?Hi Kelvin,2016081
The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
For more info about the issue and the patch please refer to SAPNote 2016081.
@Michael Penn - I might be able to assist if you provide the ticket number
Cheers,
Kristiyan
IdM Development -
Exception while calling BPEL from Java Class
Hi All,
I am trying to call BPEL from my Java Code. but i am getting following exception.
java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DomainManagerBean not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:218)
at com.oracle.bpel.client.Locator.getDomainAuth(Locator.java:975)
at com.oracle.bpel.client.Locator.<init>(Locator.java:73)
at callbpel.CallBPEL.main(CallBPEL.java:40)
at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:232)
at com.oracle.bpel.client.Locator.getDomainAuth(Locator.java:975)
at com.oracle.bpel.client.Locator.<init>(Locator.java:73)
at callbpel.CallBPEL.main(CallBPEL.java:40)
Process exited with exit code 0.
Following is my java code.
package callbpel;
import com.collaxa.cube.util.GUIDGenerator;
import com.collaxa.xml.XMLHelper;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.delivery.IDeliveryService;
import java.util.Hashtable;
import java.util.Map;
import com.oracle.bpel.client.ServerException;
import java.rmi.RemoteException;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.w3c.dom.Element;
public class CallBPEL {
public CallBPEL() {
public static void main(String[] args) {
CallBPEL callBPEL = new CallBPEL();
Hashtable env;
try {
env = callBPEL.getInitialContext();
String xml = "<ssn xmlns=\"http://services.otn.com\">" + "1234" + "</ssn>";
Locator locator = new Locator("default",env);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload", xml);
try {
deliveryService.post("JavaCallingBPEL", "initiate", nm);
System.out.println("BPELProcess HelloWorld executed!<br>");
} catch (ServerException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
} catch (NamingException e) {
e.printStackTrace();
} catch (ServerException e) {
e.printStackTrace();
private static Hashtable getInitialContext() throws NamingException {
Hashtable env = new Hashtable();
env.put("orabpel.platform","ias_10g");
env.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
env.put("java.naming.provider.url","opmn:ormi://localhost:6004:oc4j_soa/orabpel");
env.put("java.naming.security.principal","oc4jadmin");
env.put("java.naming.security.credentials","welcome1");
return env;
I am breaking my head since last two days. i dont know whats the problem. i have included almost all the jars in class path.
Can anybody help me in this.
any help is appreciated.
Thanks,
NimishaHi all,
I have solved above problem but run into some other exception below
Dec 22, 2008 12:51:34 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
com.evermind.server.rmi.RMIConnectionException: Disconnected: com.oracle.bpel.client.AbstractIdentifier; local class incompatible: stream classdesc serialVersionUID = 3174123903773674079, local class serialVersionUID = -4389351842028223514
at com.evermind.server.rmi.RmiCallQueue.notifyQueuedThreads(RmiCallQueue.java:70)
at com.evermind.server.rmi.RMIClientConnection.notifyQueuedThreads(RMIClientConnection.java:154)
at com.evermind.server.rmi.RMIClientConnection.resetState(RMIClientConnection.java:128)
at com.evermind.server.rmi.RMIConnection.receiveDisconnect(RMIConnection.java:233)
at com.evermind.server.rmi.RMIClientConnection.receiveDisconnect(RMIClientConnection.java:140)
at com.evermind.server.rmi.RMIConnection.handleOrmiCommand(RMIConnection.java:208)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:222)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
at java.lang.Thread.run(Thread.java:595)
Any Idea?
Thanks,
Nimisha
Edited by: user649974 on Jan 6, 2009 10:50 AM -
Exception - Trying to invoke an External Java Function
Hi,
Can any one Please Help me out am Stuck up with the following Exception While trying to invoke a External java Function.
Step 1: Written the attached Java Class from "Oracle WorkFlow's Developers's" guide.
Ref: http://www.stanford.edu/dept/itss/docs/oracle/10g/workflow.101/b10284/deffa02.htm#stdjfa
Step 2: In builder created a process and created a Java Function
<package-name>.<class-name>
Step 3: Compiled the Java Class,and Created a jar file and included the jar and the required .jar files [which are required to make that class compile free] in the class path.
Step 4: We modified the wfjvlsnr.bat by including the custom jar file which was created and the dependent jar files in the classpath and ran the Java Agent.
Step 5: Invoked the Process from client, once the process is invoked we are getting
Unable to load class gov.oracle.apps.fnd.wf.SampleWF
java.lang.ClassNotFoundException: gov.oracle.apps.fnd.wf.SampleWF
Tue Oct 10 14:33:38 GMT+05:30 2006 Enqueuing VAC02/VAC02 gov.oracle.apps.fnd.wf.SampleWF
null
Unable to load class gov.oracle.apps.fnd.wf.SampleWF
: java.lang.ClassNotFoundEx
ception: gov.oracle.apps.fnd.wf.SampleWF
Regards
VarmaThe engine doesn't see your jar file,
try to change the path where you put your jar file, or try to call it for first in the set classpath -
I'm having 10.8.3 and today 18-Apr Thursday I had installed latest java 7 update. Now when ever I test java page it just redirects the page to Java download on both Firefox and safari. I tried deleting the cache from Java Sec Panel - temp ile but still same prob.
Make sure that the plugin is not automatically disabled in Firefox:
Clinton -
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!
yayaAccording to their documentation, you can't. Having said that, again according to their documentation, there are plans to support this in future releases.
m -
TNS:Operation Timed Out error while trying to invoke BPEL Process from sql
Hi,
I am trying to invoke a BPEL Process from PL/sql code. When i try to invoke the process, I am getting the following error message
ORA-29273 HTTP Request Failed
ORA:06512: at SYS.UTH_HTTP at line 1029
ORA:12535: TNS:Operation Timed Out
ORA:06512: at line 18
I have the SOA suite installed on my local machine...and the BPEL process that i am trying to invoke is deployed their.
Any idea what could be wrong..following is the code piece
soap_request:='<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body xmlns:ns1="http://xmlns.oracle.com/Test">
<ns1:TesProcessRequest><ns1:input>is1_1land</ns1:input></ns1:TesProcessRequest>
</soap:Body>
</soap:Envelope>';
dbms_output.put_line('soap_request: '||soap_request);
utl_http.set_proxy('3.209.30.25:80', '3.209.32.149:8888');
http_req:= utl_http.begin_request('http://3.209.32.149:8888/orabpel/default/Tes/1.0 '
,'POST'
,'HTTP/1.1');
dbms_output.put_line('after Begin Request' );
utl_http.set_header(http_req, 'Content-Type', 'text/xml') ;
Please adviseyou are right the file adapter doesnt invoke any bpel
process, instead it is polling the file from
directory location?If it is polling for new files, shouldn't it create a new instance of the BPEL process automatically the moment it finds a new file? In other words, should a new file trigger an instance of the BPEL process rather than being started from PL/SQL?
Can this file adapter not be invoked as bpel process
in that case?The file adapter is part of a BPEL process. The BPEL process can be invoked from e.g. PL/SQL.
In this case this file adapeter return to an RECEIVE
activity...I think this receive cannot be invoked as
a BPEL process rite?Can you explain what you mean with this?
Also , will all synchronous request return "TIMEOUT"
error, if tried to invoke from pl/sql?Only if the synchronous process instance takes more time to complete (and thus to return) than the value specified for a time-out to occur. If the instance completes in for example 10 ms and the time-out time is specified as 30 seconds, no time-out will occur.
Regards, Ronald -
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. -
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
NadhHere 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);
%>
Maybe you are looking for
-
I'm new to the forum and a new Mac user. My problems started when I attempted to install Win 7. After setting up the proper partition size under I selected installation startup. My MBP restarted and begun the installation. When it asked for which par
-
Family Sharing and iTunes store error
I have setup family sharing using my wife's Appleid as the organizer. Everything was setup and working great until my daughter got an iPhone 6 for her birthday. After finishing setting up her phone she now gets the following message in the iTunes s
-
How do I copy home sharing content to my iPad so it is available off-line
My iPad is not synchronised with my Mac, I use iCloud. How do I transfer an album from iTunes on my Mac that is shared using home sharing to my iPad so that it is also available when I am off line? (similar to synching when plugging the iPad into iTu
-
Ae crashing when opening project
Since of yesterday AE started crashing when opening a project which i worked on a few weeks ago. We opened it on a PC, saved, with a new name. and it would open just fine. When reconnecting the files (AI-drawing) it crashed again. Renamed the drawing
-
How To Split File In to Multiple Files With out using B.P.M
Hi Guys, How To Split File In to Multiple Files With out using B.P.M. Thanks in advance Regards's KIran.B