API Initialization

I'm trying to upgrade a Excel VBA application up to 6.5.7 (yes, I know it's old) I've imported the esb32.bas to get the correct definition. However when I try to run EsbInit, I get the error 1030019 "The Essbase API version (%s) for this application is incompatible with this version of the Essbase API (%s)"<BR><BR>I've verified my run time client is Essbase 6.5.7 so I can't think of any reason why I should be getting any version incompatibility issue.<BR><BR>I tried to tweak the ESB_API_VERSION to read &65000 which allows it to run but causes a crash when I close out of Excel.<BR><BR>Any suggestions would be greatly appreciated.<BR><BR>Thanks!<BR><BR>Jeff

<p>Just for curosity, why cant you use version 6.5 for the API?</p><p>Below is the code for the declaration that has worked for me allthe time. Maybe it will help you.</p><p>HTH</p>

Similar Messages

  • API.Initialize() never called. Perpetual "Loading..."

    Using Catptivate 5, I am outputting for SCORM 2004. When I run this without an LMS, it runs fine, but when launched from the LMS, it perpetually says "Loading...".
    I did some Javascript debugging in the files that are output with the Captivate SCORM Package. I noticed that is does find the API, but it never calls API.Initialize().
    Doing some logging within the "function Captivate_DoFSCommand(command, args)" function, I notice it gets "cpSlideChanged" as the "command" parameter in an endless loop. Never anything else.
    Any ideas at all?

    Hi Bart
    Indeed Adobe folks may pop in from time to time, but largely the forums are user-to-user. And the more users that decide to cram the channel Adobe listens to about bugs (the Wish Form/Bug Reporting Form) the more likely it is to see a patch emerge or the bug fixed in a future release.
    Reporting link is in my sig line.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • API Initialization failed for Essbase 11.1.1.3.0 – 64 bit

    Hi,
    When I try to initialize the Essbase API and message database, the EssInit() is returning the error code 1008156.But I didnt find any 1008156 error code in Essbase-Error-Message-Reference.
    Kindly help me on this.

    How about looking into the certification matrix:
    http://www.oracle.com/technetwork/es/middleware/docs/oracle-forms-111220certmatrix-2087910.xls?ssSourceSiteId=otnen

  • Unable to initialize APIs

    Hi,
    I use Hyperion essbase 11.1.1.3. I have imported ESB32.bas file and just wrote a small code to check whether the apis gets initialized. But it does not get initialized. I get "API Initialization failed and hence Exiting". Here is my code.
    Option Explicit
    Declare Function EsbInit Lib "ESBAPIN.DLL" (Init As ESB_INIT_T, hInst As Long) As Long
    Sub ESB_Init()
    Dim hInst As Long
    Dim Init As ESB_INIT_T
    Dim sts As Long
    ESB_FALSE = 0
    ESB_TRUE = 1
    ' Define init structure
    Init.Version = ESB_API_VERSION
    Init.MaxHandles = 10
    Init.LocalPath = "D:\Hyperion\products\Essbase"
    Init.MessageFile = ""
    Init.ClientError = ESB_TRUE
    Init.ErrorStack = 100
    ' Initialize the API
    sts = EsbInit(Init, hInst)
    If sts = 0 Then
    MsgBox ("API Initialization successful")
    Else
    MsgBox ("API Initialization failed and hence Exiting")
    Exit Sub
    End If
    End Sub

    on the machine you ar erunning this on have you installed the Essbase client or just smartview? you need to have the api.dlls installed for this to work. Check to see if you have a Hyperion\products\essbase\essbaseclient\api directory. If you do copy the dlls in the redist directory to the Hyperion\products\essbase\essbaseclient\bin directory and try again

  • Creating a new work item instance in a process using PAPI

    I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI.
    I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: http://www.4shared.com/file/126507332/e814a3a8/CallingPapi.html. The Oracle BPM project I used for this step-by-step document is also in this zip file. If you're curious, this also describes how to download, install and start JDeveloper 11.
    This is not formal Oracle documentation, but I know from teaching our Oracle BPM Bootcamp class that getting PAPI to work is sometimes a challenge and thought this might help. I tried to write it with the "Java Newbie" in mind so do not panic if you aren't an expert in Java (I'm sure not ?:| ).
    This is a simple example that uses most of the logic found in the PAPI documentation on http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Head_PAPI.html in the "Writing Your First Java PAPI Program" section of this document.
    The document provides a step-by-step description on how how to use PAPI to:
    <li> interface to processes running on an Oracle BPM Enterprise Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> interface to processes running on an Oracle BPM Studio Engine
    <li> list processes currently running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> list the work item instances running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> create a new work item instance in a process and pass in input argument variables to the new instance as it is created.
    Hope you find this useful,
    Dan

    Hi
    i have gone through your example. It gives good information how to connect to BPM engine through java papi client. I have followed exactly the same steps given in the PDF document. But it throws the exception on both java client side and BPM Suite.
    Steps followed :
    1. Import sampleproject.exp into Oracle BPM studio and start the BPM engine.
    2. Imported the fuegopapi-client.jar and Write the JAVA PIPA client to connect Oracle BPM Engine.
    complete example code:_
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import java.util.Properties;
    public class ProcessAPIClient {
         public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.PROJECT_PATH, "C:\\Oracle\\OracleBPMWorkspace\\SampleProject" );
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", null);
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// 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();
    It throws the following exception and output on java client._
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Creating ProcessService with id 'SampleProject'.
    Local folder /tmp\system\Schema33871921573571055\catalogs found.
    Loading catalogs from local folder: /tmp\system\Schema33871921573571055\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [SampleProject] ...CatalogManagerCache 23240993:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [SampleProject] REGISTERED!CatalogManagerCache 23240993:
    Managers:
    {SampleProject=fuego.util.LocalCatalogManager@40b187}
    Counters:
    ProcessService 'SampleProject' created successfully.
    Process: /SampleProcess#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageEOFException
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at $Proxy24.<clinit>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at fuego.papi.impl.AbstractProcessControlHandler.newProxyInstance(AbstractProcessControlHandler.java:52)
         at fuego.papi.impl.rmi.RMIProcessControlHandler.createProxy(RMIProcessControlHandler.java:47)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createProcessControl(RMIEngineAccessImpl.java:111)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1082)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2698)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1675)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2703)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2365)
         at com.eds.comet.bpm.oracle.papi.client.ProcessAPIClient.main(ProcessAPIClient.java:30)
    Caused by: java.lang.ClassNotFoundException: javax.jms.MessageEOFException
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 16 more
    It throws the following exception and output on Oracle BPM Suite._
    Client 'Id=test, Name=test, In=1, Session=564242434' was not found in lists ', PARTICIPANTS' while disconnecting it.
    Please help me to resolve this. I noticed it is able to connect BPM engine and retrieve process list. But while getting instances, it throws the exceptions on both Java Client and BPM engine side.
    Thanks and Regards
    Mahesh

  • How to kill an instance process in BPM studio 6.0

    Hi i'm Fabio.
    I'm working on BPM Studio 6.0 and i need to complete a task.
    I have an instance id process, and i need to create a new process in order to kill this istance id.
    I read how to create a PAPI client (http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Writing_Your_First_Java_PAPI_Program.html) but it doesn't work for my purpose.
    First of all, i understood that i have to follow these step:
    * Import the required libraries.
    * Create a process service.
    * Create a process service session.
    * Perform operations with PAPI.
    * Close the process service.
    Now, i'm working on my xpdl file and i'm using the Standard Module "Fuego" and my plan is to create a process servcie, a process service session and then operate with PAPI.
    But using the PAPI module include in the BPM studio 6.0 i'm no able to load the library for the session import fuego.papi.ProcessServiceSession;
    so i'm worng something. Could you tell me how can menage this problem? Really do i need a session? Is possible to abort an istance process in BPM studio or i need to load my ear project in Enterprise environment and then kill my instance process? Thanks, regards Fabio.

    Thanks Dan, i read your suggestion but my boss was to implement a different solution:
    package hp.abort.process;
    import fuego.boot.*;
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.InstanceId;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import java.util.Properties;
    import javax.transaction.*;
    import java.lang.Exception;
    public class AbortProcess {
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.PROJECT_PATH, "C:/Documents and Settings/Administrator/AlbpmWorkspace/EarOMatic");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "C:/tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("adminEarOMatic", "adminEarOMatic", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId) ) {
    System.out.println(" -> " + instance.getId());
    System.out.println("ActivityName -> " + instance.getActivityName());
    System.out.println("ActivityId -> "+ instance.getActivityId());
    //Problema: nn vuole ActivityId ma Process Id
    session.activityAbort("/CreateEurekaSRService#Default-1.0/eomWait","/CreateEurekaSRService#Default-1.0/1/0@EarOMatic");
    /////////////////// 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();
    Now, i got the following exception:
    Local folder C:/tmp\system\Schema-4154784351820594721\catalogs found.
    Loading catalogs from local folder: C:/tmp\system\Schema-4154784351820594721\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [EarOMatic] ...CatalogManagerCache 10390580:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [EarOMatic] REGISTERED!CatalogManagerCache 10390580:
    Managers:
    {EarOMatic=fuego.util.LocalCatalogManager@106df95}
    Counters:
    Process: /AbortInstanceProcessService#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Changing InstanceCache Entry[processId=/AbortInstanceProcessService#Default-1.0, state=0] to 3
    Changing InstanceCache Entry[processId=/AbortInstanceProcessService#Default-1.0, state=3] to 2
    Process: /CreateEurekaSRService#Default-1.0
    Changing InstanceCache Entry[processId=/CreateEurekaSRService#Default-1.0, state=0] to 3
    Changing InstanceCache Entry[processId=/CreateEurekaSRService#Default-1.0, state=3] to 2
    -> /CreateEurekaSRService#Default-1.0/1/0
    ActivityName -> eomWait
    Adding local catalog for project: 1
    ActivityId -> /CreateEurekaSRService#Default-1.0/eomWait
    Exception in thread "main" fuego.server.exception.InvalidIdRuntimeException: Invalid identification.
    Detail:Invalid identification (Identification value: /CreateEurekaSRService#Default-1.0/eomWait)
         at fuego.server.ActiveProcessImpl.getActivity(ActiveProcessImpl.java:632)
         at fuego.server.execution.microactivity.AbstractProcessExecutionHandler.getExecutableActivity(AbstractProcessExecutionHandler.java:58)
         at fuego.server.AbstractProcessBean.abortActivity(AbstractProcessBean.java:3262)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:587)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:778)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:753)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:837)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
         at fuego.component.CustomExecution.next(CustomExecution.java:172)
         at fuego.component.ExecutorClient.invoke(ExecutorClient.java:118)
         at fuego.papi.impl.rmi.ProcessControlProxy.abortActivity(ProcessControlProxy.java:407)
         at fuego.papi.impl.rmi.ProcessControlProxyWrapper.abortActivity(ProcessControlProxyWrapper.java:683)
         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:585)
         at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
         at fuego.papi.impl.rmi.RMIProcessControlHandler.invoke(RMIProcessControlHandler.java:165)
         at $Proxy23.abortActivity(Unknown Source)
         at fuego.papi.impl.ProcessInstanceOperation.abortActivity(ProcessInstanceOperation.java:726)
         at fuego.papi.impl.ProcessServiceSessionImpl.activityAbort(ProcessServiceSessionImpl.java:184)
         at hp.abort.process.AbortProcess.main(AbortProcess.java:45)
    Caused by: fuego.metadata.exception.InvalidIdException: Activity '/CreateEurekaSRService#Default-1.0/eomWait' was not found in process '/CreateEurekaSRService#Default-1.0'.
         at fuego.metadata.Process.getActivity(Process.java:261)
         at fuego.server.ActiveProcessImpl.getActivity(ActiveProcessImpl.java:629)
         at fuego.server.execution.microactivity.AbstractProcessExecutionHandler.getExecutableActivity(AbstractProcessExecutionHandler.java:58)
         at fuego.server.AbstractProcessBean.abortActivity(AbstractProcessBean.java:3262)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:587)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:778)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:753)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:837)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    I understood that tha activity id's format is not valid, but i obtained it just using the following function: instance.getActivityId()
    Are you abel to give me some suggestion? Is it good this method to kill instance?
    Thanks a lot, regard Fabio.

  • PAPI Example not working in enterprise standalone

    Hi,
    I am running the papi example and my directory.xml is pointing to Enterprise standalone env.While runnung the java code i am getting the following exception
    Unreachable Engine Tolerance (seconds):
    Below is the code and error stacktrace
    Code:-
    package client;
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import fuego.papi.collections.InstanceInfoList;
    import java.util.Properties;
    public class PapiExample {
    public PapiExample() {
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "standalone");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE,
    "C:\\OraBPMEnterpriseHome\\conf\\directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "D:\\tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("notify", "maverick",
    "ENGORCL");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// 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();
    error :-
    Creating connector [fuego:SQL]
    Creating ProcessService with id 'oracle/2009-07-10 09:52:25+05:30'.
    Creating local folder: D:\tmp\system\Schema33871921250007238\catalogs
    Loading catalogs from local folder: D:\tmp\system\Schema33871921250007238\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [oracle/2009-07-10 09:52:25+05:30] ...CatalogManagerCache 6526955:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [oracle/2009-07-10 09:52:25+05:30] REGISTERED!CatalogManagerCache 6526955:
    Managers:
    {oracle/2009-07-10 09:52:25+05:30=fuego.util.LocalCatalogManager@8aeb74}
    Counters:
    ProcessService 'oracle/2009-07-10 09:52:25+05:30' created successfully.
    Process: /NotifybyEmail#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Session 'notify8377908085631000001' has been closed.
    [CatalogMgrCache] =======================
    Unregistering CatalogMgr [oracle/2009-07-10 09:52:25+05:30] ...CatalogManagerCache 6526955:
    Managers:
    {oracle/2009-07-10 09:52:25+05:30=fuego.util.LocalCatalogManager@8aeb74}
    Counters:
    {oracle/2009-07-10 09:52:25+05:30=1}
    [CatalogLoaderMgr] unregisterCatalogMgr freeing resources of LocalCatalogManager
    [CatalogMgrCache] =======================
    CatalogMgr [oracle/2009-07-10 09:52:25+05:30] UNREGISTERED!CatalogManagerCache 6526955:
    Managers:
    Counters:
    Process exited with exit code 0.
    Please suggest me the solution.
    Regards.

    Hi,
    Your logic might be perfectly fine, but I noticed a couple things I do differently.
    I uploaded a step-by-step instructions on how to invoke PAPI from Java (JDeveloper 10) for Oracle BPM 10g Enterprise Standalone to: http://www.4shared.com/file/119420269/57ff2b24/Oracle_BPM_Enterprise_Standalone_PAPI_from_JDev.html.
    Dan

  • How to create process instance throught PAPI?

    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

  • BPM 10.3 Studio how to use PAPI from stand alone java client

    Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
    I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
    I need ... fuegopapi-client.jar and directory.xml )
    Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
    java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
    BPM process ...?
    thanks a lot
    Tomas
    ..otherwise the java code look like this ...
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "c:\tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// 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();
    }

    Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
    I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
    I need ... fuegopapi-client.jar and directory.xml )
    Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
    java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
    BPM process ...?
    thanks a lot
    Tomas
    ..otherwise the java code look like this ...
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "c:\tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// 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();
    }

  • Help ! Error after install Oracle Database patch 9.2.0.5 on AIX

    My database version on AIX server is 9.2.0.1, and I installed the 9.2.0.5 patch to update it .
         But when i run the catpatch.sql, the out of process memory exception always occured even if i change the java_pool_size and share_pool_size both to 200M in init.ora file.
         and when i run bi_checkconfig.sh to check weither the olap can be used, I got these errors:
    Error: Olap API initialization failed; SQLException occurred when calling OlapiB
    ootstrap procedure: ORA-37111: Message 37111 not found; product=RDBMS; facility
    =ORA
    ; arguments: [  0509-022 Cannot load module /u01/app/oracle/9.2.0.1/lib/libolapa
    pi9.so.
    0509-150 Dependent module /usr/lib/libC.a(ansi_64.o) could not be load
    ed.
    0509-152 Member ansi_64.o is not found in archive
    0509-022 Cannot load module /usr/lib/libC.a.
    0509-150 Dependent module /usr/lib/libC.a could not be loaded.]
    ORA-06512: ÔÚ"SYS.OLAPIBOOTSTRAP", line 0
    ORA-06512: ÔÚline 1
    See G:\jdev904\bibeans\bi_checkconfig\bi_error.log
    I reinstalled xlC , but the message is still there!
    some one can help me ?

    Why don't you (or your system administrator) simply do,what the message recommands?
    The root user should execute '/usr/sbin/slibclean' You cannot remove the message itself. Run 'slibclean' and answer 'Y'. Unfortunately on the AIX platform it interrupts a silent installation.
    http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/slibclean.htm
    Werner

  • Content Server not working after 5.0.2 upgrade

    We upgraded the plumtree to 5.0.2. After upgrade, content server portlets not working properly. When I publish my portlet, Interface says it is published, HTML file generated at the published location, but log says
    com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENT
    Portlet displays
    Error: No Url is available for this portlet. It may not have been published.
    Any Idea ?

    Hi Ravi, from the Release Notes for Content Server 5.0.2, there's this note "Publish Dialog does not show any error when search index fails but an error "com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENTTEMPLATE" is recorded in pcs.log. (Issue #27541) "
    So you should make sure that the search server is running (just by doing a banner search). Assuming that's fine (it probably is), the likely culprit is an installation problem. Check the Content Server pcs.log file (located in PT_HOME\ptcs\5.0\settings\logs) for any error messages related to search api initialization. This cryptic error you're observing occurs when the search api initialization fails for some reason, the error is not gracefully caught and surfaced to the user. The pcs.log file may give a clue.

  • Papi call  of processGetInstances fail

    Hi al Gurus,
    i have wls 10
    and
    albpm BEA AquaLogic(TM) BPM Enterprise for Application Server
    Versione: 6.0.2
    Build: #88812
    on host:
    Linux anime 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
    Process: /CatalogueMaintainabilityGUI1#Default-1.0 has one instance.
    this is my code:
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import fuego.papi.Arguments;
    import fuego.papi.BatchOperationException;
    import fuego.papi.ProcessService;
    import fuego.papi.CommunicationException;
    import fuego.lang.ConnectionPassport;
    import java.util.Properties;
    public class Papi6Example {
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    Properties systemProperties = System.getProperties();
    systemProperties.setProperty("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    systemProperties.setProperty("java.naming.provider.url", "t3://anime:7001");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test","test", "anime");
    System.out.println("Session Created!!!!!!!!!!!!!!!");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    System.out.println("end of work,wait to release.");
    } 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();
    this is the error:
    + JAVA_HOME=/home/beawls10/bea/jrockit90_150_06/bin
    + echo /home/beawls10/bea/jrockit90_150_06/bin
    /home/beawls10/bea/jrockit90_150_06/bin
    + FUEGO_HOME=/home/beabpm60/beabpm60_engine/client/papi/lib
    + DOMAIN_HOME=/home/beawls10/bea/user_projects/domains/albpm/lib
    + CLASSPATH=/home/beabpm60/beabpm60_engine/client/papi/lib/fuegopapi-client.jar:/home/beawls10/bea/user_projects/domains/albpm/lib/wljmsclient.jar
    + cp /home/beabpm60/beabpm60_engine/conf/directory.xml .
    + /home/beawls10/bea/jrockit90_150_06/bin/java -cp .:/home/beabpm60/beabpm60_engine/client/papi/lib/fuegopapi-client.jar:/home/beawls10/bea/user_projects/domains/albpm/lib/wljmsclient.jar Papi6Example
    Creating connector [fuego:SQL]
    Local folder /tmp/system/Schema33871921663294942/catalogs found.
    Loading catalogs from local folder: /tmp/system/Schema33871921663294942/catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [bea/2008-05-09 16:00:07+02:00] ...CatalogManagerCache 22497214:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [bea/2008-05-09 16:00:07+02:00] REGISTERED!CatalogManagerCache 22497214:
    Managers:
    {bea/2008-05-09 16:00:07+02:00=fuego.util.LocalCatalogManager@161ff3c}
    Counters:
    Session Created!!!!!!!!!!!!!!!
    Process: /CACHECLEAN#Default-1.0
    The connection to the JMS Topic engine was completed successfully.
    Process: /CatalogueMaintainabilityGUI1#Default-1.0
    Process execution engine execution error.
    Caused by:
    fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
    at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:158)
    at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
    at $Proxy14.getInstancesForCache(I)[Lfuego.papi.InstanceInfo;(Unknown Source)
            at fuego.papi.impl.j2ee.J2EEInstanceCacheFiller.beginFill(J2EEInstanceCacheFiller.java:58)
            at fuego.papi.impl.InstanceCache.checkFill(InstanceCache.java:359)
            at fuego.papi.impl.InstanceCache.getInstances(InstanceCache.java:230)
            at fuego.papi.impl.ProcessServiceImpl.getInstances(ProcessServiceImpl.java:1427)
            at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2034)
            at Papi6Example.main(Papi6Example.java:38)
    Caused by: org.omg.CORBA.BAD_PARAM:   vmcid: 0x0  minor code: 0  completed: No
            at java.lang.Class.newInstance(I)Ljava.lang.Object;(Unknown Source)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
            at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
            at com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
            at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
            at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
            at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
            at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
            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._EJBProcessControlInterface_Stub.getInstancesForCache(Lfuego.papi.impl.j2ee.EJBSecureEngineInfo;Ljava.lang.String;I)[Lfuego.papi.InstanceInfo;(Unknown Source)
    Could not perform the requested operation
    fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
            at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:158)
            at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
            at $Proxy14.getInstances()[Lfuego.papi.InstanceInfo;(Unknown Source)
            at fuego.papi.impl.InstanceCache.getInstances(InstanceCache.java:247)
            at fuego.papi.impl.ProcessServiceImpl.getInstances(ProcessServiceImpl.java:1427)
            at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2034)
            at Papi6Example.main(Papi6Example.java:38)
    Caused by: org.omg.CORBA.BAD_PARAM:   vmcid: 0x0  minor code: 0  completed: No
            at java.lang.Class.newInstance(I)Ljava.lang.Object;(Unknown Source)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
            at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
            at com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
            at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
            at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
            at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
            at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
            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._EJBProcessControlInterface_Stub.getInstances(Lfuego.papi.impl.j2ee.EJBSecureEngineInfo;Ljava.lang.String;)[Lfuego.papi.InstanceInfo;(Unknown Source)
    Can someone help me?
    thanks a lot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Change ProcessServiceSession session = processService.createSession("test","test", "anime"); to ProcessServiceSession session = processService.createSession("test","test", "/anime");

  • Role of an instance

    Hi,
    short question, how can I get the role of the active activity, when I have an instance object of another process (not the current one)?
    I have tried to get the activity by "Activity(instance.activityName)", but this works only for activities of the current process, not of another one. So I tried to get the Process itself and cycle through the activity list, but there is also only the possibility to get the current one.
    So, does anyone how to get the role for an instance of another process?
    Many thanks for your help.
    Kind regards
    Matthias

    Hi Matthias,
    Here's one approach to getting the name of the activity and the role for an instance if all you know is the instance's id (e.g "/Test#Default-1.0/2/0"). Sure there are better ways to have done this.
    It's a bit of overkill (it retrieves all the instances for the process "Test" and shows all of their activity and role names).
    As you know, the instance id is a String formatted like this: "/Test#Default-1.0/2/0". In this example, you can use this instance id string to figure out the instance's number ("2") for the instance and the process id ("/Test"). Since you know the instance id, your logic would just need to create the session and the filter and the second of the two "for" loops shown below. The second "for" loop is iterating through an array, but the array will always have only one value since there will only be one instance with the unique instance number.
    package papistudiotest;
    import fuego.papi.BatchOperationException;
    import fuego.papi.CommunicationException;
    import fuego.papi.Comparison;
    import fuego.papi.Filter;
    import fuego.papi.InstanceInfo;
    import fuego.papi.OperationException;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.SearchScope;
    import fuego.papi.StatusScope;
    import fuego.papi.VarDefinition;
    import fuego.papi.collections.InstanceInfoList;
    import fuego.papi.collections.ProcessIdSet;
    import java.util.Properties;
    public class PapiInstance {
        public static void main(String[] args) {
            /////////////////// API Initialization ///////////////////
            Properties configuration = new Properties();
            configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
            configuration.setProperty(ProcessService.PROJECT_PATH,
                                      "C:/OracleBPMWorkspace/TestProcess");
            configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
            int instNumber;
            instNumber = 0;
            try {
                ProcessService processService =
                    ProcessService.create(configuration);
                /////////////////// Establish a session ///////////////////
                ProcessServiceSession session =
                    processService.createSession("test", "test", null);
                /////////////////// Operate with PAPI ///////////////////
                // get the instances
                for (InstanceInfo instance: session.processGetInstances("/Test")) {
                    System.out.println("** fetching id -> " +
                                       instance.getInstanceIn());
                    instNumber = instance.getInstanceIn();
                    // Search instances which begin with a specific string in an external variable value and
                    // stay in a specific activity.
                    Filter filter;
                    filter = ProcessService.createFilter();
                    SearchScope searchScope =
                        new SearchScope(fuego.papi.ParticipantScope.ALL,
                                        fuego.papi.StatusScope.ALL, null);
                    searchScope.setStatusScope(StatusScope.ONLY_INPROCESS);
                    filter.setSearchScope(searchScope);
                    filter.addAttribute(VarDefinition.getDefaultVarDefinition(VarDefinition.INSTANCE_NUMBER),
                                        Comparison.IS, instNumber);
                    filter.setMatchAll(true);
                    ProcessIdSet pids;
                    pids = ProcessIdSet.create();
                    pids.add("/Test");
                    // Search instances.
                    InstanceInfoList instances;
                    instances =
                            session.processesGetInstancesByFilter(pids, filter);
                    for (InstanceInfo ii: instances.toArray()) {
                        ii.getId();
                        System.out.println("id is: " + ii.getId());
                        System.out.println("activity name - this is the one: " +
                                           ii.getActivityName());
                        System.out.println("role name - this is the one: " +
                                           ii.getRoleId());
                /////////////////// Release API Resources ///////////////////
                /////////////////// 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();
            } catch (BatchOperationException e) {
                System.out.println("Could not perform the batch operation");
                e.printStackTrace();
    }Hope this helps,
    Dan

  • Acrobat plug-ins PPKLite.api, HTML2PDF.api fail to initialize & file reducing plug-in not available

    Trying to figure out why in last 2 wks I've been getting error messages when I open a PDF doc with Acrobat 7.0.9 professional. Initially 2 pop-ups saying error loading plug-ins PPKLite.api and HTML2PDF.api & they "failed to initialize. I can click OK & clear those error messages & proceed with what I'm doing, so they have just been an annoyance. Today I tried to reduce the size of a file, & got an error saying some of he required plug-ins are "not available. Some functions features may be disabled" - and it didn't reduce the file size. I need to be able to reduce PDF files on a regular basis. What can I do to fix both these annoyances & my file reducing plug-in problem?

    Had the same problem with Acrobat 6.0 Pro.
    Start with a test, Hold down the Shift key while starting Acrobat (from the time you double-click the icon, until it is initalized and ready to go).
    This starts Acrobat without ANY plug-ins.
    If this works without errors, go to this link and install all the updates, starting with the lowest. Select repair, if prompted, in the event the patch is already installed, or just cancel and continue working your way from lowest to highest revision, until your version is current.
    http://www.adobe.com/support/downloads/product.jsp?platform=Windows&product=1
    For 6.0.0 I used (in order):
    Ac60PrP1.exe
    Acro-Reader_6.0.2_Update.exe
    Acro-Reader_6.0.3_Update.exe
    Acro-Reader_6.0.4_Update.exe
    Acro-Reader_6.0.5_Update.exe
    Acro-Reader_6.0.6_Update.exe

  • How to initialize a replica by using Java API?

    Hi, I used to initialize a replica by adding the attribute nsDS5BeginReplicaRefresh=start to the replica agreement and it works fine by using the ldapmodify commandline utility. Now I am trying to use the Java API to do the same, but I always get the Object class violation error. And I noticed that when I use the Java API to create the replica, it has the different attributes than the one created by the commandline utility. The former has the serializedJavaData and javaClass, ... And I can't find any documentation on this issue. It's really frustrating! I am wondering if the replica agreement has different attribute for initializing? If so, why it's never documented?
    I badly need your help!!!
    Louis

    Hi Govada,
    (1)You need to add the MDM4j and other JAR files at:-
    right click on project -> Java Build Path -> Libraries -> Add External JARs
    (2)If the project is Web Dynpro project one
    then right click on project -> Web Dynpro Reference -> Library Reference -> and add sap.com/com.sap.mdm.tech.mdm4j
    Are you using JAVA API 1 or 2???
    Thanking you
    Namrata Dixit

Maybe you are looking for

  • Report id and Application parameter

    Hi I am just configuring my iview to display my Crystal Report but I just get a blank screen. These are the paramters I am using: My report in BO is: frs://Input/a_163/009/000/2467/1c8c69c861bbb952.rpt In the iview I set: Appplication Paraters as: cm

  • How to call Report output in Modulepools

    hi can any one suggest me How to call Report output in Modulepools i have a push button in modulepool after clicking that pushbutton i need a report output how to do this Thanks & Regards kalyan

  • Meaning of userNameAs in IEssDomain.signOn() 9.3.1 Java API

    Hi all, have onyone of you tried the "new" (meaning v. 9.9.1 compared to version 7) parameter userNameAs in IEssbase.SignOn? exerpt from api doc: public IEssDomain signOn(java.lang.String userName, java.lang.String password, boolean passwordIsToken,

  • Rapidwiz input error, can it be fixed w/out a re-run?

    - doing rel12 upgrade. made an error on rapidwiz input. - some services on the apps-primary and app-additional should have been disabled. - rapidwiz has completed the "create upgrade file system" on the "apps-primary" node. - Is there a way to change

  • Error parsing XML license file

    i need assistance while installing WebLogic 5.1 Evaluation version on my NT Server and i also registered and downloaded the key for that but still my server is not functioning as it gives me a license file error in java..... The error is as follows..