Facing Error when BPEL Process is invoked through java code

Hi,
I wrote a BPEL process (HelloWorld) and deployed it on BPEL Process Server and running fine,even tested from console,it's working fine,but I am trying to invoke this process with java code from Jdeveloper10g.When this file is being run ,it's throwing following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
     at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:88)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:303)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:85)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:55)
     at com.wips.TestClass.main(TestClass.java:26)
Process exited with exit code 1.
I have required jar in classpath.
and my java code is as below:
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.ServerException;
import com.oracle.bpel.client.dispatch.IDeliveryService;
import java.rmi.RemoteException;
import java.util.Map;
public class TestClass {
public static void main(String[] args) throws ServerException,
RemoteException {
// String xml = "<ns1:input>, India</ns1:input>";
String xml = "<ns1:HelloWorldProcessRequest><ns1:input>India</ns1:input></ns1:HelloWorldProcessRequest>" ;
Locator locator = new Locator("default","bpel");
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml);
NormalizedMessage res = deliveryService.request("HelloWorld", "process", nm);
Map payload = res.getPayload();
System.out.println("HelloWorld Service Response is:"+payload.get("payload"));
Could you figure out ,what might I missing over here..........
Please help me out !
Regards......
Shaily

Very-very thanks raphel,but still facing problem
I did following changes in my code
String xml = "<ns1:HelloWorldProcessRequest><ns1:input>India</ns1:input></ns1:HelloWorldProcessRequest>";
Properties props=new Properties();
props.setProperty("orabpel.platform","ias_10g");
props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
props.setProperty("java.naming.provider.url","opmn:ormi://localhost:9700/home/orabpel");
props.setProperty("java.naming.security.principal","oc4jadmin");
props.setProperty("java.naming.security.credentials","welcome1");
props.setProperty("dedicated.rmicontext", "true");
Locator locator = new Locator("default","bpel",props);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml);
NormalizedMessage res = deliveryService.request("HelloWorld", "initiate", nm);
// deliveryService.post("HelloWorld", "initiate", nm);
Map payload = res.getPayload();
System.out.println("HelloWorld Service Response is:"+payload.get("payload"));
and response is herewith :
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ias/opmn/optic/OpticException
     at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:94)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:303)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:85)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:55)
     at com.wips.TestClass.main(TestClass.java:39)
Caused by: java.lang.NoClassDefFoundError: oracle/ias/opmn/optic/OpticException
     at com.evermind.util.OpmnHelper.<clinit>(OpmnHelper.java:24)
     at com.evermind.server.rmi.RmiServerLookupStrategy$StandardOpmnServerAccess.getOc4jServers(RmiServerLookupStrategy.java:160)
     at com.evermind.server.rmi.RmiServerLookupStrategy$OpmnLookupStrategy.getAvailableServers(RmiServerLookupStrategy.java:120)
     at com.evermind.server.rmi.RMIClientContext.establishLookupConnections(RMIClientContext.java:139)
     at com.evermind.server.rmi.RMIClientContext.establishRemoteConnections(RMIClientContext.java:165)
     at com.evermind.server.rmi.RMIInitialContext.get(RMIInitialContext.java:62)
     at oracle.j2ee.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:59)
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
     at javax.naming.InitialContext.init(InitialContext.java:223)
     at javax.naming.InitialContext.<init>(InitialContext.java:197)
     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:277)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:299)
     ... 3 more
Process exited with exit code 1.
Regards,
Shaily

Similar Messages

  • FTP Adapter fails first time when bpel process is invoked from concurrent

    Hi,
    We noticed that the invoke of the FTP adapter fails the first time when the bpel process is invoked from a concurrent program. The second time the concurrent is ran, it completes fine. However, when invoked from the console, it compeltes fine the first time itlsef.
    Any idea what could be worng. We are on SOA Suite 10.1.3.4
    Thanks
    -Prapoorna

    What you are doing with FTP adapter? Are you writing a file ? Any error details in logs when it is failing on first invocation ?

  • Getting problem when connecting to SMTP server through java code

    Hi all,
    I am getting problem when i am going to connect with "Kerio SMTP server" through java code. The error what i am getting is :
    "[16/Sep/2008 15:59:09] Sent: Queue-ID: 48cf8a73-000000f9, Recipient: <[email protected]>, Result: failed, Status: 5.3.2 554 5.0.0 Too many hops (101, max 100), message looping" when sending an email from [email protected]

    Looks like something is set up wrong on your server that's causing messages
    to be forwarded around a loop too many times without ever reaching the destination.
    For instance, if server A forwards to server B, and server B forwards to server A,
    this would happen.

  • How to obtain response from asyn bpel process invoked through java

    I need to get the response from Asynchronous bpel process which im invoking through java using DeliveryPost method whose return type is void.

    I was able to write java code for the above process
    the code is here
    NormalizedMessage nm = new NormalizedMessage( );
    String uniqueBpelId = com.collaxa.cube.util.GUIDGenerator.generateGUID();
    java.util.Map msgProps = new HashMap();
    // NormalizedMessage res = deliveryService.request("OraFormsService", "initiate", nm);
    //deliveryService.post(null,null,null,null);
    msgProps.put("conversationId",uniqueBpelId);
    nm.setProperty("conversationId",uniqueBpelId);//to set the property for this message
    nm.addPart("payload",xml1);//to add to the payload of this message
    deliveryService.post("OraFormsService", "initiate", nm);
    // System.out.println("con1 "+IDeliveryConstants.STATE_HANDLED);
    StringBuffer buf = new StringBuffer();
    WhereCondition cond;
    cond = new WhereCondition(buf.append(SQLDefs.IM_state).append( " = " ).append(IDeliveryConstants.STATE_UNRESOLVED ).toString() );
    //cond = WhereConditionHelper.whereInstancesOpen();
    IInvokeMetaData imd[] = locator.listInvokeMessages(cond);
    String ids[] = new String[imd.length];
    // print out the partial process information
    // for processes in manual recovery status on invoke
    for (int i = 0; i < imd.length; i++)
    System.out.println("ConversationId=" +
    imd.getConversationId());
    System.out.println("ProcessId=" +
    imd[i].getProcessId());
    System.out.println("State=" + imd[i].getState());
    ids[i] = imd[i].getConversationId();
    Thanks for the Help

  • Error compiling BPEL process

    Hi Gurus,
    I have created a simple BPEL process that invokes a webservice through a partner link.When I tried to compile the process , it fails and the error I get is as follows
    Error: Open quote is expected for attribute "language" associated with an element type "script".
    I have checked the source code of my BPEL process (TestSOAProject.bpel) & WSDL (TestSOAProject.wsdl).But I do not see any language attribute in these files.
    Please let me know , where I am going wrong.
    Thanks in advance,
    Prasanna

    I suspect that your webservice's WSDL used in partnerlink is somehow broken. Because seeing "language" and "script" remains me to javascript stuff in HTML page like this
    <script language="JavaScript" type="text/javascript" src="utils.js"></script>
    Try to focus on that WSDL file.

  • Issue about Invoking a BPEL Process with the Generic Java API

    I Invoking a BPEL Process with the Generic Java API and apache axis or axis2
    it turn up a error as follow:
    org.apache.axis2.AxisFault: ORABPEL-08021
    Cannot find partner wsdl.
    parnterLink "BPELProcess1" is not found in process "BPELProcess1" (revision "v2008_11_17__38943").
    Please check the deployment descriptor of the process to find the correct partnerLink name.
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
         at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
         at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
         at wf.Test_axis2_callws.main(Test_axis2_callws.java:41)
    i can't solve it !
    what's problem ???
    anyone use java code to invoke bpel process successfully..can show me some example?
    thanks
    chan

    Hi,
    Check below link may help you solve your problem.
    http://www.activevos.com/cec/samples/content/sample-invoke/doc/index.html
    Regards

  • Facing error when activating ODS

    Hi All,
    i am facing error when activating ODS. THe load was succesfull. when i checked in RSMO detail screen all the data packets are green but under subsequent processing it shows following error message
    1.Activation of data records from ODS object ZOPA_8 terminated
    2.Error when assigning SID: Action VAL_SID_CONVERT table 0MATERIAL
    3.Error getting SID for ODS object ZOPA_8
    "And under others also it is showing same message.
    Can any one please suggest how to solve this issue. Its very urgent.
    Waiting for appropriate solution...
    thanks
    kamal

    Hi,
    Check the following.
    1.  0MATERIAL  might be the reference char for ZOPA_8.
    2.  If so, then need to check conversion routines are same for both.
    3.  Then check the data (In PSA) under ZOPA_8 and check if it has any special chars or failing due to conversion routine.
    4. Correct data and load it again.
    Hope it works.
    Regards,
    Aditya

  • Error when running process

    Hi I get following error when executing process in htmldb. Process type used is Anonymous PLSQL block executing following >> EXEC PRE_AUD.TRANS.DBSTAT_ALL
    error is ORA-06550: line 1, column 12: PLS-00103: Encountered the symbol "PRE_AUD" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "PRE_AUD" to continue.
    Can I not execute package/proc > EXEC PRE_AUD.TRANS.DBSTAT_ALL as anonymous block?
    thanks

    Vinat,
    "EXEC" or "EXECUTE" is a SQL*Plus command. Your PL/SQL process should simply be:
    PRE_AUD.TRANS.DBSTAT_ALL;
    Joel

  • Getting mandatory attribute validation error when the value is defaulted through customization

    Hi
    I am getting Mandatory attribute validation error when we default the value through customization.
    In the UI we have attribute called Last Name which is mandatory at EO level. Customer wanted to default Last name to some value, through page composer it is defaulted to some text and saved.
    When ever we open the page the the same value is defaulted as Last Name and appearing in the UI. But when we submit the page, EO level validation is failing. hence we are getting last name is missing.
    When i debug the code last name attribute value for EO is blank.
    In the UI the attribute last name is associated with bindings  --> #{bindings.lastname.inputvalue}
    The validation is failing if we remove the default binding associated with inputtext box.
    Can some body help what can be reason and is there any solution?
    Thanks,
    Praveen

    version 12.1.2
    I am struggling with same situation, I can't set the default value at business component because, the default value comes from a REST service at run time. In page A,  I have a field F1 that contains value from REST service. Page B has a database bound field F2, whose default value should come from F1 in Page A when a user navigates from Page A to Page B. If I set the value of F2 to be the value of F1, then it displays the value in the UI, but nothing gets submitted to EO and fails at commit.
    To make things difficult, here is my situation: Page A lives in bounded taskflow TF1, and Page B lives in bounded taskflow TF2. So I have created an input parameter P1 in TF 2, which carries over the value of F1 in Page A to Page B. When I am in Page B, I can successfully see the value of the taskflow input parameter P1. So, how do I  programmatically set the value of field F2 with the value of input parameter P1?
    I tried setting the F2.inputValue  in a method call M1 in  taskflow TF2 prior to Page B, but I get null pointer exception as it can't see field F2 yet.
    It seems like a simple thing to do, but I have spent a lot of time trying to make it work without any success.
    I would greatly appreciate any guidance.

  • Frequently faced errors when making code as unicode enabled document

    Hi ALL,
    Does any have frequently faced errors when making code as unicode enabled document
    please forward it to
    [email protected]
    thanks
    Suchitra

    WS_DOWNLOAD and WS_UPLOAD function calls will need to be replaced with GUI_UPLOAD and GUI_DOWNLOAD or the assocaited methods of the class CL_GUI_FRONTEND_SERVICES.  Also, some syntax changes to some statements, like OPEN DATASET will need the ENCODING extension.
    Regards,
    Rich HEilman

  • Invoke exe through java code(using java.lang.Runtime)

    Iam trying to invoke an exe from java code.If i give the complete path for that exe it is running fine .But if i set the environment variable and directly execute the exe through command prompt it iss running fine , but it fails to run when i do the same using java code i.e. java.lang.Runtime.exec function

    Give "//" for directory seperator.
    E.g. r.exec("c://test//test.exe",null);
    Why? That doesn't look correct.It is correct. It will work fine. Try it out.But it doesn't add or solve anything. A forward slash
    does not need to be escaped.'
    It's not even escaping. It's just doubling up. If that works, I'd bet "C://///test///////test.exe" does also.

  • Need to track windows processes through java code.

    Need to track windows processes through java code.
    Eg: I want to find out whether an exe file (wrun.exe) is running or stopped.
    Can I do it through java. If so can any one please tell me how to do it. That will be a great help.
    Thanks,
    Ramesh

    There are 2 options for things like this:
    1) Use Runtime.exec() to execute some command or application and parse the input from it.
    2) Write some native code and use JNI to call it.

  • Problem with executing shell script on linux through java code.

    i am facing problem to kill jboss process on linux that is my application requirement. for that i created one shell script that will get all the process for jboss instance and kill them when i am running that script from command prompt on linux its working perfectly.
    The command i am using ---
    /opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh.
    but when i am running through java code its not working.
    the java code i am using is:-
    pp = Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", "/opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh"});
    could anyone tell me what is the problem ?
    Edited by: akm198110 on Sep 2, 2008 9:24 AM

    I got the problem after long struggle ,after doing proper path i am able to execute the shell script..

  • How to Increase Java Heap Size through Java Code. Increase inside Code?

    Hi All,
    I am using a third party tool. When i run a particular program it says OutOfMemory error. I like to increase heap size through Java Code before calling the particular Java application or Code..
    Is there is any way to set the Heap Size through Java Code in run time ???
    Pls Kindly help.
    Thanks.

    if you start the program with a -Xmx512m flag, the virtual machine gets half a gigabyte of memory to use (or that's the max it's allowed to use). All things run in the same virtual machine will have the same limit, third party tools run in the same virtual machine can't "not care about this" unless they're throwing OOMs themselves for some stupid reason.

  • Running windows command through java code

    Hello
    i want to execute jar.exe through java code , i have written following piece of code , but it isn't working
    ProcessBuilder processBuilder = new ProcessBuilder(new String[]{"cmd.exe","/c","%java_home%\\bin\\jar.exe"});
              Process process = processBuilder.start();
              BufferedReader inputReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
              String line = inputReader.readLine();
              while(line != null){
                   System.out.println(line);
                   line = inputReader.readLine();
    does anybody knows why
    Regards
    Edited by: Mayur Mitkari on Mar 5, 2013 10:19 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM

    sorry for that , but the
    Runtime runtime = Runtime.getRuntime();
              Process proc = runtime.exec(new String[]{"cmd.exe","/c","jar"});
              proc.waitFor();
    int i = proc.exitValue();
    this code was different from first one
    and in case of Process if runtime .exec is succesful it is wainting for long time , in this case i want if the runtime.exec is succesful something should be returned
    Regards

Maybe you are looking for

  • How to Define Specific CPU Frequency in Laptop Mode Tools?

    I would like to know how to set a specific maximum and minimum frequency for Laptop Mode Tools. Here is my /etc/laptop-mode/conf.d/cpufreq.conf: # Configuration file for Laptop Mode Tools module cpufreq. # For more information, consult the laptop-mod

  • Special pricing requirement in BOM

    Dear Gurus, Our Client is assembling Machines with sub assemblies and so on.  Now when ever a customer comes he asks for a different combination, so we have designed the MMR as ERLA and has a price at header level and once assembled will be PGIed at

  • Titler in my Premiere Pro CC stoped opening - how do I fix this problem?

    Last night I opened an edit in Premiere Pro CC, I made edits to a sequence, color graded clips, put in transitions etc. Then I went to create a Title and the Titler wouldn't open. I'm stuck. How do I fix this? I tryed to Unistall and reinstall, but t

  • Cement-Org Structure

    Dear All, My client is a Cement Mfg.Compnay.There products are PPC,Limestone and Clinkers.They have 1 plant in West Bengal and there is a grinding Plant in JSR.They will sell from Kolkata(Main SO). It has been suggested by an external consultant that

  • Dell Inspiron N4030: udev detects touchpad as Generic PS/2.

    Made a fresh install of Arch Linux couple of days ago. Everything else works, but udev identifies my touch pad as a Generic PS/2 mouse instead of touch pad. Because of which its not using the installed synaptics driver. I am basically unable to disab