Fuego.papi.exception.NoPermissionException how to catch it?

Good night, i'm having the following problem
**The Participant A logs into the workspace and hei have and activity in the workspace waiting to be executed but he has not clicked on the activity.*
** The participant B have the same rol than participant A so when he logs in, he has the same activity waiting to be exceuted and the link where he can click,*
At this point they are both logged in and then participant A clicks on the activity to initiate the execution, then comes participant B and click at the same activity to execute it but he gets a red screen and this exception:
La instancia '/AnálisisDeCréditoPreliminar#Default-1.0/8/0' de la actividad '/AnálisisDeCréditoPreliminar#Default-1.0/Interactive[RecibirRecaudos]' está asignada al participante 'pedro', o dicho participante la está ejecutando. Es posible que haya caducado su ejecución de '/AnálisisDeCréditoPreliminar#Default-1.0/Interactive[RecibirRecaudos]'. Si no es el caso, consulte cualquier otro detalle con el administrador.
fuego.papi.exception.NoPermissionException*: La instancia '/AnálisisDeCréditoPreliminar#Default-1.0/8/0' de la actividad '/AnálisisDeCréditoPreliminar#Default-1.0/Interactive[RecibirRecaudos]' está asignada al participante 'pedro', o dicho participante la está ejecutando. Es posible que haya caducado su ejecución de '/AnálisisDeCréditoPreliminar#Default-1.0/Interactive[RecibirRecaudos]'. Si no es el caso, consulte cualquier otro detalle con el administrador.
at fuego.server.execution.CheckInteractiveExecution.checkSelectedInstance(CheckInteractiveExecution.java:211)
at fuego.server.execution.CheckInteractiveExecution.check(CheckInteractiveExecution.java:108)
at fuego.server.execution.microactivity.InteractiveMicroActivity.checkInteractiveExecution(InteractiveMicroActivity.java:471)
at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:443)
at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
at fuego.server.AbstractProcessBean$48.execute(AbstractProcessBean.java:3184)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
at fuego.lang.JavaObject.invoke(JavaObject.java:227)
at fuego.component.Message.process(Message.java:585)
at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
at fuego.component.CustomExecution.next(CustomExecution.java:176)
at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:490)
at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98)
at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
the question is is there any way to capture the exception and show the participant a friendly message and not a red screen error?? i would appreciate any help you could give me

Hi Carlos,
Not as far as I know, it's just the way it works. If user B refreshes the workspace the instance shouldn't be there for selection.
An alternative would be to assign the instance directly to a user before it arrives in the interactive so that it doesn't appear in the other user's inbox.
Cheers

Similar Messages

  • OBPM : fuego.papi.exception.NoPermissionException

    Scenario:
    2.     Logged in as A
    3.     Create a new Instance (X) -
    4.     Logged out as Sales Agent.
    5.     Logged in as Another user B to whom OBPM assigned automatically.
    6.     Selected X in B's worklist.
    7.     Assigned back to A.
    8.     Technical Info: fuego.papi.exception.NoPermissionException
    10.     Stacktrace:
    ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.impl.CreditAssessmentTaskMgmtServiceImpl - OperationException while prepareActivityInstance : ReviewCreditAssessmentRequest , /SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5847/0
    com.bea.albpm.papiwebservice.OperationException: Instance '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5847/0', in activity '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' is assigned to participant 'ELMER', or he/she is executing it. It may be that your execution of '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' expired. Check with your administrator for more details if this is not the case.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2010-10-12 18:48:54,267 DEBUG [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.datasou
    rce.DataSourceUtils - Returning JDBC Connection to DataSource
    2010-10-12 18:48:54,267 DEBUG [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] transaction.
    jta.WebLogicJtaTransactionManager - Initiating transaction rollback
    2010-10-12 18:48:54,302 DEBUG [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.service.CreditAssessmentServiceSOAPHandler - SOAP Fault Message: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header/><S:Body><ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"><faultcode>ns2:Server</faultcode><faultstring>OperationException kicking Off Work flow Instance for credit Assessment Request Id : 2152</faultstring><detail><ns4:PolicyException xmlns:ns2="http://xmlschema.tmi.telus.com/xsd/Customer/Customer/CreditAssessmentRequestTypes_v1" xmlns:ns3="http://xmlschema.tmi.telus.com/xsd/Enterprise/BaseTypes/types/ping_v1" xmlns:ns4="http://xmlschema.tmi.telus.com/xsd/common/exceptions/Exceptions_v1_0" xmlns:ns5="http://xmlschema.tmi.telus.com/srv/CMO/OrderMgmt/CreditAssessmentServiceRequestResponse_v1"><ns4:messageId>fuego.papi.exception.NoPermissionException</ns4:messageId>
    <ns4:errorCode>CreditAssessmentSvcExceptionCodes.OBPM_EXCEPTION</ns4:errorCode>
    <ns4:errorMessage>fuego.papi.exception.NoPermissionException Technical Info: Instance '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5847/0', in activity
    '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' iis assigned to participant 'ELMER', or he/she is executing it.
    It may be that your execution of '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' expired. Check with your administrator for more details if this is not the case.
    Technical Info: fuego.papi.exception.NoPermissionException: Instance '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5847/0', in activity
    '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' is assigned to participant 'ELMER', or he/she is executing it.
    It may be that your execution of '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' expired. Check with your administrator for more details if this is not the case.
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_1030_WLStub.runTask(Unknown Source)
    at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.runTask(EJBProcessControlInterfaceWrapper.java:2201)
    at sun.reflect.GeneratedMethodAccessor1052.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
    at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116)
    at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
    What could be the reason for it?
    I got this info from website
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi_javadocs/fuego/papi/exception/NoPermissionException.html#ACTIVITY_NOT_ABORTABLE
    is that possible to catch this exception and display to user what is the reason and code ?
    like SELECTED_BY_OTHER ,LIMIT_RUN_INSTANCES ,etc.. I would like to show the code to the user.

    X is a new instance created by A and assigned to ELMER(B).
    This instance is never created and associated before.
    When B(Elmer) tries to assign back to A.It thorws error.This happends when I call prepareActivityInstance : m_papiWebService.activityPrepare( activityPrepare );
    Then why should I unassign ?
    how we find out that instance is assigned to somebody?
    how we unassign that instance?
    This happends when I call prepareActivityInstance : m_papiWebService.activityPrepare( activityPrepare );
    impl.CreditAssessmentTaskMgmtServiceImpl - Enter prepareActivityInstance
    2010-10-14 18:29:05,052 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.impl.CreditAssessmentTaskMgmtServiceImpl - Enter prepareActivityInstance
    2010-10-14 18:29:05,052 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.impl.CreditAssessmentTaskMgmtServiceImpl - Calling papiWebService: activityPrepare....ReviewCreditAssessmentRequest && /SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5855/0
    2010-10-14 18:29:05,052 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.impl.CreditAssessmentTaskMgmtServiceImpl - Calling papiWebService: activityPrepare....ReviewCreditAssessmentRequest && /SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5855/0
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - enter PAPIWebServiceSOAPHandler.handleRequest
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - enter PAPIWebServiceSOAPHandler.handleRequest
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] framework.ws.RpcClientHandler - handleRequest(): class com.telus.credit.taskmgmt.webservice.impl.papi.PAPIWebServiceSOAPHandler
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] framework.ws.RpcClientHandler - handleRequest(): class com.telus.credit.taskmgmt.webservice.impl.papi.PAPIWebServiceSOAPHandler
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - PAPIWebServiceSOAPHandler.soapHeadersToAttach
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - PAPIWebServiceSOAPHandler.soapHeadersToAttach
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - Exit PAPIWebServiceSOAPHandler.handleRequest
    2010-10-14 18:29:05,054 DEBUG [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] impl.papi.PAPIWebServiceSOAPHandler - Exit PAPIWebServiceSOAPHandler.handleRequest
    2010-10-14 18:29:06,633 ERROR [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] webservice.impl.CreditAssessmentTaskMgmtServiceImpl - OperationException while prepareActivityInstance : ReviewCreditAssessmentRequest , /SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5855/0
    com.bea.albpm.papiwebservice.OperationException: Instance '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/5855/0', in activity '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' is assigned to participant 'ELMER', or he/she is executing it. It may be that your execution of '/SDSE/CRDACreditAssessmentApplicationProcess#Default-1.0/Interactive[ReviewCreditAssessmentRequest]' expired. Check with your administrator for more details if this is not the case.
    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 com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeConstructor(ReflectionUtils.java:66)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeConstructor(ReflectionUtils.java:66)
    at com.bea.staxb.runtime.internal.CtorArgsMultiIntermediary.constructFinalValue(CtorArgsMultiIntermediary.java:81)
    at com.bea.staxb.runtime.internal.CtorArgsMultiIntermediary.getFinalValue(CtorArgsMultiIntermediary.java:60)
    at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:140)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:39)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:227)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:242)
    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
    at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:89)
    at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:182)
    at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:117)
    at weblogic.wsee.codec.soap11.SoapCodec.createExceptionFromFault(SoapCodec.java:624)
    at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:306)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:118)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:103)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:91)
    at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
    at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
    at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
    at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:339)
    at weblogic.wsee.jaxrpc.StubImpl.invoke(StubImpl.java:257)
    at $Proxy319.activityPrepare(Unknown Source)
    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 org.springframework.remoting.rmi.RmiClientInterceptorUtils.invokeRemoteMethod(RmiClientInterceptorUtils.java:108)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:617)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:584)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:562)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy135.activityPrepare(Unknown Source)
    at com.telus.credit.taskmgmt.webservice.impl.CreditAssessmentTaskMgmtServiceImpl.prepareActivityInstance(CreditAssessmentTaskMgmtServiceImpl.java:655)
    at com.telus.credit.assessment.service.activityactions.WorkflowDrivenAction.prepareActivity(WorkflowDrivenAction.java:132)
    at com.telus.credit.assessment.service.activityactions.WorkflowDrivenAction.executeAction(WorkflowDrivenAction.java:104)
    at com.telus.credit.assessment.webservice.impl.CreditAssessmentServiceImpl.performCreditAssessmentRequestActivities(CreditAssessmentServiceImpl.java:676)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy280.performCreditAssessmentRequestActivities(Unknown Source)
    at com.telus.credit.assessment.webservice.service.CreditAssessmentServicePortImpl.performCreditAssessmentRequestActivities(CreditAssessmentServicePortImpl.java:138)
    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 weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)
    at com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:265)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:373)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:524)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:255)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
    at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:208)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:310)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:223)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

  • Fuego.papi.exception.SharedParentInstanceBusyException

    The process has a split-join. Instance in one branch is in join. The interactive activity in another branch cannot be executed. In the Javadoc / PAPI, no enough information about this exception.
    I use BPM standalone 10.3.1 and studio 10.3.0
    Exception in thread "main" fuego.papi.exception.SharedParentInstanceBusyException: Task '0' in activity '/TestPAPI3Process#Default-1.0/Interactive[departmentmanager3]' cannot be executed over instance '/TestPAPI3Process#Default-1.0/9211/2'.
    Another instance copy is executing a task over shared instance.
         at fuego.server.execution.CheckInteractiveExecution.checkShareParentState(CheckInteractiveExecution.java:234)
         at fuego.server.execution.CheckInteractiveExecution.check(CheckInteractiveExecution.java:111)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.checkInteractiveExecution(InteractiveMicroActivity.java:471)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:443)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
         at fuego.server.AbstractProcessBean$48.execute(AbstractProcessBean.java:3198)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3202)
         at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
         at fuego.component.CustomExecution.next(CustomExecution.java:176)
         at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
         at fuego.papi.impl.ProcessInstanceOperation.prepareExternalActivity(ProcessInstanceOperation.java:697)
         at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1423)
         at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1417)
         at testpapiprocessjava.departmentmanager3.managerPrepareCommit(departmentmanager3.java:53)
         at testpapiprocessjava.departmentmanager3.main(departmentmanager3.java:29)
    Process exited with exit code 1.

    Sorrry - I don't think I was clear. Leave the checkbox checked so that it does generates copies (leave it like it was when you first added the Split activity).
    I could easily be wrong (frequently am) but I ran into a similar problem when I'd changed it from the original setting (make it unchecked) and suspected you might have collided into the same bug I did.
    Dan

  • Fuego.papi.exception.TaskFailedException: Task '0' in activity

    Hi,
    getting below exception in engine log in oracle 10g version. what could be the problem ?
    fuego.papi.exception.TaskFailedException: Task '0' in activity '/SystemCheck#Default-1.0/Interactive[BANKApproval]' for instance '/SystemCheck#Default-1.0/1059/0' could not be successfully executed. The task failed while executing method 'bankApproval'.
    at fuego.papi.exception.TaskFailedException.create(TaskFailedException.java:57)
    at fuego.server.AbstractProcessBean.createTaskFailedException(AbstractProcessBean.java:3594)
    at fuego.fengine.FEngineProcessBean.createTaskFailedException(FEngineProcessBean.java:398)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3207)
    at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:585)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    at fuego.component.CustomExecution.next(CustomExecution.java:176)
    at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:111)
    at fuego.papi.impl.ProcessInstanceOperation.runActivity(ProcessInstanceOperation.java:723)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityExecute(ProcessServiceSessionImpl.java:1564)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityExecute(ProcessServiceSessionImpl.java:1503)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityExecute(ProcessServiceSessionImpl.java:1524)
    at fuego.papi.impl.ProcessServiceSessionImpl.runActivity(ProcessServiceSessionImpl.java:1497)
    at com.lol.fuego.impl.service.workflow.ProcessHandlerImpl.executeActivity(ProcessHandlerImpl.java:300)
    at com.lolgroup.dogs.delegate.FuegoProcess.executeActivity(FuegoProcess.java:199)
    at com.lolgroup.dogs.delegate.WorkFlowAction.actionRelease(WorkFlowAction.java:32)
    at com.lolgroup.dogs.delegate.InputAction.action(InputAction.java:158)
    at com.lolgroup.dogs.delegate.ProcessFactoryImpl.process(ProcessFactoryImpl.java:163)
    at com.lolgroup.dogs.delegate.FrameworkManager.doLocalExecute(FrameworkManager.java:45)
    at com.lolgroup.dogs.delegate.FrameworkManager.executeAction(FrameworkManager.java:29)
    at com.lol.aml.cadd.workflow.service.impl.AbstractWorkflowServiceImpl.releaseInstance(AbstractWorkflowServiceImpl.java:1746)
    at com.lol.aml.cadd.webapp.workflow.WorkflowSubmitService.processWorkItemPackageForCoreCADDSubmit(WorkflowSubmitService.java:465)
    at com.lol.aml.cadd.webapp.workflow.WorkflowSubmitController.onSubmit(WorkflowSubmitController.java:1202)
    at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
    at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:250)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:819)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:754)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:399)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:364)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    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 org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    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.lang.ComponentExecutionException: The method 'CIL_bankApproval' from class 'goahead.SystemCheck.Default_1_0.Instance' could not be successfully executed.
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
    at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
    at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1284)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
    at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
    at fuego.server.AbstractProcessBean$46.execute(AbstractProcessBean.java:3198)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    Edited by: Brijesh Kumar Singh on Apr 25, 2012 10:01 PM

    Hi
    Is there any more stack below what you posted? sometimes there is more information that explains why the method could not be executed - maybe an underlying java error?
    Regards
    Kevin

  • BatchOperationException fuego.papi.exception.InstancesException:

    Hi,
    I want to abort the instances using PAPI filter code inside the BPM object method.
    I need's to abort the instances which is in another process and assigned to another participant.
    I am able to get the instances into instances array. After that I want to abort the instances but getting the below exception.
    BatchOperationException fuego.papi.exception.InstancesException: The batch operation could not be executed for all selected instances.
    Internal Exceptions:
    Below is my code :
    instances = processService.getInstancesByFilter(filter : instFilter);
    for (Fuego.Papi.Instance instance : instances){
    if(!instance.aborted)
    instance.unselect();
    instance.abort();
    processService.disconnectFrom();
    Thank you.

    A couple of observations:
    1) I don't think you need to bother with the select/unselect. This has to do with Workspace functionality.
    2) There are many reasons an instance may not be abortable. To test this, try adding a simple condition, checking that the process instance is running and at a known location, like sitting in an interactive. The engine may not be able to process an abort, if the instance is locked or in use by some other process. So you'll need to enhance your logic to check for these conditions and retry again later for instances you can't abort the first time.
    3) Make sure interactive activities have the abortable flag set. If you're using ProcessService by logging in with someones credentials, be sure the person has permissions to abort the instance.
    4) Keep in mind that your not writing code in a standalone app. Your process is running in an engine that needs to consider various things like process contention, permissions and multi-tasking. Creating a simple loop to abort instances may work better if you break it down a bit more into single atomic operations. To do this you would involve split-n logic to handle the abort of an individual instance. If the engine can't abort the instance, the automatic will error out and the engine will retry the abort again later on.
    HTH,
    Mark

  • Fuego.papi.exception.InstanceSelectDisableException

    Hi,
    We are experimenting in our production environment the issue describe below, after this issue, the instance does not work anymore.
    Thanks in advance.
    Instance '/SolicitudDeCredito#Default-8.0/2831/0' could not be selected in activity 'EntrevistarCompletarSolicitud'. Details:
    La instancia '/SolicitudDeCredito#Default-8.0/2831/0' no se puede seleccionar ni cancelar su selección.
    Detalle:La instancia está en una actividad automática o en otro tipo de actividad que no permite esta operación.
    fuego.papi.exception.InstanceSelectDisableException: La instancia '/SolicitudDeCredito#Default-8.0/2831/0' no se puede seleccionar ni cancelar su selección.
    Detalle:La instancia está en una actividad automática o en otro tipo de actividad que no permite esta operación.
         at fuego.server.execution.Select.unSelectInstaceByConditions(Select.java:327)
         at fuego.server.execution.Select.reassignInstanceToParticipant(Select.java:80)
         at fuego.server.AbstractProcessBean$73.execute(AbstractProcessBean.java:4431)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199)
         at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95)
         at fuego.server.AbstractProcessBean.reassignInstanceToParticipant(AbstractProcessBean.java:4442)
         at fuego.server.AbstractProcessBean.instancesReassignTo(AbstractProcessBean.java:2173)
         at fuego.ejbengine.EJBProcessControlAdapter.instancesReassignTo(EJBProcessControlAdapter.java:892)
         at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.instancesReassignTo(EJBProcessControl_1zamnl_EOImpl.java:3311)
         at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_1030_WLStub.instancesReassignTo(Unknown Source)
         at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.instancesReassignTo(EJBProcessControlInterfaceWrapper.java:1713)
         at sun.reflect.GeneratedMethodAccessor3100.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
         at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116)
         at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
         at $Proxy168.instancesReassignTo(Unknown Source)
         at fuego.papi.impl.ProcessInstanceOperation$7.execute(ProcessInstanceOperation.java:1370)
         at fuego.papi.impl.ProcessInstanceOperation.executeBatchOperation(ProcessInstanceOperation.java:1188)
         at fuego.papi.impl.ProcessInstanceOperation.instancesReassign(ProcessInstanceOperation.java:499)
         at fuego.papi.impl.ProcessServiceSessionImpl.instancesReassign(ProcessServiceSessionImpl.java:1108)
         at fuego.workspace.model.common.PapiBean.assign(PapiBean.java:2744)
         at fuego.workspace.model.view.AssignDialogBean.assign(AssignDialogBean.java:158)
         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 com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
         at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
         at com.bea.opencontrols.XPControl.invokeEventMethod(XPControl.java:546)
         at com.bea.opencontrols.form.ActiveButtonRenderer.broadcastAjaxEvent(ActiveButtonRenderer.java:34)
         at com.bea.opencontrols.form.ActiveButton.broadcastAjaxEvent(ActiveButton.java:32)
         at com.bea.opencontrols.faces.JSFUtility.broadcastAjaxEvent(JSFUtility.java:252)
         at com.bea.opencontrols.XPControl.broadcast(XPControl.java:806)
         at com.bea.opencontrols.XPCommand.broadcast(XPCommand.java:185)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at fuego.workspace.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:132)
         at fuego.workspace.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:60)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         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 fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         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)

    Hi,
    Adding to it.
    This problem arises when the instance is accessed by a user who is not the current owner of the instance(As Brijesh said.)
    Even if you restart the workspace the problem will arise again as the instance is assigned to the same user.
    Only one user can work on a particular instance at one given moment of time.
    As to solve this problem, the user can reassign the instance to the another user who wants to access it.
    Hope it helps...
    -- ricky

  • How to get creation date from Fuego.Papi.Instance

    I got all process instances from papi. The instances are Fuego.Papi.Instance.
    I also need the creation date of the process instance, but I cannot find it in Fuego.Papi.Instance.
    How to get the creation date from Fuego.Papi.Instance?
    Thanks,

    Yes, I knew Fuego.Lib.ProcessInstance is able to get creation date.
    But my code is not in the that process. I am using papi to get the process instance which returns me Fuego.Papi.Instance. Is there a way to get Fuego.Lib.ProcessInstance from Fuego.Papi.Instance?
    My code is like this
    businessProcess = ProcessService.getProcess(process : "processName");
    instances = businessProcess.getInstancesByFilter(filter : instFilter);
    //then loop each instance and I need the creation date

  • Getting fuego.web.exception.WapiInstancesException

    Using Oracle BPM 10.3 MP2, WL Version Build # 100486
    There are 2 participants userA and userB with same roles, but with only change as - userA has Category set to 5 and userB has Category set to 9
    An instance instanceX is assigned to userA, In workspace we see both Participant and Task Participant as - userA.,
    now when userB is trying to unassign / reassign that particular instance instanceX , we are getting exception in workspace as below:
    [<W> 0917 06:12:24.106] Main (<0> [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'): Error workspace-1284780669877
    [     (cont)     ] Main: Could not perform the operation over the instance/s.
    [     (cont)     ] Main: Caused by: The batch operation could not be executed for all selected instances.
    [     (cont)     ] Main: Internal Exceptions:
    [     (cont)     ] Main: >> /InstanceX#Default-1.0/1718154/0:
    [     (cont)     ] Main: [no message code]
    [     (cont)     ] Main: fuego.web.exception.WapiInstancesException: Could not perform the operation over the instance/s.
    [     (cont)     ] Main: at fuego.workspace.model.common.PapiBean.unselectInstances(PapiBean.java:1247)
    [     (cont)     ] Main: at fuego.workspace.model.view.InstanceOperationType$7.execute(InstanceOperationType.java:98)
    [     (cont)     ] Main: at fuego.workspace.model.view.ViewTableInstanceBean.doUnSelect(ViewTableInstanceBean.java:1043)
    [     (cont)     ] Main: at fuego.workspace.model.view.TreeMenuNodeType$6.doIt(TreeMenuNodeType.java:52)
    [     (cont)     ] Main: at fuego.workspace.model.view.ViewTableInstanceBean.doSelectActionNode(ViewTableInstanceBean.java:288)
    [     (cont)     ] Main: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [     (cont)     ] Main: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [     (cont)     ] Main: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [     (cont)     ] Main: at java.lang.reflect.Method.invoke(Method.java:597)
    [     (cont)     ] Main: at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    [     (cont)     ] Main: at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    [     (cont)     ] Main: at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
    [     (cont)     ] Main: at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
    [     (cont)     ] Main: at com.bea.opencontrols.XPControl.invokeEventMethod(XPControl.java:546)
    [     (cont)     ] Main: at com.bea.opencontrols.menu.TreeMenuRenderer.broadcastAjaxEvent(TreeMenuRenderer.java:52)
    [     (cont)     ] Main: at com.bea.opencontrols.menu.TreeMenu.broadcastAjaxEvent(TreeMenu.java:108)
    [     (cont)     ] Main: at com.bea.opencontrols.faces.JSFUtility.broadcastAjaxEvent(JSFUtility.java:252)
    [     (cont)     ] Main: at com.bea.opencontrols.XPControl.broadcast(XPControl.java:806)
    [     (cont)     ] Main: at com.bea.opencontrols.data.XPDataHierarchy.broadcast(XPDataHierarchy.java:113)
    [     (cont)     ] Main: at com.bea.opencontrols.data.XPDataHierarchy.broadcast(XPDataHierarchy.java:107)
    [     (cont)     ] Main: at com.bea.opencontrols.data.XPDataList.broadcast(XPDataList.java:608)
    [     (cont)     ] Main: at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    [     (cont)     ] Main: at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    [     (cont)     ] Main: at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    [     (cont)     ] Main: at fuego.workspace.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:132)
    [     (cont)     ] Main: at fuego.workspace.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:60)
    [     (cont)     ] Main: at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    [     (cont)     ] Main: at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    [     (cont)     ] Main: at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    [     (cont)     ] Main: at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    [     (cont)     ] Main: at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    [     (cont)     ] Main: at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    [     (cont)     ] Main: at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
    [     (cont)     ] Main: at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    [     (cont)     ] Main: at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    [     (cont)     ] Main: at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
    [     (cont)     ] Main: at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    [     (cont)     ] Main: at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    [     (cont)     ] Main: at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
    [     (cont)     ] Main: at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [     (cont)     ] Main: at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    [     (cont)     ] Main: at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    [     (cont)     ] Main: at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    [     (cont)     ] Main: at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    [     (cont)     ] Main: at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [     (cont)     ] Main: at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [     (cont)     ] Main: Caused by: fuego.papi.exception.InstancesException: The batch operation could not be executed for all selected instances.
    [     (cont)     ] Main: Internal Exceptions:
    [     (cont)     ] Main: >> /InstanceX#Default-1.0/1718154/0:
    [     (cont)     ] Main: [no message code]
    [     (cont)     ] Main: at fuego.papi.impl.OperationResult.getExceptionObject(OperationResult.java:161)
    [     (cont)     ] Main: at fuego.papi.impl.OperationResult.getException(OperationResult.java:76)
    [     (cont)     ] Main: at fuego.papi.impl.ProcessInstanceOperation.executeBatchOperation(ProcessInstanceOperation.java:1205)
    [     (cont)     ] Main: at fuego.papi.impl.ProcessInstanceOperation.instancesUnselect(ProcessInstanceOperation.java:650)
    [     (cont)     ] Main: at fuego.papi.impl.ProcessServiceSessionImpl.instancesUnselect(ProcessServiceSessionImpl.java:1348)
    [     (cont)     ] Main: at fuego.workspace.model.common.PapiBean.unselectInstances(PapiBean.java:1244)
    [     (cont)     ] Main: ... 45 more
    [     (cont)     ] Main:
    Any Suggestions ?
    Edited by: Sreekant on Sep 17, 2010 4:46 PM

    Hi,
    i have got and resolve this kind of exception for my application.
    what are the scenerios you are gettting this?
    Check you Studio/Enterprise version , jsp page  and the code just before to move interactive activity
    Or
    if you can provide to me i will inform you .
    Thanks,
    Brijesh Kumar Singh

  • How to catch exception throw bc4j

    Dear Forum
    I am user of JDeveloper Swing application.
    while exception throw from bc4j some particular
    type error such as (oracle.jbo.DMLException) JBO-26041
    message display.
    i want to catch error no 26041 inorder to display own
    messageBox.
    There is two methods
    1-:
    i used messageBundle class i overite message string but unable to change dialogBox,i want to use own dialog.
    2-:
    And i fund ,DML exception message return from JUErrorHandlerDlg class.So using this subclass how
    to catch and throw own message.
    Plase send me some code to write sub class of JUErrorHandlerDlg.

    You want this method System to throw an exception if the String[] is empty?
    public void system( ObjectOutputStream output, String cmd []  ) {
       if (cmd.length == 0)
          throw new IllegalArgumentException("Hey! This is an empty array!");
    //...rest of your method
    }You can choose for yourself which exception type is most appropriate. You can in theory always use the base Exception but is not very specific nor recommended. In this case, I think an existing unchecked exception such as IllegalArgumentException would be the most appropriate.

  • Help Me, How to catch exception thrown from ejbStore

    Hi,
    I am working on application running on Iplanet Application Server 4.0. Problem is the application exception thrown from the ejbStore don't reach the calling servlet, calling servlet receive TransactionRollback exception which is system exception. But there is no sign of my application exception thrown from ejbStore. Can anybody tell me how I can get my ApplicationException thrown from ejbStore in my calling servlet.
    I am calling entity beans set method in servlet and in entity bean ejbStore method I am throwing Application exception.
    in entity bean
    public void ejbStore() throws MyException
    if(true) throw new MyException();
    in servlet
    try {
    MyEntityHome home = .......
    MyEntityRemote remote = home.findBy.....
    remote.setMyValue(MyValue value); //Transaction required Container managed
    }catch(MyException e) {
    e.printStackTrace(); // Not cahcing My Exception
    }catch(Exception e) {
    e.printStackTrace(); //catching TransactionRolledBackException
    Thanks
    Shakti

    Hi Ravi
                                    Try this
                                                try
                    Object retMsgs = output.get(bapiretrunmsgobject);
                      if(result != null )
    IrecordSet rmsg = (IrecordSet) result
                   catch(Exception ex)
                        printException(ex, "Error getting function result");
    Lemme know for any further questions.
    Regards
    Praveen

  • How to catch the user defined  exception in application service

    Hi All,
    How to catch the user defined  exception in application service  when it is throwed by the external service..
    Regards,
    Thirumurugan.

    Hi,
        Thanks for your reply,
            Actually I  am calling validate Login method of External service from the application service. When the login fails, my external service will throw user defined Exception.I want to catch the user defined Exception.
        But in the application service , validate Login method can catch  only Invocation Exception and Engine Exception.
       These two exception are present in the Application service remote interface.
      public com.sap.comptest.extsrv.accrjavawsvi__document.output.
    Ns1_validateLoginResponse validateLogin(com.sap.comptest.extsrv.accrjavawsvi__document.input.Ns1_validateLogin input) throws com.sap.caf.mp.base.exception.InvocationException, com.sap.caf.mp.base.exception.EngineException;
    User defined exception is not present there. When i include the webservice as external service in CAF, it suppossed to generate the java file for the custom exception of validate Login method and this generated file should be included in the application service remote interface..
    public com.sap.comptest.extsrv.accrjavawsvi__document.output.
    Ns1_validateLoginResponse validateLogin(com.sap.comptest.extsrv.accrjavawsvi__document.input.Ns1_validateLogin input) throws com.sap.caf.mp.base.exception.InvocationException, com.sap.caf.mp.base.exception.EngineException,
    (generated file name of user defined Excpetion.
      Then only  validate login method  of application service can catch  the user defined Exception which is thrown by the  external service.
    regards,
    Thirumurugan.p

  • How to catch exception in JSP????

    how to catch exception in JSP?
    I use JDeveloper 3.1
    I use connection with database .
    When I insert record in database
    when have duplicate of primary key
    how to catch this exception and
    back to previous page?
    I trying with folowing:
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <% try {
    RowEditor.setUseJS(true);
    RowEditor.initialize(pageContext, "package2_Package2Module.Drzavi1View");
    RowEditor.setSubmitText("Save");
    RowEditor.setTargetUrl("Drzavi1View_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.render();
    catch(Exception e) {
    %>
    <script>
    alert("primary key duplication");
    history.back();
    </script>
    <% } %>
    but i't not working
    please help me

    i catch exceptions as you do, i don't have any problem...
    are you throwing the exception from your bean?
    actually i don't catch an Exception, but an SQLException...
    but it works... here is my code...
         try
    myclass.addElement(); // this is an insert into Oracle
    catch( DataBaseFailException e ) /// an exception that i throws inside after i receive an SQLException
              session.setAttribute("gMessage","e.getMessage()); // error code

  • ABAP Proxy how to catch exception send by PI Interface ?

    Dear XI Expert,
    I have Synchronous ABAP Proxy interface with exception. How to cacth the exception generated by PI ?
    The standarc exception handler is :
    CATCH cx_ai_system_fault INTO lo_system_fault.
            WRITE:/ 'System fault:'.
            WRITE:/ lo_system_fault->errortext.
            WRITE:  'While trying to update monitoring status in PI'.
            RETURN.
    CATCH cx_ai_application_fault .
            WRITE:/ 'Application fault encountered. While trying to update monitoring status in PI'.
            RETURN.
    i have another 2 additional exception generated by the sender :
    FM_JPROXY_READFILE_FILENOTFOUND
    FM_JPROXY_READFILE_IO_ERROR
    Please advise how to add this to to my exception handling.
    Thank You and Best Regards
    Fernand

    it does not seem to be a cx_ exception but try to catch the root CX_ROOT and see if it caught

  • How to catch Jbo-DML exception

    Dear Forum
    while exception throw from bc4j some particular
    type error such as (oracle.jbo.DMLException) JBO-26041
    message display.
    i want to catch error no 26041 inorder to display own
    messageBox.
    There is two methods
    1-:
    i used messageBundle class i overite message string but unable to customize size of dialogbox.
    2-:
    And i fund ,DML exception message return from JUErrorHandlerDlg class.So using this subclass how
    to catch and throw own message.
    Plase send me some code to write sub class of JUErrorHandlerDlg.

    Hello
    I also want to catch Exception if u r now able then plz send me the procedure
    [email protected]
    Thanks and Regards
    Prashant

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

Maybe you are looking for