Topic
  • 4 replies
  • Latest Post - ‏2012-12-24T10:17:56Z by SystemAdmin
SystemAdmin
SystemAdmin
3556 Posts

Pinned topic Solved: How to delete a zombie process instance.

‏2008-04-11T07:14:23Z |
Hi, I describe a solution of how to kill/undeploy a process instance/application that cannot be undeployed with regular ways.

We deploy and use an Enterprise Application with a number of process templates.
After a few changes, we try to redeploy the application through WID without uninstall it. The Process Server and the WID are not in the same machine. During the deployment, a process instance of this application was running. This instance in now in 'Terminating' state and we cannot change its state. So, we cannot redeploy/undeploy our application because of this process instance.

We cannot do any of the existing actions ('Compensate', 'Terminate', 'Delete', 'Suspend', 'Resume' or 'Restart') from the Websphere BPC Explorer. At the bottom of this email, I include part of the exception trace of these actions.

In order to delete this process instance, we have done many times the following actions without to solve the problem:
  • restart server
  • undeploy application (unsuccessfully)
  • redeploy application through WID (unsuccessfully)
  • redeploy application through web console (unsuccessfully)
  • stop application (unsuccessfully)
SOLUTION:
./bin/wsadmin.sh -lang jacl -f ./ProcessChoreographer/admin/bpcTemplates.jacl -uninstall MyModuleApp -force

Regards,
Adrianos.
+++++ AIX version +++++++
  1. uname -M
IBM,9131-52A
  1. uname -a
AIX aixtname 3 5 00057862D700
  1. oslevel -r
5300-05
+++++ Process Server +++++
Name IBM WebSphere Application Server - ND
Version 6.0.2.23

+++++ Exceptions Stack Trace (a part of these) +++++

Terminate:
com.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'forceTerminate()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
Compensate:
com.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'forceTerminate()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
at
com.ibm.bpe.engine.BpelRequestChecker.validRequest(BpelRequestChecker.java:145)
at
com.ibm.bpe.engine.BpelEngineCore.cancelProcessInstance(BpelEngineCore.java:3179)

Delete:
com.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'delete()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
at
com.ibm.bpe.engine.BpelRequestChecker.validRequest(BpelRequestChecker.java:145)

Suspend:
om.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'suspended()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
at
com.ibm.bpe.engine.BpelRequestChecker.validRequest(BpelRequestChecker.java:145)
at
com.ibm.bpe.engine.BpelEngineCore.suspendProcessInstance(BpelEngineCore.java:3244)
at com.ibm.bpe.engine.BpelEngine.suspend(BpelEngine.java:1482)

Resume:
com.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'resume()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
at
com.ibm.bpe.engine.BpelRequestChecker.validRequest(BpelRequestChecker.java:145)
at
com.ibm.bpe.engine.BpelEngineCore.resumeProcessInstance(BpelEngineCore.java:3298)
at com.ibm.bpe.engine.BpelEngine.resume(BpelEngine.java:1547)
at
com.ibm.bpe.framework.BusinessProcessServiceImpl.resume(BusinessProcessServiceImpl.java:14153)

Restart:
com.ibm.bpe.api.EngineProcessWrongStateException: CWWBE0126E: The process
instance state 'Terminating' of process 'MyProcess' does not
allow to perform the requested action 'restart()'.
at
com.ibm.bpe.engine.BpelRequestChecker.createProcessWrongStateException(BpelRequestChecker.java:519)
at
com.ibm.bpe.engine.BpelRequestChecker.validRequest(BpelRequestChecker.java:145)
at
com.ibm.bpe.engine.BpelEngineCore.restartProcessInstance(BpelEngineCore.java:3360)
at com.ibm.bpe.engine.BpelEngine.restart(BpelEngine.java:1619)
  • IgnacioS
    IgnacioS
    1 Post

    Re: Solved: How to delete a zombie process instance.

    ‏2008-06-02T14:01:24Z  
    Hi,

    I have the same problem, but it is WPS 6.0.2.2 (not WID environment). Have anyone found a solution?
  • SystemAdmin
    SystemAdmin
    3556 Posts

    Re: Solved: How to delete a zombie process instance.

    ‏2012-09-27T05:23:33Z  
    • IgnacioS
    • ‏2008-06-02T14:01:24Z
    Hi,

    I have the same problem, but it is WPS 6.0.2.2 (not WID environment). Have anyone found a solution?
    Has Anybody resolved this problem/ found some solution for this problem.
    I am also getting this issue with WPS 7.0.0.4

    Deepak
  • mmalc
    mmalc
    231 Posts

    Re: Solved: How to delete a zombie process instance.

    ‏2012-10-07T06:27:39Z  
    Has Anybody resolved this problem/ found some solution for this problem.
    I am also getting this issue with WPS 7.0.0.4

    Deepak
    Did you try the solution the person in the first post gave?

    SOLUTION:
    ./bin/wsadmin.sh -lang jacl -f ./ProcessChoreographer/admin/bpcTemplates.jacl -uninstall MyModuleApp -force

    Did that not work?
  • SystemAdmin
    SystemAdmin
    3556 Posts

    Re: Solved: How to delete a zombie process instance.

    ‏2012-12-24T10:17:56Z  
    • mmalc
    • ‏2012-10-07T06:27:39Z
    Did you try the solution the person in the first post gave?

    SOLUTION:
    ./bin/wsadmin.sh -lang jacl -f ./ProcessChoreographer/admin/bpcTemplates.jacl -uninstall MyModuleApp -force

    Did that not work?
    In my case when i try to use "wsadmin.sh -f bpcTemplates.jacl -uninstall ApplicationNameApp -force" i have an error:
    Appplication 'ApplicationNameApp' is deployed on cluster 'wps.AppTarget'.
    Stopping 'ProcessTemplate1', valid from Mon 2012-12-17 18:06:41.000
    Stopping 'ProcessTemplate2', valid from Mon 2012-12-17 18:06:41.000
    No task templates found in 'ApplicationNameApp'.
    ADMA5017I: Uninstallation of ApplicationNameApp started.
    ADMA5011I: The cleanup of the temp directory for application ApplicationNameApp is complete.
    ADMA5107E: The application ApplicationNameApp cannot be uninstalled.
    Error stopping and force uninstalling ApplicationNameApp: com.ibm.ws.scripting.ScriptingException: WASX7133E: Application uninstall of ApplicationNameApp failed: see previous messages for details..