How to create process instance throught PAPI?

10-11  Source: Network gathering  Views:2 

Advertisement
Hi,
Can someone share how do we use PAPI to create a process instance for the Expense Management process (process in the BPM tutorial)?
I believe it is through calling the processCreateInstance() method from a ProcessServiceSession object, however, what exactly do we pass in as a parameter? I tried simply by passing in the process name and an empty Arguments object and the following exception was logged:
Feb 18, 2009 9:08:43 PM com.sun.corba.se.impl.orbutil.CacheTable put_table
WARNING: "IOP00710275: (INTERNAL) Old entry in serialization indirection table has a different value than the value being added with the same key"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 275 completed: No
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5589)
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5611)
     at com.sun.corba.se.impl.orbutil.CacheTable.put_table(CacheTable.java:97)
     at com.sun.corba.se.impl.orbutil.CacheTable.put(CacheTable.java:86)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1068)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:873)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:863)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:269)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:363)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:526)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2442)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2384)
     at java.util.TreeMap.readObject(TreeMap.java:2330)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.corba.se.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1694)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1212)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:756)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:325)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at fuego.papi.impl.j2ee._EJBSecureEngineInterface_Stub.getProcesses(Unknown Source)
     at fuego.papi.impl.j2ee.EJBSecureEngineInterfaceWrapper.getProcesses(EJBSecureEngineInterfaceWrapper.java:297)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at fuego.papi.impl.AbstractSecureEngineHandler.invokeInternal(AbstractSecureEngineHandler.java:49)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.doInvoke(EJBSecureEngineHandler.java:105)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.invoke(EJBSecureEngineHandler.java:56)
     at $Proxy14.getProcesses(Unknown Source)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:49)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:36)
     at fuego.papi.impl.SessionProcessLoader.load(SessionProcessLoader.java:254)
     at fuego.papi.impl.ProcessManager.get(ProcessManager.java:894)
     at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1364)
     at fuego.papi.impl.SessionProcessManager.getProcess(SessionProcessManager.java:143)
     at fuego.papi.impl.ProcessServiceSessionImpl.processGet(ProcessServiceSessionImpl.java:2601)
     at fuego.papi.impl.ProcessServiceSessionImpl.checkBeginPermissions(ProcessServiceSessionImpl.java:4222)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3113)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3099)
     at com.test.papi.TestPAPI.main(TestPAPI.java:39)
Could not perform the requested operation
fuego.papi.ProcessNotAvailableException: Process '/ExpenseReport#Default-1.0' not available.
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:71)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:36)
     at fuego.papi.impl.SessionProcessLoader.load(SessionProcessLoader.java:254)
     at fuego.papi.impl.ProcessManager.get(ProcessManager.java:894)
     at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1364)
     at fuego.papi.impl.SessionProcessManager.getProcess(SessionProcessManager.java:143)
     at fuego.papi.impl.ProcessServiceSessionImpl.processGet(ProcessServiceSessionImpl.java:2601)
     at fuego.papi.impl.ProcessServiceSessionImpl.checkBeginPermissions(ProcessServiceSessionImpl.java:4222)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3113)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3099)
     at com.test.papi.TestPAPI.main(TestPAPI.java:39)
Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.doInvoke(EJBSecureEngineHandler.java:146)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.invoke(EJBSecureEngineHandler.java:56)
     at $Proxy14.getProcesses(Unknown Source)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:49)
     ... 10 more
Caused by: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 275 completed: No
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5589)
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5611)
     at com.sun.corba.se.impl.orbutil.CacheTable.put_table(CacheTable.java:97)
     at com.sun.corba.se.impl.orbutil.CacheTable.put(CacheTable.java:86)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1068)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:873)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:863)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:269)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:363)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:526)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2442)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2384)
     at java.util.TreeMap.readObject(TreeMap.java:2330)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.corba.se.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1694)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1212)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:756)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:325)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at fuego.papi.impl.j2ee._EJBSecureEngineInterface_Stub.getProcesses(Unknown Source)
     at fuego.papi.impl.j2ee.EJBSecureEngineInterfaceWrapper.getProcesses(EJBSecureEngineInterfaceWrapper.java:297)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at fuego.papi.impl.AbstractSecureEngineHandler.invokeInternal(AbstractSecureEngineHandler.java:49)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.doInvoke(EJBSecureEngineHandler.java:105)
     ... 13 more
I'm wondering why does it complain that "fuego.papi.ProcessNotAvailableException: Process '/ExpenseReport#Default-1.0' not available.", when the ExpenseReport process is indeed a process that was published?
P.S.: I know this thread is sort of a duplicate of another thread, however I hope we can get some real examples of how to create a process instance for the Expense Management project, using PAPI (instead of PAPI webservice).
Edited by: sylarchong on Feb 18, 2009 5:20 AM
Edited by: sylarchong on Feb 18, 2009 5:21 AM
Hi Mark,
Thanks for your prompt reply.. I tried with the above option but still am facing the same problem.
Let me give you the brief idea of what am working on;
1) I created a process using Oracle BPM Studio V: 10.3.1.0 & Build: #94375
2) I publish & deploy the process using Oracle BPM Admin Center which running on top of tomcat. But in the configuration I configure the directory as well as weblogic server.
3) I created a "Java Project" & included following jar file "b1base.jar","b1oracle.jar","b1util.jar","bcel.jar","ejb-api.jar","fuegopapi-client.jar","jms-api.jar","ojdbc14.jar","weblogic.jar","wljmsclient.jar".
4) I am using below program to create a PAPI Process Instance;
package ibm.com.papi;
import java.util.Properties;
import fuego.papi.CommunicationException;
import fuego.papi.InstanceInfo;
import fuego.papi.OperationException;
import fuego.papi.ProcessService;
import fuego.papi.ProcessServiceSession;
public class PAPIWithDirectoryFileExample {
     public static void main(String[] args) {
          // ///////////////// API Initialization ///////////////////
          Properties configuration = new Properties();
          configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
          configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "C://tmp//directory.xml");
          configuration.setProperty(ProcessService.INSTANCES_CACHE_SIZE, "50000");
          configuration.setProperty(ProcessService.WORKING_FOLDER, "c://tmp");
          configuration.setProperty(ProcessService.UPDATE_SESSIONS_VIEWS, "true");
          System.setProperty("fuego.j2ee.initialctx.file","C:\\tmp\\engine.properties");
          System.setProperty("fuego.j2ee.initialctx.resource","engine.properties");
          System.setProperty("fuego.j2ee.initialctx.url","file://tmp/engine.properties");
          //engine.properties include below settings
          //System.setProperty("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
          //System.setProperty("java.naming.provider.url", "t3://localhost:7001");
          try {
               ProcessService processService = ProcessService.create(configuration);
               ///////////////// Establish a session ///////////////////
               ProcessServiceSession session = processService.createSession(
                         "username", "pwd", "host");
               for (String processId : session.processesGetIds()) {
                    System.out.println("\n Process: " + processId);
                    for (InstanceInfo instance : session
                              .processGetInstances(processId)) {
                         System.out.println(" -> " + instance.getId());
               fuego.papi.Arguments papiArgs= fuego.papi.Arguments.create();
               papiArgs.putArgument("inputNameArg", "inputString");
               InstanceInfo instInfo = null;
               instInfo = session.processCreateInstance("/Process#Default-1.0",papiArgs);
               String strInstanceID = instInfo.getId();
               System.out.println ("strInstanceID => [" + strInstanceID + "]" );
               // ///////////////// Close the session ///////////////////
               session.close();
               // ///////////////// Release API Resources ///////////////////
               processService.close();
          } catch (CommunicationException e) {
               System.out.println("Could not connect to Directory Service");
               e.printStackTrace();
          } catch (OperationException e) {
               System.out.println("Could not perform the requested operation");
               e.printStackTrace();
5) Error Log;
Feb 19, 2010 12:23:16 PM com.sun.corba.se.impl.orbutil.CacheTable put_table
WARNING: "IOP00710275: (INTERNAL) Old entry in serialization indirection table has a different value than the value being added with the same key"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 275 completed: No
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5589)
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.duplicateIndirectionOffset(ORBUtilSystemException.java:5611)
     at com.sun.corba.se.impl.orbutil.CacheTable.put_table(CacheTable.java:97)
     at com.sun.corba.se.impl.orbutil.CacheTable.put(CacheTable.java:86)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1068)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:873)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:863)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:269)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:363)
     at com.sun.corba.se.impl.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:526)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2442)
     at java.util.TreeMap.buildFromSorted(TreeMap.java:2384)
     at java.util.TreeMap.readObject(TreeMap.java:2330)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.corba.se.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1694)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1212)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:756)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:325)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
     at fuego.papi.impl.j2ee._EJBSecureEngineInterface_Stub.getProcesses(Unknown Source)
     at fuego.papi.impl.j2ee.EJBSecureEngineInterfaceWrapper.getProcesses(EJBSecureEngineInterfaceWrapper.java:297)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at fuego.papi.impl.AbstractSecureEngineHandler.invokeInternal(AbstractSecureEngineHandler.java:49)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.doInvoke(EJBSecureEngineHandler.java:105)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.invoke(EJBSecureEngineHandler.java:56)
     at $Proxy14.getProcesses(Unknown Source)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:49)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:36)
     at fuego.papi.impl.SessionProcessLoader.load(SessionProcessLoader.java:254)
     at fuego.papi.impl.ProcessManager.get(ProcessManager.java:894)
     at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1364)
     at fuego.papi.impl.SessionProcessManager.getProcess(SessionProcessManager.java:143)
     at fuego.papi.impl.ProcessServiceSessionImpl.processGet(ProcessServiceSessionImpl.java:2660)
     at fuego.papi.impl.ProcessServiceSessionImpl.checkBeginPermissions(ProcessServiceSessionImpl.java:4281)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3172)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3158)
     at ibm.com.papi.PAPIWithDirectoryFileExample.main(PAPIWithDirectoryFileExample.java:71)
Could not perform the requested operation
fuego.papi.ProcessNotAvailableException: Process '/Process#Default-1.0' not available.
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:71)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:36)
     at fuego.papi.impl.SessionProcessLoader.load(SessionProcessLoader.java:254)
     at fuego.papi.impl.ProcessManager.get(ProcessManager.java:894)
     at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1364)
     at fuego.papi.impl.SessionProcessManager.getProcess(SessionProcessManager.java:143)
     at fuego.papi.impl.ProcessServiceSessionImpl.processGet(ProcessServiceSessionImpl.java:2660)
     at fuego.papi.impl.ProcessServiceSessionImpl.checkBeginPermissions(ProcessServiceSessionImpl.java:4281)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3172)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3158)
     at ibm.com.papi.PAPIWithDirectoryFileExample.main(PAPIWithDirectoryFileExample.java:71)
Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.doInvoke(EJBSecureEngineHandler.java:146)
     at fuego.papi.impl.j2ee.EJBSecureEngineHandler.invoke(EJBSecureEngineHandler.java:56)
     at $Proxy14.getProcesses(Unknown Source)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:49)
     ... 10 more
Caused by: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 275 completed: No
Please help me to resolve the above issue.
Thanks & Regards,
Ankur Oswal
Related articles
  • How to create process instance throught PAPI? 10-11

    Hi, Can someone share how do we use PAPI to create a process instance for the Expense Management process (process in the BPM tutorial)? I believe it is through calling the processCreateInstance() method from a ProcessServiceSession object, however, w

  • How to change the attribute of process instance by PAPI web service 10-11

    Is it possible to change the value of the attribute of one process instance by PAPI web servcie? thanks!That information is stored in the table PPROCINSTANCE in the engine database in the column instancedata, it is a blob. HTHRead other 2 answers

  • BPM 11.1.1.6 error creating process instance 10-11

    Hello! I am deploying BPM processes using JDeveloper 11.1.1.5 and SOA Server 11.1.1.6 and I am getting the following error: [2012-12-04T19:11:47.209+01:00] [WLS_SOA1] [NOTIFICATION] [] [oracle.integration.platform.blocks.tenant] [tid: [ACTIVE].Execut

  • How to create multiple instance on same database 10-11

    Hi , I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it. Any how if some one can help me with this and can give me

  • How to create process variant in process chain 10-11

    What is a process variant? i try to add Infocube compression to the fi process chain. To accomplish this task, i have to create process variant. please tell me the step by step process how to create process variant and successfully add the compressio

  • How to create Process chain in BI 7.0 10-11

    hi,     I dont know how to create process chain in BI 7. If any one have document step by step process to create process chain. help me. thank u.check these links.. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00a1f389-ec7c-2c10-04bc-9d81b3

  • How to create an instance of a protected class outside the enclosing packag 10-11

    Hi all, I have a piece of code like this: package test; public class A { protected class B { } How to create an instance of B outside the package test ? Could you please give me an example ? Thanks Ha ChauThank WirajR for your reply, but in your solu

  • How to create an instance for RemoteSession without using create() method 11-30

    How to create an instance for RemoteSession without using create() method?What's RemoteSession? Not in the JDK. And does the question have anything to do with concurrency?Read other 2 answers

  • How to create an instance of the database 11-30

    No that won't work. I have to set it up independant from each other because I can't get to Uni until Monday and I want to have this done over the weekend really. The main issue seems to be now how to create an instance of the databaseTo create a data

  • How to create Process chain for Aggregate for Master data 11-30

    Hello friends, I created Aggregates on Navigational Attributes. Now they are working fine, but i need to know that how shall i create the Roll up for Aggregates on Navigational Attributes. The point is the master data changes frequently a lot of time

  • How to create process chain ? 11-30

    hi all, will you please simlify how to create process chain if anybody has a screen shot or slide show about pc creation it will definatly help me a lot. rewrd point for sure,This may help: [http://help.sap.com/saphelp_nw04s/helpdata/en/67/13843b74f7

  • How to create Process chains alert 11-30

    hi Can any body guide me how to create process chan alertsright click on required process... click on create message.... provide message....click on maintain list.. provide recepienhts list. you can provide this for success or failed respectively. Na

  • How to create process chains,and how to use process like and or xor 11-30

    Hi, How to create process chains,and how to use process like and or xor. can any one please give me a example in each. Thanks, cheta.Hi Cheta, Here is step by step procedure to create process chains Process chain is nothing but executing a process ..

  • OBPM Studio 10g R3: Create new process instance via PAPI 10-11

    Hi folks, I used JDeveloper to generate Java stubs off the PAPI WSDL. This works great and I'm able to list Processes similar to the bundled JAX-WS example just fine. Now I'd like to take it to the next level and create a process instance. I really a

  • Create Process Instance via DB insert? 11-30

    I would like to have a DB insert kick off a process instance. I am an ALBPM novice, but I'm guessing the solution would involve a DB insert trigger (Oracle) and a PAPI ProcessServiceSession.createProcessInstance() call. Does anyone know how to put it

  • How to get process instance activity information 10-11

    We have the following need: The process instance will be created either manually or by integration from another system. It is not possible to have two instances running for the same process, so we want to check if there is already one instance runnin

  • How to create an instance 11-30

    Hi all, Actually, I want to create an instance without priting or sending to any destination. My code steps should be: 1. logon 2. get report object 3. set parameters information 4. create an instance / schedule report once I create all instances for

  • How to create an instance of midlet with in a midlet 10-11

    Hi all, I have 5 midlets in the same project (midlet suite). I need one of the midlets (login midlet) to start and when login is verified i want to display list of the remaining midlets which can be launched as per user's chioce. My query is, how can

  • How to create Process Integration in SLD 10-11

    Hello colleagues, I need create Process Integration in SLD my version is PI 7.4. In development system I have create this process How to create in production? Thanks.Hi Victor, you can create the SLD objects in DEV and transport the same in to Qualit

  • How to create and instance of Java Object from an XML Document. 10-11

    Hi, How can we use a XML Document to create an instance of Java Object and do vice versa ie from the Java Object creating the XML Document. XML Document is available in the form of a String Object. Are there helper class available to achieve this. I