cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Workflow hanging at set state robot

sad
3-Visitor
3-Visitor

Workflow hanging at set state robot

For particular workflow processes, it is hanging at the Set State Robot, and throwing the following error. I could not find any root cause for this issue.

A nested transaction cannot be started when a rollback is in progress. The following is the rollback stacktrace.
ROLLBACK: java.lang.Thread.getStackTraceImpl(Native Method)
ROLLBACK: java.lang.Thread.getStackTrace(Thread.java:1042)
ROLLBACK: wt.pom.TransactionManager.rollbackTransaction(TransactionManager.java:624)
ROLLBACK: wt.pom.BasicTransactionMonitor.rollbackTransaction(BasicTransactionMonitor.java:77)
ROLLBACK: wt.pom.PersistentObjectManager.rollbackTransaction(PersistentObjectManager.java:447)
ROLLBACK: wt.pom.Transaction.rollback(Transaction.java:566)
ROLLBACK: wt.workflow.engine.StandardWfEngineService.synchRobotToEvent(StandardWfEngineService.java:8959)
ROLLBACK: wt.workflow.engine.StandardWfEngineService$SynchEventListener.notifyVetoableEvent(StandardWfEngineService.java:429)
ROLLBACK: wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:320)
ROLLBACK: wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:229)
ROLLBACK: wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:286)
ROLLBACK: wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:215)
ROLLBACK: wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:406)
ROLLBACK: wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:302)
ROLLBACK: wt.lifecycle.StandardLifeCycleService.dispatchVetoableEvent(StandardLifeCycleService.java:571)
ROLLBACK: wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:9981)
ROLLBACK: wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:7449)
ROLLBACK: wt.lifecycle.StandardLifeCycleService.setState(StandardLifeCycleService.java:7256)
ROLLBACK: wt.lifecycle.StandardLifeCycleService.setState(StandardLifeCycleService.java:7587)

If somebody throws some light on this issue, will be very much appreciated.

Thanks

Suresh

Attributes

1 ACCEPTED SOLUTION

Accepted Solutions

Actually this issue was started appearing in all workflows for the past two days. Clearing queue also failed.

Then as per the PTC suggestion, we cleared all the tomcat cache & task cache and retstarted method server. The issue is resolved now.

View solution in original post

7 REPLIES 7

MikeLockwood
22-Sapphire I
(To:sad)

Not a very helpful error message - like most...

Did you check the obvious - the state being set to is not in the current lifecycle? Maybe made an iteration to the lifecycle since this object was created?

Actually this issue was started appearing in all workflows for the past two days. Clearing queue also failed.

Then as per the PTC suggestion, we cleared all the tomcat cache & task cache and retstarted method server. The issue is resolved now.

tanose
1-Newbie
(To:sad)

Hello AD,

Where is the windchill Task cache? I am having this issue in our windchill system so often?

Thanks

Tem

sad
3-Visitor
3-Visitor
(To:tanose)

Hello Tem,

Tomcat Cache folder location: <Windchill>\Tomcat\Instances

InfoEngine Task Cache folder location: <Windchill>\tasks\codebase\com\infoengine\compiledTasks

After deleting these cache locations, restart method server.

Thanks & Regards

Suresh Babu AD

akumar-2
1-Newbie
(To:sad)

Hi ,

I am facing similar Rollback exception . From workflow I am calling one method to create Document Object. When method fails to create Document due to Number is small then I am returning Boolean to workflow. But when I looked into logs , I found the Rollback exceptions printed , In this case workflow status shows Running


Does anybody have idea how I can solve this issue?

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: (wt.pom.pomResource/9) wt.pom.PersistenceException: A nested transaction cannot be started when a rollback is in progress. The following is the rollback stacktrace.

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: java.lang.Thread.getStackTrace(Thread.java:1436)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.pom.TransactionManager.rollbackTransaction(TransactionManager.java:530)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.pom.PersistentObjectManager.rollbackTransaction(PersistentObjectManager.java:456)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.pom.Transaction.rollback(Transaction.java:495)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:3490)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:1167)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.fc.StandardPersistenceManager.save(StandardPersistenceManager.java:1107)

Fri 3/27/15 11:14:23: WfPropagationQueue.PollingThread: ROLLBACK: wt.fc.PersistenceManagerFwd.save(PersistenceManagerFwd.java:737)

tanvisharma13
5-Regular Member
(To:akumar-2)

I am also a similiar error in CA workflow, during Fast Track approval process. Once the Approval Task is completed  then workflow is getting struck at RESOLVED set state robot.  

MS logs show the below error:

Nested exception is: wt.util.WTException
2020-06-17 01:30:38,319 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.invokeTask(StandardGenericEventService.java:655)
2020-06-17 01:30:38,319 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.retrieveTaskAndInvoke(StandardGenericEventService.java:504)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.processGenericEvent(StandardGenericEventService.java:471)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService$GenericEventListener.notifyVetoableEvent(StandardGenericEventService.java:695)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:312)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:250)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:286)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:215)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:406)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:302)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.dispatchVetoableEvent(StandardLifeCycleService.java:576)
2020-06-17 01:30:38,320 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:10404)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:7715)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.setState(StandardLifeCycleService.java:7522)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.setLifeCycleState(StandardLifeCycleService.java:2748)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.lang.reflect.Method.invoke(Method.java:606)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.sun.proxy.$Proxy93.setLifeCycleState(Unknown Source)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.infoengine.compiledTasks.file.appl.ptc.Windchill_10$2e2.Windchill.tasks.com.ptc.ssp.wt.events.lifecycleserviceevent_changetask$2exml.invoke(lifecycleserviceevent_changetask$2exml.java:184)
2020-06-17 01:30:38,321 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.infoengine.SAK.Task.invoke(Task.java:1806)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.infoengine.SAK.Task.invoke(Task.java:1714)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.invokeTask(StandardGenericEventService.java:646)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.retrieveTaskAndInvoke(StandardGenericEventService.java:510)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService.processGenericEvent(StandardGenericEventService.java:471)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at com.ptc.ssp.wt.events.StandardGenericEventService$GenericEventListener.notifyVetoableEvent(StandardGenericEventService.java:695)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:312)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:250)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:286)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:215)
2020-06-17 01:30:38,322 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:406)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:302)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.dispatchVetoableEvent(StandardLifeCycleService.java:576)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:10404)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.doSetState(StandardLifeCycleService.java:7715)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.setState(StandardLifeCycleService.java:7522)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.lifecycle.StandardLifeCycleService.setState(StandardLifeCycleService.java:7853)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-06-17 01:30:38,323 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.lang.reflect.Method.invoke(Method.java:606)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.robots.WfInternalRequest.invokeTargetMethod(WfInternalRequest.java:374)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.robots.WfInternalRequest.invokeMethod(WfInternalRequest.java:329)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.robots.WfInternalRequest.processRequest(WfInternalRequest.java:109)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.robots.WfInternalMethod.invoke(WfInternalMethod.java:138)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.robots.WfInternalMethod.run(WfInternalMethod.java:106)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.workflow.engine.StandardWfEngineService.runRobot(StandardWfEngineService.java:1185)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-06-17 01:30:38,324 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.lang.reflect.Method.invoke(Method.java:606)
2020-06-17 01:30:38,325 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.queue.QueueEntry.execute(QueueEntry.java:224)
2020-06-17 01:30:38,325 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at wt.queue.QueueRunnable.run(QueueRunnable.java:141)
2020-06-17 01:30:38,325 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2020-06-17 01:30:38,325 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
2020-06-17 01:30:38,325 INFO [WfUserWorkQueue.PoolQueueThread-8] wt.system.err wcadmin - at java.lang.Thread.run(Thread.java:745)
2020-06-17 01:30:38,403 ERROR [WfUserWorkQueue.PoolQueueThread-8] root Administrator - Queue entry number: 23674764

Top Tags