Invoking specific version of BPEL process
Hi All,
I would like to keep multiple revisions of same BPEL process in one domain on the server and I would like to call specific version of process
Does anybody has any idea how to do that...?
Thanks
-Praveen
Using JDeveloper (I am using 10.1.3.1 build 3984), once you have deployed the first version of your BPEL process, you will be asked to pick a new version when you want to re-deploy the service. You can just pick a different version at his time; in my case I add a minor version letter: 1.0.c
On the deployment properties screen, you will see your version (1.0.c) and the server-side versions (1.0 and 1.0.c). You can decide to overwrite them or create a new one.
The same can be achieved through command line, as JDev use ant under the cover. The process generated will be named with the version you provided. In my case:
BPEL suitcase generated in: C:\dev\BPELPricer\output\bpel_CalculatePriceWS_1.0.c.jar
Once the BPEL process are deployed, you can point at a specific revision with the service endpoint URL. In my case, the URL look like this:
"http://" + HOST_NAME + "/orabpel/default/CalculatePriceWS/1.0.c"
You have also the ability to select a specific version from the BPEL Console, using a drop down list to pick the one to test.
To keep the code for multiple versions of the BPEL project, you should be using a source control system, like SVN, CVS, or many other alternative out there.
Hope it helps,
-Eric
Similar Messages
-
Problem calling different versions of BPEL process from an ESB
We are currenlty having a problem calling a BPEL process from an ESB service.
We initially developed the solution and the two communicated correctly, however it was necessary to make some changes to the BPEL process and we subsequently redeployed the BPEL process incrementing the version number.
However the ESB service when initiated was still calling the initial version of the ESB service.
Is there any way of making the ESB call the default BPEL process version as configured from the BPEL console.You can accomplish this task by invoking SOAP Service in ESB that points to current WSDL of BPEL process, for example:
http://localhost:8888/orabpel/default/SOAOrderBooking/SOAOrderBooking?wsdl
instead of
http://localhost:8888/orabpel/default/SOAOrderBooking/1.0/SOAOrderBooking?wsdl
This information is accessible in Metalink Note: 430206.1 -
Unable to invoke an asynch Oracle BPEL process
Im currently struggling to invoke an Oracle BPEL web service from another Oracle BPEL process.
When creating the invoking process I pasted in the wsdl from the BPEL console to describe the invoked process rather than use the original wsdl generated by the tool.
The wsdl is given below :
At run time execution fails at the point where the invoking BPEL web service calls the first BPEL process, the error is a binding fault with desc : unable to find available port.
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions name="Supplier" targetNamespace="http://xmlns.oracle.com/Supplier" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/Supplier" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/Supplier">
- <types>
- <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/Supplier" xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="SupplierProcessRequest">
- <complexType>
- <sequence>
<element name="input" type="string" />
</sequence>
</complexType>
</element>
- <element name="SupplierProcessResponse">
- <complexType>
- <sequence>
<element name="result" type="string" />
</sequence>
</complexType>
</element>
</schema>
- <schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://pc1520952:9700/orabpel/xmllib/ws-addressing.xsd" />
</schema>
</types>
- <message name="ReplyToHeader">
<part name="ReplyTo" element="wsa:ReplyTo" />
</message>
- <message name="MessageIDHeader">
<part name="MessageID" element="wsa:MessageID" />
</message>
- <message name="SupplierRequestMessage">
<part name="payload" element="tns:SupplierProcessRequest" />
</message>
- <message name="SupplierResponseMessage">
<part name="payload" element="tns:SupplierProcessResponse" />
</message>
- <message name="RelatesToHeader">
<part name="RelatesTo" element="wsa:RelatesTo" />
</message>
- <portType name="Supplier">
- <operation name="initiate">
<input message="tns:SupplierRequestMessage" />
</operation>
</portType>
- <portType name="SupplierCallback">
- <operation name="onResult">
<input message="tns:SupplierResponseMessage" />
</operation>
</portType>
- <binding name="SupplierCallbackBinding" type="tns:SupplierCallback">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="onResult">
<soap:operation style="document" soapAction="onResult" />
- <input>
<soap:header message="tns:RelatesToHeader" part="RelatesTo" use="literal" encodingStyle="" />
<soap:body use="literal" />
</input>
</operation>
</binding>
- <binding name="SupplierBinding" type="tns:Supplier">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="initiate">
<soap:operation style="document" soapAction="initiate" />
- <input>
<soap:header message="tns:ReplyToHeader" part="ReplyTo" use="literal" encodingStyle="" />
<soap:header message="tns:MessageIDHeader" part="MessageID" use="literal" encodingStyle="" />
<soap:body use="literal" />
</input>
</operation>
</binding>
- <service name="Supplier">
- <port name="SupplierPort" binding="tns:SupplierBinding">
<soap:address location="http://pc1520952:9700/orabpel/default/Supplier/1.0" />
</port>
</service>
- <service name="SupplierCallbackService">
- <port name="SupplierCallbackPort" binding="tns:SupplierCallbackBinding">
<soap:address location="http://set.by.caller" />
</port>
</service>
- <plnk:partnerLinkType name="Supplier">
- <plnk:role name="SupplierRequester">
<plnk:portType name="tns:SupplierCallback" />
</plnk:role>
- <plnk:role name="SupplierProvider">
<plnk:portType name="tns:Supplier" />
</plnk:role>
</plnk:partnerLinkType>
</definitions>I have got the same error.
and if you look at your wsdl generated in xmlSpy(or something to check xml),
you will see that the xml is not Valid!!!!
Here is the fault by no targetNameSpace is in it(like in the first schema)
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://pc1520952:9700/orabpel/xmllib/ws-addressing.xsd" />
</schema>
This error is generated when trying to invoke a asynchronous BPEL deploy before in the engine.
Error can be comprehensive is the Wsdl is not valid...
When I deploy a asynchronous BPEL workflow in BPEL workflow 10.1.2, the compiler add <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://$server-url$:9700/orabpel/xmllib/ws-addressing.xsd" />
in the wsdl and is not valid.
Anyone from the BPEL team know this , and find a solution???
Thanks. -
Invoke ODI Scenario from BPEL Process
Hi:
My problem is when invoke ODI Scenario from a BPEL Process, the error in ODI Designer is:
Return Code 7000
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)
In the BPEL Console the result is OK and process complete, but in the task INVOKE Scenario send message:
<messages><ODI_REQUEST><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><invokeScenarioRequest xmlns="xmlns.oracle.com/odi/OdiInvoke/">
<RepositoryConnection xmlns=""
<JdbcDriver>oracle.jdbc.driver.OracleDriver</JdbcDriver>
<JdbcUrl>jdbc:oracle:thin:@192.168.1.109:1521:ORCL</JdbcUrl>
<JdbcUser>dimaster</JdbcUser>
<JdbcPassword>sabr0sa</JdbcPassword>
<OdiUser>SUPERVISOR</OdiUser>
<OdiPassword>SUNOPSIS</OdiPassword>
<WorkRepository>TESTWORKREP1</WorkRepository>
</RepositoryConnection>
<Command xmlns="">
<ScenName>P_TRASPASOSOP09</ScenName>
<ScenVersion>2</ScenVersion>
<Context>Global</Context>
<LogLevel>5</LogLevel>
<SyncMode>0</SyncMode>
<SessionName/>
<Keywords/>
<Variables>
<Name/>
<Value xmlns:ns1="http://xmlns.oracle.com/Recepcion">
<ns1:Escenario>P_TRASPASOSOP09</ns1:Escenario>
<ns1:Version>2</ns1:Version>
<ns1:Contexto>Global</ns1:Contexto>
<ns1:ID>1</ns1:ID>
<ns1:NivelLogeo>5</ns1:NivelLogeo>
</Value>
</Variables>
</Command>
<Agent xmlns="">
<Host>192.168.1.109</Host>
<Port>20910</Port>
</Agent>
</invokeScenarioRequest>
</part></ODI_REQUEST><ODI_RESPONSE><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="part1"><odi:invokeScenarioResponse xmlns:odi="xmlns.oracle.com/odi/OdiInvoke/">
<odi:CommandResultType>
<odi:Ok>true</odi:Ok>
<odi:SessionNumber>445000</odi:SessionNumber>
</odi:CommandResultType>
</odi:invokeScenarioResponse>
</part></ODI_RESPONSE></messages>
You have response a problem?
Edited by: user2080320 on 16-oct-2008 11:18Hi,
I'm also trying to implement the scenario of invoking ODI from BPEL process. I need a document with the steps to guide me thru the whole process.
Thanks in advance!. -
Unable to invoke EJB from a BPEL process.
Hello all
I am running BPEL process manager over weblogic 8.1 App server. I am trying to invoke a simple stateless session bean from a synchronous BPEL process. I have created a WSDL for this EJB with appropriate binding and service elements.
I am able to build my BPEL sync process and deploy it. But, when I run the process and invoke the EJB, I am getting the following exception-
BPEL Fault: {http://schemas.oracle.com/bpel/extension}bindingFaultCould not create instance for home 'ClusterableRemoteRef(-3059145150938040994S:172.26.210.17:[9700,9700,-1,-1,9700,-1,-1,0,0]:myorabpel:orabpelServer [-3059145150938040994S:172.26.210.17:[9700,9700,-1,-1,9700,-1,-1,0,0]:myorabpel:orabpelServer/288])/288'; nested exception is:
java.lang.NoSuchMethodException: com.carlson.sample.HelloWorldSessionBean_n4vx3i_HomeImpl_812_WLStub.create()
I have a home interface for the EJB which has a 'create' method and my session bean has a ejbCreate method. I am using weblogic.appc to create the stubs and skeletons for the EJB.
Has anyone tried this ?? The tutorial in the download 702.bindings/EJBBinding does something similar to this. But, I am having problems with that too.
Any comments, advice, sample code will be helpful.
Thanks a bunch
- Mahesh :)I have deployed my Bean Managed Persistance Entity Bean in Weblogic 8.1 App Server. Trying to access the ejb from Synchronous BPEL process. I tried in two ways
1. By accessing the ejb directly from BPEL process, writing the following code in BPEL process
<bpelx:exec xmlns:bpelx="http://schemas.oracle.com/bpel/extension" language="java" version="1.4" name="InventoryEJB">
<![CDATA[
// Java code snippet
try{
Hashtable properties = new Hashtable();
properties.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
properties.put(InitialContext.PROVIDER_URL, "t3://PCIIB07447:7001");
InitialContext context = new InitialContext(properties);
InventoryHome home = (InventoryHome) context.lookup("Inventory");
InventoryRemote remote = home.create();
int status = remote.getInventory("Chevrolet","2-Door Coupes","Chevy Cobalt",5);
addAuditTrailEntry("Status is: " + status);
setVariableData("output", "payload",
"/status", new Integer(status));
catch(Exception e){}
]]>
</bpelx:exec>
Also copied the interface files in system\classes directory. I got the expected output but i am not able to view the "Visual Flow". Getting the following error in my BPEL server console
<Sep 9, 2004 12:46:51 PM IST> <Warning> <RMI> <BEA-080003> <RuntimeException thr
own by rmi server: weblogic.management.internal.RemoteMBeanServerImpl.invoke(Lja
vax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.Strin
g;)
weblogic.management.NoAccessRuntimeException: Access not allowed for subject: p
rincipals=[], on ResourceType: ServerConfig Action: execute, Target: lookupServe
rRuntime.
weblogic.management.NoAccessRuntimeException: Access not allowed for subject: pr
incipals=[], on ResourceType: ServerConfig Action: execute, Target: lookupServer
Runtime
at weblogic.management.internal.SecurityHelper$IsAccessAllowedPrivilegeA
ction.wlsRun(SecurityHelper.java:564)
at weblogic.management.internal.SecurityHelper$IsAccessAllowedPrivilegeA
ction.run(SecurityHelper.java:456)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.management.internal.SecurityHelper.isAccessAllowed(SecurityH
elper.java:350)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(Rem
oteMBeanServerImpl.java:946)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:908)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unkn
own Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
2. The other way i used WSIF frame work, but i could not resolved.
Thanks for your help in advance. -
Error while invoking stored procedure from BPEL process
Hi Folks,
I am facing the below mentioned issue while invoking a stored procedure in BPEL process :
I am trying to invoke a stored procedure from a BPEL process. The process runs fine for the first/second time, but gives the below error after that whenever i try to run the process :
file:/oracle/orasoa/bpel/domains/default/tmp/.bpel_ProvisionOrderASAPReqABCSImpl_1.0_50dd1595129e9bbb00560e31e7c18cef.tmp/DB_CALL_GetPendingSubscriptionProc.wsdl [ DB_CALL_GetPendingSubscriptionProc_ptt::DB_CALL_GetPendingSubscriptionProc(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DB_CALL_GetPendingSubscriptionProc' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
; nested exception is:
ORABPEL-11811
Error while trying to prepare and execute an API.
An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
I am not getting how the BPEL is referring to the DB wsdl from the tmp folder. To resolve this issue, we have to stop the SOA server, delete the tmp files, and restart the server.
Any pointers in this regard will be really helpful.First of all does this scenario occur again.
"Works first/second time. Later gives this error."
After you restart the SOA server are you able to reproduce this scenario?
As already pointed out and from the error message, database connection is reset.
If you find this error again, try this out.
em -> home / oc4j_soa -> Administration -> JDBC Resources
Use the "Test Connection" option for the Connection Pool that you are using for your database JNDI.
It comes back and say "Connection to "XYZCP" established successfully." it is good to use.
Run the BPEL process again and once you find the error, come back and test the connection.
If it comes back with Error, diagnose based on the error message received.
Cheers
Kalidass Mookkaiah
http://oraclebpelindepth.blogspot.com/ -
Problem in invoking TaskMAnager from another BPEL process
Hi,
I have created a BPEL process having its own xsd schema file and i have also imported Task.xsd.In this process i want to invoke TaskManager Service in java Embed activity(bpel:exec language="java") in following manner:
/////////////////////////////////////////////////CODE////////////////////////////////////////////////
Task task = TaskFactory.createFacade(new QName("http://services.oracle.com/bpel/task", "task"));
task.setTitle("Task Title");
task.setCreator("ProcessManager...");
task.setAssignee("assignee");
task.setPriority(3);
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload",task.getRootElement());
Locator locator = new Locator("default","bpel");
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
deliveryService.post("TaskManager", "initiateTask", nm );
////////////////////////////////////CODE////////////////////////////////////////////////////////
It creates the instance of taskmanager but following error occur in its initiate task.
//////////////////////////////////ERROR/////////////////////////////////////////////////////////////
<IntiateFault xmlns="http://services.oracle.com/bpel/task">
<part name="summary">
<summary>Cannot update task. The process domain was unable to insert the data for task "LocalGUID:c568752ccc493590:148662:1089e600035:-7fd4" in the datasource. The exception reported is: [POL-5134] invalid host variable type Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid. sql statement: INSERT INTO task( domain_ref, conversation_id, title, creation_date, creator, modify_date, modifier, assignee, status, expired, exp_date, priority, template, custom_key, conclusion ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )</summary>
</part>
</IntiateFault>
//////////////////////////////////ERROR/////////////////////////////////////////////////////////////
Thanks
NancyBy default the BPEL 10.1.2, it will do a local call to the process. It will not execute a SOAP request, no network access is done.
It can be configured at domain level:
Parameter: optSoapShortcut (SOAP local optimization)
Turns on "short-cut" for local SOAP request; local SOAP calls are normally done via an internal call instead of sending a message through the SOAP stack.
The default behavior for the engine is to optimize all. To disable optimization specify a value other than "true" or "yes". -
Invoking Xai Service from BPEL process (Error 411--Length Required)
Hi Friends,
I am trying to invoke xai inbound service webserive i.e WSDL from BPEL process, when i am testing the request i am getting the following error
oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): http://190.12.19.100:6500/spl/XAIApp/xaiserver/CMMBC
when i open the above end point url in the browser:
Error 411--Length Required
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.12 411 Length Required
The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.
pls help me out
thanks and regards
sivaram
Edited by: sivaram on Apr 21, 2011 6:56 AMYes we have got the same error while invoking from SOAP UI.
But wsdl alone is opening through browser.
But when we try opening the endpoint url we are getting the above error.
Please help! -
Connection Refused while invoking Web Service from BPEL process
Hie
I am getting the following error when I try to invoke a web service (created in JDeveloper) from a BPEL process.
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="code">
<code>Server.userException</code>
</part>
<part name="summary">
<summary>when invoking endpointAddress '.......................', java.net.ConnectException: Connection refused: connect</summary>
</part>
<part name="detail">
<detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.ConnectException: Connection refused: connect faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused:
Did anyone come across a similar problem...??? Plz help:(Hi everybody,
I have the same problem. I developed a sample bpel process and tried to access it form another one, but still having the same exception :
<remoteFault>
<part name="code" >
<code>Server.userException</code>
</part>
<part name="summary" >
<summary>when invoking endpointAddress 'http://set.by.caller', java.net.UnknownHostException: set.by.caller</summary>
</part>
<part name="detail" >.......
Thanks for your help!
miroo -
Which version of BPEL Process Manager should I use for Windows 7
As the one which I downloaded doesn't work.
[http://www.oracle.com/technology/software/products/ias/bpel/index.html |Windows |Download soa_windows_x86_bpel_101310.zip (356,697,295 bytes) ]
I have installed SOA Suite,
SOA Suite (11.1.1.2.0)
More Info
Generic : 1.7 GB
DownloadDisk1
Works on all platforms
AIX5L: 1.7 MB
DownloadDisk1
Included:
* BPEL Process Manager
* Human Workflow
* Business Rules
* Business Activity Monitoring
* Mediator
* B2B
* Web Services Manager
* User Messaging Service
* Enterprise Manager Fusion Middleware Control
Required Additional Software:
* WebLogic Server
* Repository Creation Utility
* Oracle Database
* JDeveloper
* Patch Scripts
Optional Software:
* B2B Document Editor
* Identity Management
* Access Manager
* Service Registry
* SSO Metadata Repository Creation Assistant
* Web Tier Utilities
SOA Suite (11.1.1.3.0)
Business Process Management (11.1.1.3.0)
More Info
Generic : 1.9 GB
DownloadDisk1
Works on all platforms
Error of log is as follows,
Checking installer requirements...
Checking operating system version: must be 5.0, 5.1 or 5.2. Actual 6.1
Failed <<<<
I fear that I may need to remove Windows 7!!:(
Any pointers?
Thank you for your help.
Edited by: user9284468 on 28-May-2010 06:45Thanks man, I was wondering that I can't install and run BPEL Process manager on windows 7 but now i have started hoping!:)
I am getting this error right at first stage, that when you click on setup.exe I get the message which I pasted in my original message.
I am using bpel process manager for windows 10.1.3.1.0 and SOA Suite 11g(baseline 11.1.2.0) + patch set 11.1.3.0
Please let me know how i can proceed with installation.
Thank you. -
ESB Call to BPEL contains the Version of BPEL Process
Hi,
I'm creating a ESB Routing Service to call a BPEL Process.
Although I do not pout the version of the BPEL process on the WSDL that i give to the ESB Routing Service it always call the version to what it was developed, even thought i created a new version of the BPEL process and mark it as default.
What can i do to make that ESB Routing service call the default version of the BPEL process?
Thanks,
AlexIf i select the wsdl of the bpel, it would normally use an url like :
<host>/orabpel/default/BPELProcess2/2.0/BPELProcess2?wsdl
if i mark 2.0 as default and use an url like :
<host>/orabpel/default/BPELProcess2/BPELProcess2?wsdl
(so skip the version notification), it just uses the default-marked wsdl (version 2.0) in this case. -
Issue Invoking 10.1.2 BPEL Process from 10.1.3 Embedded server.
Hi All,
I am trying to connect to BPEL 10.1.2 from 10.1.3 embedded server. When I run following
code in debug it just stays at
Locator locator = new Locator("default","bpel",jndi); line. It does not give any error message.
Please help. Let me know if I am doing anything wrong here.
Thank you.
Jigar
package com.sjrwmd.bpel;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.delivery.IDeliveryService;
import java.rmi.RemoteException;
import java.util.Hashtable;
import java.util.Map;
import javax.naming.Context;
public class TestBPEL {
public TestBPEL() {
public static void main(String[] args) {
try{
Hashtable jndi = null;
String ssn = "123456789";
jndi = new Hashtable();
jndi.put(Context.PROVIDER_URL, "ormi://dell17316/orabpel");
jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put(Context.SECURITY_PRINCIPAL, "admin");
jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
//jndi.put("dedicated.connection", "true");
String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
Locator locator = new Locator("default","bpel",jndi);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to collaxa server
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml );
NormalizedMessage res =
deliveryService.request ("CreditRatingService", "process", nm);
Map payload = res.getPayload();
System.out.println( "BPELProcess CreditRatingService executed!" );
System.out.println( "Credit Rating is " + payload.get("payload") );
} catch( com.oracle.bpel.client.ServerException se ){
se.printStackTrace();
} catch (RemoteException e) {
// TODO
}Hi Clemens,
Do don't have to say sorry. It happens sometime. I have remove patch from 10.1.3 and apply back to 10.1.2.
This is my obsetenv.bat file
@REM --------------------------------------------------
@REM ADJUST THESE VARIABLE TO MATCH YOUR ENVIRONMENT
@REM --------------------------------------------------
@REM Where has Orabpel been installed on this machine?
set OB_HOME=C:\OraBPELPM\integration\orabpel
@REM Which is app server going to use on this machine?
set OB_PLATFORM=oc4j_10g
@REM Is there a classpath that you would like Orabpel to add to it's
@REM classpath? We recommend that you append any additional directories
@REM to the environment classpath. For example,
@REM
@REM set MY_CLASSES_DIR=%CLASSPATH%
set MY_CLASSES_DIR=%OB_HOME%\system\classes
set MY_CLASSPATH=%MY_CLASSES_DIR%
set PROXY_SET="[HTTP_PROXY_SET]"
@REM Where has the JDK (supporting 1.4.1 or higher) been installed on
@REM this machine?
set JAVA_HOME=C:\OraBPELPM\jdk
if %PROXY_SET% == "true" goto set_proxy
set OB_JAVA_PROPERTIES=
goto end_set_proxy
:set_proxy
set OB_JAVA_PROPERTIES="-Dhttp.proxySet=true" "-Dhttp.proxyHost=[HTTP_PROXY_HOST]" "-Dhttp.proxyPort=[HTTP_PROXY_PORT]" "-Dhttp.nonProxyHosts=[HTTP_NON_PROXY_HOSTS]"
:end_set_proxy
@REM Where the j2ee applications can be deployed, this environment variable
@REM is application server dependent. The process developers will use this
@REM this env. variable to deploy their J2EE applications
@REM (e.g. .war or .ear files)
set J2EE_APPLICATIONS=C:\OraBPELPM\integration\orabpel\system\appserver\oc4j\j2ee\home\applications
@REM --------------------------------------------------
@REM PLEASE DO NOT UPDATE THE REST OF THIS FILE
@REM --------------------------------------------------
@REM Classpath
set OB_LIB=%OB_HOME%\lib
@REM List of Orabpel and Orabpel related libraries.
set BASE_OB_CLASSPATH=%MY_CLASSPATH%;%JAVA_HOME%\lib\tools.jar;%OB_LIB%\orabpel-common.jar;%OB_LIB%\orabpel-thirdparty.jar;%OB_LIB%\orabpel.jar;%OB_LIB%\orabpel-ant.jar;%OB_LIB%\ant-launcher_1.6.2.jar;%OB_LIB%\ant_1.6.2.jar;%OB_LIB%\oracle_http_client.jar;%OB_LIB%\xmlparserv2.jar;%OB_LIB%\olite40.jar;%OB_LIB%\aqapi.jar;%OB_LIB%\orawsdl.jar;%OB_LIB%\bpm-infra.jar;%OB_HOME%\system\services\lib\bpm-services.jar;%OB_LIB%\bipres.jar;%OB_LIB%\bicmn.jar;%OB_LIB%\uix2.jar;%OB_LIB%\share.jar;%OB_LIB%\regexp.jar
@REM Core java runtime libraries
set JAVA_CLASSPATH=%JAVA_HOME%\jre\lib\rt.jar
@REM The Xerces and Xalan libraries need to loaded via the bootclasspath option
@REM since JDK 1.4 packages an older version of Xalan.
@REM
set BOOT_LIBS=%OB_LIB%\orabpel-boot.jar;%OB_LIB%\connector15.jar
@REM Combined classpath
set OBDK_CLASSPATH=%JAVA_CLASSPATH%;%BASE_OB_CLASSPATH%;%OB_LIB%\j2ee_1.3.01.jar;
set OB_CLASSPATH=%BASE_OB_CLASSPATH%
goto finish
:finish
@REM --------------------------------------------------
@REM END OF FILE
@REM --------------------------------------------------
This is my startorabpel.bat
@echo off
set ECHO=off
call "C:\OraBPELPM\integration\orabpel\bin\obsetenv.bat"
@rem Launch Oracle Lite
@rem
@rem start /d "C:\OraBPELPM\integration\orabpel\bin" /min /realtime start_olite.bat
@rem java -Dorabpel.home=C:\OraBPELPM\integration\orabpel -Doracle.mdb.fastUndeploy=60 -Ddatasource.verbose=true -Djdbc.debug=true -Djms.debug=true -Dtransaction.debug=true -jar oc4j.jar
set OPTS=-Doracle.mdb.fastUndeploy=60 -Doc4j.userThreads=true %OB_JAVA_PROPERTIES%
set MEM_ARGS=-Xms512m -Xmx512m -Xmn300m -XX:MaxPermSize=80m
set JAVA_VM=-server
cd "C:\OraBPELPM\integration\orabpel\system\appserver\oc4j\j2ee\home"
"C:\OraBPELPM\jdk\bin\java" -Xbootclasspath/p:"%BOOT_LIBS%" %JAVA_VM% %MEM_ARGS% -Dorabpel.home=C:\OraBPELPM\integration\orabpel %OPTS% -jar oc4j.jar -verbosity 10
Let me know if you need anything more from me.
Thanks for your help resolving this.
Jigar -
Why Java RMI client failed to invoking a mid-tier BPEL process?
I have followed the sample code (102.InvokingProcess/rmi). I have problem invoking the same process from the mid-tier server. Here is what I got:
[java] {java.naming.provider.url=ormi://btl-larcis5:12401/orabpel, java.nam
ing.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, orabpel.pl
atform=oc4j_10g, java.naming.security.principal=admin, java.naming.security.cred
entials=welcome}
[java] java.lang.Exception: Failed to create "ejb/collaxa/system/DomainMana
gerBean" bean; exception reported is: "javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: orabpel; nested exception is:
[java] javax.naming.AuthenticationException: No such domain/application: orabpel [Root exception is javax.naming.AuthenticationException: No such domain/application: orabpel]
Here is my context.properties :
orabpel.platform=oc4j_10g
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=ormi://my-mid-tier:12401/orabpel
java.naming.security.principal=admin
java.naming.security.credentials=welcome
I know the problem is in the provider url. If I change the java.naming.provider.url =ormi://my-pc /orabpel then it works fine. Has anyone gotten the sample code working from a mid-tier installation? My mid-tier is on version 10.1.2.02. Port 12401 is the default port number for RMI.I figured it out! The reason it did not work was the port number in the provider URL was wrong. It should be 12402. It toke me a little while to figure it. Should this be documented somewhere?
-
Issue in Invoking Enterprise WSDL from BPEL Process
Hi,
I am trying to an enterprise WSDL from BPEL. And its giving same error every time.
"Unable to access the following endpoint(s): https://test.salesforce.com/services..........."
While I am able to call the methods inside WSDL from soapUI. I know this is not the normal WSDL we use....this WSDL doesn't support get.
Any help will be highly appreciated....
Regards,
EnI have been able to get this working using 11.1.1.3. Basically you need to create a keystore using the keytool utility that comes with the JDK. You can get the x.509 certificate from https://login.salesforce.com via your browser. Just go the site and view the site certificate which with Firefox you do by double clicking the padlock in the lower right hand corner of the browser. Save the cert and create teh keystore like follows
keytool -importcert -alias login.salesforce.com -file login.salesforce.com.pem -keystore mySSLidentities
Once you have this done you set the -Djavax.net.ssl.trustStore=your_truststore_location in JAVA_OPTIONS within your setDomainEnv.sh or setDomainEnv.bat file. Once this is done you and restart the SOA server you should be ok.
See section 6.2 in the Oracle® Fusion Middleware Administrator's Guide for Oracle SOA Suite and Oracle Business Process Management Suite
11g Release 1 (11.1.1)
Part Number E10226-04
You will need to also add the certificate for the URL you get back via the sfdc login call. Use the same procedure as above. What I have to figure out now is how to set the endpoint dynamically for salesforce.com web service calls after the login call. -
ORABPEL-00000 invoking a short running bpel process
Hi,
I am calling A Short running process "B" from other short running process "A", then i got the following trace.
when i open the "B" instance, all is ok, but when i open the "A" instance and go to the invoke of "B" i got:
<fault>ORABPEL-00000
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "java.lang.NullPointerException
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.populateOutMsgParts(WSIFOperation_JaxRpc.java:1374)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.buildResponseMessages(WSIFOperation_JaxRpc.java:1287)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1890)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1531)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1210)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:478)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
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:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
at java.security.AccessController.doPrivileged(AccessController.java:279)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:727)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:810)
Exception: java.lang.NullPointerException
Handled As: com.collaxa.cube.CubeException
</fault>
Anybody can help me? thanks
Edited by: user1578049 on 14/07/2009 09:39 AMI have seen this in 10.1.3.1.0, which was fixed in 10.1.3.3 pactset and above.
Please apply 10.1.3.3 patchset and try again.
Maybe you are looking for
-
Follow-up Dynamic expression in interface
I created this thread so I can give credits to anyone helps me on this. I tried to follow the following thread and got some errors. Dynamic expression in interface When I execute the interface alone with out Java procedure(<@=result@>) its working. I
-
I JUST HAD TO CREATE A NEW I COULD ACCOUNT BECAUSE I CANT GET INTO MY OLD ONE I KNOW MY ID AND HAVE TRIED TO RESET IT BUT WHEN I DO IT SAYS EMAIL SENT BUT I NEVER RECIEVE ANY EMAIL
-
Error Determining Smartform - Smartform working in Development but not in Q
Hello all, I'm currenlty working on a smartform in a development box and it is working as expected after doing the testing in that box but after transporting the change to Q, the new changes are not displayed in the smartform. I already revised the c
-
Transfer of credit from my former account to my ne...
Why is it not possible to transfer 25 euros credit from my former account, which I can no longer access(after I tried to unsuccessfully change my PW)..although it still exists..to my new account? [offensive text removed]
-
Hello all, I am writing an applet that will paint on a canvas, and need to get the width and height of the canvas. When I use the getWidth() and getHeight() methods of canvas, I get a methodNotFoundException. I presume this is because the 1.1 spec do