PAPI ProcessService ClassCastException

All, I need help urgently. I am getting the following exception when I try to run my application using papi to connect to the albpm enterprise standalone server (ver 5.7SP2)
java.lang.ClassCastException: fuego.papi.impl.ProcessServiceFactoryImpl cannot be cast to fuego.papi.ProcessService$Factory
Thanks.

Solved. I forgot to remove ftlib.jar, fuegocore.jar, and ftpapi.jar from the classpath when running my app.
These jar files are used only for compiling!! Duh!
-MukTech

Similar Messages

  • Abort an instance using ProcessService (Fuego.Papi.ProcessService)

    Hi Folks,
    I want to abort a process instance using ProcessService (Fuego.Papi.ProcessService)
    This is how i am trying to do the same:
    +if (ivBPMObject1.bpmObject1Option != "TRUE") {+
    ProcessService.connectTo(url : Fuego.Server.directoryURL, user : "pavan",
    password : "");
    +// ivInstance2Id is the InstanceId of the other split branch which is alive and which needs to be suspended+
    lvInstance = ProcessService.getInstance(instance : ivInstance2Id.id);
    +// abort+
    lvInstance.abort();
    ProcessService.disconnectFrom();
    +}+
    I get the following exception in the line lvInstance.abort() :.
    The batch operation could not be executed for all selected instances.
    Internal Exceptions:
    +>> /MainProcess#Default-1.0/1/2:+
    Instance '/MainProcess#Default-1.0/1/0' could not be locked because participant 'Server' is currently locking it
    I am running this from the Embedded Workspace of Oracle BPM Studio and I dont see any participant 'Server' in the directory.
    How can i suspend/abort this instance?
    Is there a way that my user/participant 'pavan' can be given rights/privelege to take 'Server's instances?
    I tried using 'Server' as user but i dont know the credentials for 'Server' - so that attempt too failed :(.
    can anyone please help me out?
    Regards,
    user8702013

    Thank you Ariel,
    Yes, I have two 'approvals' happening in parallel - in two branches of a split. when one approval comes 'unapproved', there is no point continuing with the other - i have to abort it.
    But if i set the setting to 'generate independent copies', how will i get the 'instanceId' of the second branch when only the first branch has reached the 'join'? (i had thus made the 'shared' to be true).
    My requirement is that i have two branches in a split. these two split branches call two different approval subprocess which go into user interaction tasks. but when one one approval is rejected (and reaches the join), i want to abort the other instance (atleast of the called subprocess) so that the redundant approval user task of the second branch can be avoided.
    I have been struggling with this for the past couple of days :(
    I am trying to see if i can get the 'instances' of the subprocess in question and find the instance to be killed (aborted) by checking the parents (the parent should be my process). i am getting problems there too. am stranded...
    Regards,
    user8702013

  • Import fuego.papi.ws.ProcessService;

    import fuego.papi.ws.ProcessService;
    import fuego.papi.ProcessService;
    What's the different between the above two sentences?
    I cannot find the fuego.papi.ws.client in the JDev11g. Where is it? Is it replaced by fuego.papi.ws.ProcessService;

    Hi YE,
    Guessing you've probably already discovered this, but in Oracle BPM 10g you'll find the fuegopapi-client.jar for your two import statements in the Enterprise (not Studio) directory <OracleBPMEnterpriseHomeDir>\client\papi\lib.
    In Oracle BPM 10g, you only need to import either "fuego.papi.ws.ProcessService" (the PAPI-WS API) or "fuego.papi.ProcessService" (the PAPI API). The difference between the two is that PAPI is the API that uses Java while PAPI-WS is the API that uses a web service as its underlying implementation. You won't need both of these, since PAPI and PAPI-WS now have about the same functionality in Oracle BPM 10g.
    In earlier releases you'd instead need to import "fuego.papi.ws.client" when accessing the PAPI-WS API only if you were accessing it from a Java application. While it was great having a web service API, the problem with PAPI-WS in earlier releases is that it only provide a subset of the capabilities that PAPI had. Using PAPI-WS, I could only create instances in a process, get the values of variables of a particular instance, send a notification message to a particular instance, run Global activities in a process, return a list of instances for a specific view and finally run an instance in a specific activity.
    This all sounds great, but the fact that PAPI-WS was a subset of PAPI used to be a problem.
    Hope this helps,
    Dan

  • Cannot run PAPI in Weblogic Server 10g - Error 500--Internal Server Error

    I use Jdev 11g to create an ADF (PAPI) and deploy it to Weblogic 10g.
    The code is copied from Jdev 10g. The PAPI works fine in when running in Jdev 10g
    However, after I deploy the ADF (PAPI) created using Jdev 11g to the Weblogic server. The following error appears.
    How to modify the code? Should I add the fuego lib to the weblogic domain?
    I try to add the fuegopapi-client.jar to Weblogic Server. But it shows error: Unable to access the selected application. java.lang.NullPointerException
    BPM is running in BPM standalone. I do not use PAPI webservice
    Sincerely
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: fuego.directory.exception.DirectoryNotAvailableException: Unable to connect to the Directory Service. If the problem persists, contact your system administrator.
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:61)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: fuego.directory.exception.DirectoryNotAvailableException: Unable to connect to the Directory Service. If the problem persists, contact your system administrator.
         at fuego.directory.exception.DirectoryNotAvailableException.wrapDNAException(DirectoryNotAvailableException.java:33)
         at fuego.directory.jdbc.JDBCConnectionProvider.getEntry(JDBCConnectionProvider.java:81)
         at fuego.directory.jdbc.JDBCConnectionProvider.getEntry(JDBCConnectionProvider.java:34)
         at fuego.directory.provider.jdbc.JDBCPersistenceManager.getConnection(JDBCPersistenceManager.java:437)
         at fuego.directory.provider.jdbc.JDBCPersistenceManager.checkConnectivity(JDBCPersistenceManager.java:91)
         at fuego.directory.provider.DirectorySessionImpl.connect(DirectorySessionImpl.java:242)
         at fuego.directory.provider.Factory.startSession(Factory.java:405)
         at fuego.directory.Directory.startAnonymousSession(Directory.java:214)
         at fuego.papi.impl.ProcessServiceFactoryImpl.obtainSchemaId(ProcessServiceFactoryImpl.java:193)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:75)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:63)
         at fuego.papi.ProcessService.create(ProcessService.java:335)
         at hypapai2.view.backing.P1.commandButton1_action(P1.java:54)
         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.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 32 more
    Caused by: fuego.connector.ConnectorException: External resource [fuego] of type [SQL] is not initialized.
    Detail:External resource [fuego] cannot be used because it failed to initialize correctly at service startup.
    That failure generated a warning in the server log.
    Check the logs for the details on the failure.
         at fuego.connector.ConnectorException.connectorNotInitialized(ConnectorException.java:60)
         at fuego.connector.ConnectorService.getConnectorInterface(ConnectorService.java:527)
         at fuego.connector.CompositeConnectorService.getDirectoryConnectorInterface(CompositeConnectorService.java:446)
         at fuego.connector.CompositeConnectorService.getConnectorInterface(CompositeConnectorService.java:293)
         at fuego.connector.ConnectorTransaction.registerConnectorInterfaceCoordinator(ConnectorTransaction.java:656)
         at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:315)
         at fuego.directory.jdbc.JDBCConnectionProvider.getEntry(JDBCConnectionProvider.java:68)
         ... 50 more

    While still using PAPI, try also adding b1oracle.jar, b1base.jar and b1util.jar to your ADF project.
    These jars could be found from your BPM Studio installation.
    HTH

  • Error while running PAPI API

    Hi,
    I am getting the following error while running a PAPI code in one of the machine. It runs fine in one another machine. I am using JRE1.5 in both the machines.
    Any Ideas??
    Exception in thread "main" java.lang.NullPointerException
         at java.util.TreeSet.addAll(Unknown Source)
         at fuego.boot.LanguageData.addLocalesByLanguage(LanguageData.java:84)
         at fuego.boot.LanguageData.addRuntimeLocale(LanguageData.java:43)
         at fuego.boot.LanguageData.addSupportedLocale(LanguageData.java:52)
         at fuego.boot.BootData.registerJar(BootData.java:213)
         at fuego.boot.Loader.loadClasspathPlugins(Loader.java:1100)
         at fuego.boot.Loader.initPlugins(Loader.java:557)
         at fuego.boot.Loader.initPlugins(Loader.java:668)
         at fuego.boot.Loader.initPlugins(Loader.java:630)
         at fuego.papi.ProcessService.getFactory(ProcessService.java:657)
         at fuego.papi.ProcessService.create(ProcessService.java:426)
         at com.integro.csp.fuego.core.CSPTaskManager.getProcessSession(CSPTaskManager.java:2049)
         at com.integro.csp.fuego.core.CSPTaskManager.getMyCSPTasks(CSPTaskManager.java:88)
         at com.integro.csp.fuego.core.CSPTaskManager.main(CSPTaskManager.java:2140)

    is it possible that you don't have java language jars in one of the machines?
    The problem happens because the jvm do not have the locale definition for your language jars.
    Please report this to support so we can provide a better message in the product next time this problem occurs.
    MAriano Benitez
    Join us at BEAParticipate, May 6-9 2007 | Atlanta, Georgia

  • 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

  • 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

  • PAPI Client program is not working

    Hi,
    i'm running a sample bpm project in albpm studio 5.7
    and tried to get the instance details thru PAPI client, but im getting following exception.
    pls help me.
    Code:*
    package papi.example;
    import java.io.Serializable;
    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 PapiExample implements Serializable {
         private static final long serialVersionUID = 6828488904644822028L;
         public static void main(String[] args) throws Exception {
              Properties configuration = new Properties();
              configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
              configuration
                        .setProperty(ProcessService.PROJECT_PATH,
                                  "C:/Documents and Settings/458232/bpmProjects/ExpenseManagement.fpr");
              configuration
                        .setProperty(ProcessService.WORKING_FOLDER,
                                  "/tmp");
              try {
                   ProcessService processService = ProcessService
                             .create(configuration);
                   ProcessServiceSession session = processService.createSession(
                             "Peter Jones", "", "localhost");
                   for (String processId : session.processesGetIds()) {
                        System.out.println("\n Process: " + processId);
                        for (InstanceInfo instance : session
                                  .processGetInstances(processId)) {
                             System.out.println(" -> " + instance.getId());
                   session.close();
                   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();
    Exception*:
    Local folder /tmp\system\Schema3387192-1626570987\catalogs found.
    Loading catalogs from local folder: /tmp\system\Schema3387192-1626570987\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [ExpenseManagement.fpr] ...CatalogManagerCache 25934938:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [ExpenseManagement.fpr] REGISTERED!CatalogManagerCache 25934938:
    Managers:
    {ExpenseManagement.fpr=fuego.util.LocalCatalogManager@facf0b}
    Counters:
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Process: /ExpenseReport#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.
    The connection to 'tcp://01HW316455:8586' was refused. Details:
    tcp://01HW316455:8586. Details: java.io.EOFException)
    Caused by: An exception occurred while attempting to connect to: tcp://01HW316455:8586
    Caused by: java.io.EOFException
    fuego.papi.impl.rmi.EngineLocationStatus$EngineCrashedException: tcp://01HW316455:8586. Details: java.io.EOFException)
         at fuego.papi.impl.rmi.EngineLocationStatus.get(EngineLocationStatus.java:92)
         at fuego.papi.impl.rmi.RMIUtils.connectToLocation(RMIUtils.java:136)
         at fuego.papi.impl.rmi.RMIUtils.connectToEngine(RMIUtils.java:111)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngineProxy(RMIEngineAccessImpl.java:153)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngine(RMIEngineAccessImpl.java:105)
         at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1222)
         at fuego.papi.impl.ProcessServiceSessionImpl$2.run(ProcessServiceSessionImpl.java:3641)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getSecureEngine(ProcessServiceSessionImpl.java:3649)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1208)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2481)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2486)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2155)
         at papi.example.PapiExample.main(PapiExample.java:41)
    Caused by: fuego.rmi.spi.ConnectException: An exception occurred while attempting to connect to: tcp://01HW316455:8586
         at fuego.rmi.ClientCluster.initialize(ClientCluster.java:486)
         at fuego.rmi.ClientCluster.<init>(ClientCluster.java:107)
         at fuego.rmi.ClientCluster.find(ClientCluster.java:228)
         at fuego.rmi.RemoteProxy.<init>(RemoteProxy.java:73)
         at fuego.papi.impl.rmi.PublicEngineProxy.<init>(PublicEngineProxy.java:33)
         at fuego.papi.impl.rmi.EngineLocationStatus.createPublicEngine(EngineLocationStatus.java:109)
         at fuego.papi.impl.rmi.EngineLocationStatus.get(EngineLocationStatus.java:44)
         ... 14 more
    Caused by: java.io.EOFException
         at java.io.DataInputStream.readShort(Unknown Source)
         at fuego.rmi.Packet.read(Packet.java:129)
         at fuego.rmi.spi.BaseConnection$Receiver.run(BaseConnection.java:190)
    fuego.papi.ProcessNotAvailableException: Process '/ExpenseReport#Default-1.0' not available.
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1215)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2481)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2486)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2155)
         at papi.example.PapiExample.main(PapiExample.java:41)
    Caused by: fuego.papi.impl.EngineNotAvailableException: Engine 'ExpenseManagement.fpr' cannot process requests.
         at fuego.papi.impl.rmi.RMIUtils.connectToEngine(RMIUtils.java:119)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngineProxy(RMIEngineAccessImpl.java:153)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngine(RMIEngineAccessImpl.java:105)
         at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1222)
         at fuego.papi.impl.ProcessServiceSessionImpl$2.run(ProcessServiceSessionImpl.java:3641)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getSecureEngine(ProcessServiceSessionImpl.java:3649)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1208)
         ... 5 more
    Could not perform the requested operation

    I think problem is with your working folder.
    configuration.setProperty(ProcessService.WORKING_FOLDER,"/tmp");
    set it to where exactly your application folder path.

  • Fuego.papi.ProcessNotAvailableException

    Hi guys,
    I use the ALBPM 5.7 enterprise and I want to use PAPI.
    So, I got this code from my friend. He said that this code is correct.
    But it's not working now.
    I don't know what's wrong.
    "/Process" is started on the workspace portal and its version is really 2.0.
    "mih" user has the right authority to start the process.
    This code can make a session but after then the error appears.
    Thanks.
    my source code==========================================================
    package com.bpm.ucity;
    import java.util.Properties;
    import fuego.papi.Arguments;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    public class StartProcess {
         public StartProcess() {
              // TODO Auto-generated constructor stub
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String strProcessID          = "/Process";
              String strUserName          = "mih";
              String strPassword          = "1";
              ProcessService procServ = null;
              ProcessServiceSession procServSession = null;
              InstanceInfo instInfo = null;
              try {
                   Properties prop      = new Properties();
                   prop.setProperty(ProcessService.DIRECTORY_ID, "default");
                   prop.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "C:/bea/albpm5.7/j2eewl/conf/directory.properties");
                   prop.setProperty(ProcessService.WORKING_FOLDER, "C:/tmp");
                   prop.setProperty("java.naming.factory.initial","weblogic.jndi.WLInitialContextFactory");
                   prop.setProperty("java.naming.provider.url","t3://localhost:7001");     
                   procServ = ProcessService.create(prop);
                   // create session
                   procServSession = procServ.createSession(strUserName, strPassword, "localhost");
                   System.out.println ("procServSession => [" + procServSession + "]" );
                   // create process instance
                   Arguments arguments = Arguments.create();
                   System.out.println ("Arguments1111111111111111=======" + arguments);
                   System.out.println ("Here I am!!!!!!" );          
                   instInfo = procServSession.createProcessInstance(strProcessID, arguments);
                   System.out.println ("instInfo => [" + instInfo + "]" );
                   String strInstanceID = instInfo.getId();
                   System.out.println ("strInstanceID => [" + strInstanceID + "]" );
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   procServSession.close();
    error=================================================================
    procServSession => [abstract class fuego.papi.ProcessServiceSesion]
    Arguments1111111111111111=======fuego.papi.Arguments@8ceeea
    Here I am!!!!!!
    fuego.papi.ProcessNotAvailableException: cannot use process '/Process#Default-2.0'
    at fuego.papi.impl.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:1756)
    at fuego.papi.impl.ProcessServiceImpl.access$2500(ProcessServiceImpl.java:142)
    at fuego.papi.impl.ProcessServiceImpl$SessionProcessLoader.load(ProcessServiceImpl.java:3822)
    at fuego.papi.impl.ProcessManager.get(ProcessManager.java:631)
    at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1138)
    at fuego.papi.impl.ProcessServiceNESessionImpl.getProcess(ProcessServiceNESessionImpl.java:1069)
    at fuego.papi.impl.ProcessServiceNESessionImpl.checkBeginPermissions(ProcessServiceNESessionImpl.java:2434)
    at fuego.papi.impl.ProcessServiceNESessionImpl.createProcessInstance(ProcessServiceNESessionImpl.java:1441)
    at fuego.papi.impl.ProcessServiceNESessionImpl.createProcessInstance(ProcessServiceNESessionImpl.java:1434)
    at com.bpm.ucity.StartProcess.main(StartProcess.java:55)
    Caused by: fuego.papi.impl.EngineNotAvailableException: cannot find 'BEA_WL_Engine' EJB in 'engines/BEA_WL_Engine'
    reason: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: check java.naming.factory.initial
    project EAR application program to be setted up and to be started
    at fuego.papi.impl.EngineNotAvailableException.cannotFindEJB(EngineNotAvailableException.java:83)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getEngineHome(J2EEEngineAccessImpl.java:286)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getSecureEngineInterface(J2EEEngineAccessImpl.java:348)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createSecureEngine(J2EEEngineAccessImpl.java:158)
    at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1280)
    at fuego.papi.impl.ProcessServiceNESessionImpl$2.run(ProcessServiceNESessionImpl.java:2140)
    at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1578)
    at fuego.papi.impl.ProcessServiceNESessionImpl.getSecureEngine(ProcessServiceNESessionImpl.java:2148)
    at fuego.papi.impl.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:1709)
    ... 9 more
    Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as a
    n applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getEngineHome(J2EEEngineAccessImpl.java:276)
    ... 16 more
    서버 동기화 정보에 대한 JMS Topic 연결이 일시적으로 중단되었습니다. 자세한 정보:주제 연결 팩토리 'XATopicConnectionFacto
    ry'을(를) 찾는 동안 오류가 발생했습니다.
    세부 사항:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet pa
    rameter, or in an application resource file: java.naming.factory.initial
    원인: Need to specify class name in environment or system property, or as an applet parameter, or in an application reso
    urce file: java.naming.factory.initial
    fuego.papi.impl.j2ee.JMSTopicLookUpException: 주제 연결 팩토리 'XATopicConnectionFactory'을(를) 찾는 동안 오류가 발생했습니다.
    Detail:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet pa
    rameter, or in an application resource file: java.naming.factory.initial
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:649)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.run(J2EEEngineAccessImpl.java:540)
    Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as a
    n applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:640)
    ... 1 more
    서버 동기화 정보에 대한 JMS Topic 연결이 일시적으로 중단되었습니다. 자세한 정보:주제 연결 팩토리 'XATopicConnectionFacto
    ry'을(를) 찾는 동안 오류가 발생했습니다.
    세부 사항:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet pa
    rameter, or in an application resource file: java.naming.factory.initial
    원인: Need to specify class name in environment or system property, or as an applet parameter, or in an application reso
    urce file: java.naming.factory.initial
    fuego.papi.impl.j2ee.JMSTopicLookUpException: 주제 연결 팩토리 'XATopicConnectionFactory'을(를) 찾는 동안 오류가 발생했
    습니다.
    Detail:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet pa
    rameter, or in an application resource file: java.naming.factory.initial
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:649)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.run(J2EEEngineAccessImpl.java:540)
    Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as a
    n applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:640)
    ... 1 more

    Hi Ariel,
    You are right. I've got an error in my code using some wrong codes.
    I change my code like this.
    ================================================================
    package com.bpm.ucity;
    import java.util.Properties;
    import fuego.papi.Arguments;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    public class StartProcess {
         public StartProcess() {
              // TODO Auto-generated constructor stub
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String strProcessID          = "/Process";
              String strUserName          = "mih";
              String strPassword          = "1";
    //changed this part     
         Properties systemProperties = System.getProperties();
         systemProperties.setProperty ("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
         systemProperties.setProperty("java.naming.provider.url", "t3://localhost:7001");
              ProcessService procServ = null;
              ProcessServiceSession procServSession = null;
              InstanceInfo instInfo = null;
              try {     
                   Properties prop      = new Properties();
                   prop.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "C:/bea/albpm5.7/j2eewl/conf/directory.properties");
                   procServ = ProcessService.create(prop);
                   // create session
                   procServSession = procServ.createSession(strUserName, strPassword, "localhost");
                   System.out.println ("procServSession => [" + procServSession + "]" );
                   // create process instance
                   Arguments arguments = Arguments.create();
                   instInfo = procServSession.createProcessInstance(strProcessID, arguments);
                   System.out.println ("instInfo => [" + instInfo + "]" );
                   String strInstanceID = instInfo.getId();
                   System.out.println ("strInstanceID => [" + strInstanceID + "]" );
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   procServSession.close();
    ================================================================
    and I put weblogic.jar path into the classpath.
    After that, I can get a new process instance, but I've got some errors up to now.
    I think the error is not caused by the code.
    How do you think about it?
    error====================================================
    JMS Topic 엔진에 가입하는 동안 오류가 발생했습니다. reason:'While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved ''
    cause by: While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved ''
    javax.naming.NameNotFoundException: While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved '' [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved '']; remaining name 'java:comp/UserTransaction'
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:215)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at weblogic.jndi.internal.ServerNamingNode_923_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:379)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:367)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at fuego.connector.impl.UserTransactionProvider.createForServlets(UserTransactionProvider.java:50)
         at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createTopicSubcriber(J2EEEngineAccessImpl.java:381)
         at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.<init>(J2EEEngineAccessImpl.java:80)
         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:494)
         at fuego.prefs.engine.EngineType.createObject(EngineType.java:218)
         at fuego.prefs.engine.EngineType.createEngineAccess(EngineType.java:211)
         at fuego.papi.impl.EngineAccess.getEngineAccess(EngineAccess.java:176)
         at fuego.papi.impl.EngineAccess.getEngineAccess(EngineAccess.java:96)
         at fuego.papi.impl.ProcessServiceImpl.getEngineAccess(ProcessServiceImpl.java:983)
         at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1280)
         at fuego.papi.impl.ProcessServiceNESessionImpl$2.run(ProcessServiceNESessionImpl.java:2140)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1578)
         at fuego.papi.impl.ProcessServiceNESessionImpl.getSecureEngine(ProcessServiceNESessionImpl.java:2148)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1266)
         at fuego.papi.impl.ProcessServiceNESessionImpl$1.run(ProcessServiceNESessionImpl.java:1104)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1578)
         at fuego.papi.impl.ProcessServiceNESessionImpl.getProcessControl(ProcessServiceNESessionImpl.java:1109)
         at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:496)
         at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:247)
         at fuego.papi.impl.ProcessServiceImpl.getInstancesByFilter(ProcessServiceImpl.java:1087)
         at fuego.papi.impl.ProcessServiceNESessionImpl.getInstancesByFilter(ProcessServiceNESessionImpl.java:755)
         at fuego.papi.impl.ProcessServiceNESessionImpl.getSortedInstancesByFilter(ProcessServiceNESessionImpl.java:2293)
         at fuego.papi.impl.ProcessServiceNESessionImpl.getInstancesByView(ProcessServiceNESessionImpl.java:810)
         at com.bpm.ucity.Inbox.main(Inbox.java:44)
    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved ''
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

  • 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");

  • Fails in connect Papi application running in Tomcat!

    Hi,
    I need know a little more about Deploy and configuration for Oracle BPM Enterprise Standalone 10R3.
    My application was developed in J2se and connect with PAPI at server Oracle. Work Fine!
    but now i need make the deploy this application in TomCat 6.
    When the application attempts to connect the Oracle BPM Server, the following error occurs:
    This error ocurrs:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: javax/transaction/RollbackException
    fuego.database.datadirect.sqlserver.DataDirectSQLServerJDBCFactory.createConnector(DataDirectSQLServerJDBCFactory.java:112)
    fuego.connector.ConnectorService.createConnector(ConnectorService.java:614)
    fuego.connector.RuntimeConnectorService.init(RuntimeConnectorService.java:58)
    fuego.connector.ConnectorService.create(ConnectorService.java:122)
    fuego.connector.ConnectorService.create(ConnectorService.java:136)
    fuego.connector.CompositeConnectorService.restartDirectoryConnectorService(CompositeConnectorService.java:57)
    fuego.directory.DirectoryConfigurationManager.loadDirectoryConfiguration(DirectoryConfigurationManager.java:395)
    fuego.directory.DirectoryConfigurationManager.getDirectoryConfiguration(DirectoryConfigurationManager.java:331)
    fuego.directory.DirectoryConfigurationManager.getDirectoryConfigType(DirectoryConfigurationManager.java:313)
    fuego.directory.provider.Factory.getDirectoryFactory(Factory.java:216)
    fuego.directory.Directory.startAnonymousSession(Directory.java:211)
    fuego.papi.impl.ProcessServiceFactoryImpl.obtainSchemaId(ProcessServiceFactoryImpl.java:193)
    fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:75)
    fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:63)
    fuego.papi.ProcessService.create(ProcessService.java:335)
    Principal.controlerAcess.doPost(controlerAcess.java:113)
    Principal.controlerAcess.doGet(controlerAcess.java:83)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    thank&acute;s for you help!

    Hi Sanjay,
    Does the Tomcat is in the local System?
    If it is in local system try to run the application using
    <serverhost>://localhost:8080/......
    else for remote server
    Its always safe to add an entry (alias name) in drivers/hosts file with the ip address of the server like
    2.2.3.2     myLocalServer
    Now try to run and see.
    Thanks,
    Swathi
    PS:points are welcome:-)

  • Fuego Papi Client

    I have some problems when I used fuegopapi-client.jar, when I use this library in BPM Studio run without errors and retrieve all instance from
    a process that I choose in the presentation, but when I run in BPM enterprise throw an exception the process name_process#default1.0 don't exists but the
    process exists. Please help with this problems.
    //this code retrieve all processId of the process in the BPM proyect(this code run without errors)
    Properties configuration = Properties();
    configuration.setProperty(ModComponentes.Fuego2.Papi.ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ModComponentes.Fuego2.Papi.ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    ModComponentes.Fuego2.Papi.ProcessService procesoService = ModComponentes.Fuego2.Papi.ProcessService.create(configuration);
    ModComponentes.Fuego2.Papi.ProcessServiceSession procesoServiceSession =
                                            procesoService.createSession(this.sfcParticipant.name, "123456", null);
    ModComponentes.Fuego2.Papi.Process[] ext = (ModComponentes.Fuego2.Papi.Process[])procesoServiceSession.processesGet(false);
    foreach(item in ext){     
         this.sfcEstadoCredito.sProcesos[item.id] = item.name;
         this.sfcEstadoCredito.sProcesoId = item.id;                    
    procesoServiceSession.close();
    procesoService.close();
    //this code retrieve all instance from a process( only run in studio but when i run in enterprise throw an exception)
    Properties configuration = Properties();
    configuration.setProperty(ModComponentes.Fuego2.Papi.ProcessService.DIRECTORY_ID, "default");
    //Oracle BPM Studio
    //configuration.setProperty(ModComponentes.Fuego2.Papi.ProcessService.PROJECT_PATH, "D://Final//Proyecto");
    // Oracle BPM Enterprise
    configuration.setProperty(ModComponentes.Fuego2.Papi.ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    ModComponentes.Fuego2.Papi.ProcessService procesoService = ModComponentes.Fuego2.Papi.ProcessService.create(configuration);
    //Oracle BPM Studio
    // ModComponentes.Fuego2.Papi.ProcessServiceSession procesoServiceSession = procesoService.createSession(Fuego.Lib.Participant.name, Fuego.Lib.Participant.name, null);
    //Oracle BPM Enterprise
    ModComponentes.Fuego2.Papi.ProcessServiceSession procesoServiceSession =
                                                 procesoService.createSession(Fuego.Lib.Participant.name, "123456", null);
    ModComponentes.Fuego2.Papi.Filter filtro = procesoService.createFilter();
    filtro.searchScope.participantScope = ModComponentes.ParticipantScope.ALL;
    filtro.searchScope.statusScope = ModComponentes.StatusScope.ALL;
    filtro.addAttribute(ModComponentes.Fuego.Papi.VarDefinition.getDefaultVarDefinition(ModComponentes.Fuego.Papi.VarDefinition.CREATION_TIME_ID),
         ModComponentes.Comparison.GREATER_OR_EQUALS, this.sfcEstadoCredito.dFechaInicio);
    filtro.addAttribute(ModComponentes.Fuego.Papi.VarDefinition.getDefaultVarDefinition(ModComponentes.Fuego.Papi.VarDefinition.CREATION_TIME_ID),
         ModComponentes.Comparison.LESS_OR_EQUALS, this.sfcEstadoCredito.dFechaFin);
    filtro.matchAll = true;
    ModComponentes.Fuego2.Papi.InstanceInfo[] instanciaByFilter;
    instanciaByFilter = ((ModComponentes.Fuego2.Papi.InstanceInfo[])
                             procesoServiceSession.processesGetInstancesByFilter(ProcessIdSet.create.add(this.sfsProcessId), filtro));
    procesoServiceSession.close();
    procesoService.close();
    //**********************************************************************//

    Hi,
    Please incorporate the following code, hope this help you.
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    // Change the path of the directory.xml file accordindly
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "c://bea//albpm6.0//enterprise//conf//directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    Bibhu

  • The Error had happend when we run a process through papi.

    The error information as:
    fuego.directory.DirectoryRuntimeException: 异常 [获取类型为 [0] 的资源时,连接器 [albpmeng_J2EE_FDI_FUEGOLABS_ARG:SQL:远程 JDBC] 产生了一个异常。
    详细信息:获取类型为 [0] 的资源时,连接器 [albpmeng_J2EE_FDI_FUEGOLABS_ARG:SQL:远程 JDBC] 产生了一个异常。
         at fuego.directory.DirectoryRuntimeException.wrapException(DirectoryRuntimeException.java:84)
         at fuego.directory.provider.jdbc.j2ee.RemoteJDBCConnectionProvider.getEntry(RemoteJDBCConnectionProvider.java:68)
         at fuego.directory.provider.jdbc.JDBCPersistenceManager.getConnection(JDBCPersistenceManager.java:552)
         at fuego.directory.provider.jdbc.JDBCPersistenceManager.checkConnectivity(JDBCPersistenceManager.java:120)
         at fuego.directory.provider.DirectorySessionImpl.connect(DirectorySessionImpl.java:163)
         at fuego.directory.provider.Factory.startSession(Factory.java:488)
         at fuego.directory.provider.jdbc.j2ee.RemoteJdbcDirectoryFactory.startSession(RemoteJdbcDirectoryFactory.java:167)
         at fuego.directory.Directory.startAnonymousSession(Directory.java:619)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:68)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:155)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:132)
         at fuego.papi.ProcessService.create(ProcessService.java:429)
         at com.computech.ExecuteOrdering.(ExecuteOrdering.java:51)
         at com.computech.ExecuteOrdering.ExecuteOrder(ExecuteOrdering.java:128)
         at jsp_servlet.__index._jspService(__index.java:110)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(St... [Show more]

    sorry i didnt mention the weblogic workshop version, it is weblogic workshop 9.2.
    Thanks,
    vishu

  • How to connect to existing engine on WLS via PAPI?

    Hi All,
    I'm having an issue with Connecting to an existing engine on a weblogic server via PAPI from my local machine. The versions running are BPM 10gr3 and weblogic 10gr3. I'm essentially trying to run the tutorial provided in the PAPI guide from Oracle, but I'm trying to connect to a process deployed in one of our development environments. I get the following exception when executing the source code below. Only thing that pops out at me is that the path in the exception has back slashes whereas in the properties I specify the path with forward slashes. Any help would be greatly appreciated!
    Exception in thread "main" java.lang.IllegalStateException: directory configuration runtime fails to initilize with resource: \\home\weblogic\bpm103\conf\directory.xml
         at fuego.directory.DirectoryConfigurationManager.getDirectoryConfiguration(DirectoryConfigurationManager.java:338)
         at fuego.directory.DirectoryConfigurationManager.getDirectoryConfigType(DirectoryConfigurationManager.java:314)
         at fuego.directory.provider.Factory.getDirectoryFactory(Factory.java:216)
         at fuego.directory.Directory.startAnonymousSession(Directory.java:211)
         at fuego.papi.impl.ProcessServiceFactoryImpl.obtainSchemaId(ProcessServiceFactoryImpl.java:200)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:75)
         at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:63)
         at fuego.papi.ProcessService.create(ProcessService.java:335)
         at v1.ServiceRequestApp.<init>(ServiceRequestApp.java:42)
         at v1.Starter.main(Starter.java:12)
    package v1;
    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 ServiceRequestApp {
         Properties config;
         ProcessService processService;
         String host = "";
         String username = "";
         String password = "";
         public ServiceRequestApp()
              //establish API
              config = new Properties();
    //specify system properties on local machine
              System.setProperty("fuego.j2ee.initialctx.file","C:\\bea10gR3\\config\\papiJndi.properties");
              System.setProperty("fuego.j2ee.initialctx.resource","papiJndi.properties");
              System.setProperty("fuego.j2ee.initialctx.url","file://C://bea10gR3//config//papiJndi.properties");
    //contents of papiJndi.properties
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://bpmdomain.comp.company.com:8001
    //specify directory info on the weblogic server
              config.setProperty(ProcessService.DIRECTORY_ID, "directory_ID");
              config.setProperty(ProcessService.INSTANCES_CACHE_SIZE, "10000");
              config.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "//home//weblogic//bpm103//conf//directory.xml");
              config.setProperty(ProcessService.WORKING_FOLDER, "//tmp");
              try {
                   ProcessService processService = ProcessService.create(config);
                   /////////////////// Establish a session ///////////////////
                   ProcessServiceSession session = processService.createSession(username,
                   password, host);
                   /////////////////// 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();
    }

    Please try to change the code for the below line
    config.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "//home//weblogic//bpm103//conf//directory.xml");
    to
    config.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "c://conf//directory.xml");
    Please get the directory.xml to your local machine and try.

Maybe you are looking for

  • My iPad2 is showing duplicates of the icons for apps on my home screen (where the app store and other default apps reside)??? How do I get back to normal?

    My iPad2 has suddenly begun displaying duplicates of the icons on my home screen all stacked atop one another in the upper left corner.  What can I do to return to normal operation?

  • Odd behaviour of "+" operator in numbers 09

    Hello there, One of the annoying "features" of numbers 08 was that a reference to an empty cell would always show up as a zero - this has been the topic of many posts in the past, and if Apple engineers don't know it by now, they must be living on Ma

  • What will NWBC be called?

    Following the announcement SAP NetWeaver Branding Simplification I guess there will be a name change for NWBC too. I'm guessing it will be called Business Client but what will be the acronym? It can't be BC since it is reserved for Basis Component as

  • Can i copy a folder from one ipad to another

    I created about 20 safari shortcuts and have them in a folder.  I'm wondering if it's possible to move that folder to another ipad.  Does anyone know anyway to do that? Or do I have to recreate each and every shortcut in safari again? Thanks Kat

  • System creation

    Hi Friends,     I am trying to create a system for ECC6.0 in portal. Where can i find the informations that i need to fill in for WAS, ITS, Connector etc.. while creating a system? Is there any transaction at the R/3 side where i can get these info l