我们采用webservice的方式去自启动工作流程,有发现时常会出现大量的时间戳不一致的异常,一天的时间能产生10万条以上的数据,这两个时间戳是怎么产生的,如何规避这种问题?谢谢
boId:5kEAAAd1X2Nj0wED
assignIda0b83383-bd11-4e80-9b5a-330d173c5483WFWKITEM
errorStackTrace------
Caused by: com.kingdee.bos.workflow.WfException :
null
Caused exception message is: 流程运行环境记录的时间戳(-677296295)与流程实例的时间戳(1855574892)不一致,请清除所有缓存重试。 processId:6ddda84c-3ac2-46d1-a334-c6d59c86ed1bWFPCINST
com.kingdee.bos.workflow.engine.core.InconsistentTimestampError: 流程运行环境记录的时间戳(-677296295)与流程实例的时间戳(1855574892)不一致,请清除所有缓存重试。 processId:6ddda84c-3ac2-46d1-a334-c6d59c86ed1bWFPCINST
at com.kingdee.bos.workflow.enactment.ProcessContext.checkTimestamp(ProcessContext.java:154)
at com.kingdee.bos.workflow.enactment.ProcessContext.loadFlowContext(ProcessContext.java:135)
at com.kingdee.bos.workflow.enactment.WfAssignment.pvmSignalActivity(WfAssignment.java:895)
at com.kingdee.bos.workflow.enactment.WfAssignment.complete(WfAssignment.java:739)
at com.kingdee.bos.workflow.enactment.WfEngine.executeAssignment(WfEngine.java:3278)
at com.kingdee.bos.workflow.enactment.WfEngine.acceptEvent(WfEngine.java:1183)
at com.kingdee.bos.workflow.enactment.WfEngine.acceptEventSupport(WfEngine.java:842)
at com.kingdee.bos.workflow.engine.core.thread.WfBizEventHandler.execute(WfBizEventHandler.java:153)
at com.kingdee.bos.workflow.engine.core.thread.WfJobHandler.handler(WfJobHandler.java:182)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.workflow.util.InvocationExecutor.execute(InvocationExecutor.java:28)
at com.kingdee.bos.workflow.transaction.WfTxInvoker.invoke(WfTxInvoker.java:33)
at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.workflow.metas.InvokeMethodDelegateControllerBean.invoke(InvokeMethodDelegateControllerBean.java:77)
at com.kingdee.bos.workflow.metas.InvokeMethodDelegateControllerBean._invokeRequired(InvokeMethodDelegateControllerBean.java:31)
at com.kingdee.bos.workflow.metas.AbstractInvokeMethodDelegateControllerBean.invokeRequired(AbstractInvokeMethodDelegateControllerBean.java:46)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:57)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy40.invokeRequired(Unknown Source)
at com.kingdee.bos.workflow.metas.InvokeMethodDelegate.invokeRequired(InvokeMethodDelegate.java:61)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy39.invokeRequired(Unknown Source)
at com.kingdee.bos.workflow.transaction.WfTxHelper.invokeRequired(WfTxHelper.java:83)
at com.kingdee.bos.workflow.engine.core.thread.WfJobHandler.invoke(WfJobHandler.java:72)
at com.kingdee.bos.workflow.engine.core.thread.WfJobHandler.invoke(WfJobHandler.java:170)
at com.kingdee.bos.workflow.engine.core.thread.WfJobHandler.execute(WfJobHandler.java:95)
at com.kingdee.bos.service.job.core.ThreadWorker.execute(ThreadWorker.java:161)
at com.kingdee.bos.service.job.core.ThreadWorker.run(ThreadWorker.java:106)
at java.lang.Thread.run(Thread.java:811)
------
推荐阅读