Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
In windchill 10.2 M030-CPS 09, workflow hangs on with error(For instance: when activity A finish, activity B not start), and will go on after reset windchill server. No error in WfPropagationQueue, WfUserWorkQueue, WfUserWorkQueue
Error Info:
Log1
2017-01-16 08:15:07,355 ERROR [WfPropagationQueue.PoolQueueThread-1808] wt.queue.PoolQueue.WfPropagationQueue Administrator - Queue Entry 367019: Exception occured
(wt.access.accessResource/19) wt.access.NotAuthorizedException: 注意: 受保护的操作。您没有执行该操作的必要授权。如果您认为不应当收到这一消息,请联系管理员。
at wt.queue.QueueMonitorHelper.queueCheckAccess(QueueMonitorHelper.java:466)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:376)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:326)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:321)
at wt.queue.QueueRunnable.suspended(QueueRunnable.java:111)
at wt.queue.QueueRunnable.run(QueueRunnable.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2017-01-16 08:15:07,355 ERROR [WfPropagationQueue.PoolQueue] wt.queue.PoolQueue.WfPropagationQueue -
(wt.access.accessResource/19) wt.access.NotAuthorizedException: 注意: 受保护的操作。您没有执行该操作的必要授权。如果您认为不应当收到这一消息,请联系管理员。
at wt.queue.QueueMonitorHelper.queueCheckAccess(QueueMonitorHelper.java:466)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:376)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:326)
at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:321)
at wt.queue.RandomAccessQueueThread.suspended(RandomAccessQueueThread.java:519)
at wt.queue.RandomAccessQueueThread.execEntries(RandomAccessQueueThread.java:465)
at wt.queue.RandomAccessQueueThread.run(RandomAccessQueueThread.java:361)
Log2
2017-01-16 08:15:20,981 ERROR [ajp-bio-8011-exec-94] wt.method.client.httpgw huweijie - MethodRequestHandler Exception: An exception occured while processing the request.
at java.lang.Class.getMethod(Class.java:1670)
at wt.httpgw.HTTPServer.processRequest(HTTPServer.java:321)
at wt.httpgw.MethodRequestHandler.handleRequest(MethodRequestHandler.java:58)
at wt.httpgw.HTTPGatewayServlet.serviceWithoutFilters(HTTPGatewayServlet.java:336)
at wt.httpgw.HTTPAuthGatewayServlet.serviceWithoutFilters(HTTPAuthGatewayServlet.java:86)
at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:90)
at wt.session.SessionContextDestroyer.doFilterInternal(SessionContextDestroyer.java:122)
at wt.session.SessionContextDestroyer.doFilter(SessionContextDestroyer.java:162)
at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:77)
at wt.httpgw.HTTPGatewayServlet.service(HTTPGatewayServlet.java:235)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.ptc.jws.servlet.filter.WsdlServletFilter.doFilter(WsdlServletFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.httpgw.filter.WTContextBeanFilter.doWithWtContextBeanHandler(WTContextBeanFilter.java:104)
at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:294)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1652)
at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:65)
at java.lang.Thread.run(Thread.java:745)
at org.apache.tomcat.util.threads.TaskThread.run(TaskThread.java:103)
What I need:
1.how to find workflow by queue entry num?
2.how to find root cause?
1. How to find workflow by queue entry number?
Navigate to Site > Utilities > Queue Management
Click on View Information icon in WfPropagationQueue
Search for Queue entry 367019
Click on link to workflow
2. How to find root cause?
In workflow process manager search for last activity in grey or activity in red
Workflow activity in grey = completed activity
Workflow activity in green = started activity
Workflow activity in red = stopped activity
Thanks for your reply.
1. How to find workflow by queue entry number?
Navigate to Site > Utilities > Queue Management
Click on View Information icon in WfPropagationQueue
Search for Queue entry 367019
Click on link to workflow
I can't find queue entry in WfPropagationQueue or other queue, so I try to find it in database by using SQL, but I can't associate queueentry with workflow. Do you have any good advice?
2. How to find root cause?
In workflow process manager search for last activity in grey or activity in red
Workflow activity in grey = completed activity
Workflow activity in green = started activity
Workflow activity in red = stopped activity
I check workflow process manager, but no activitys in grey or red, as I said activity A(green) finished and activity B(no colour) not start.
Enable the logger of this class, you can use the following command line on a Windchill shell or do it through the system monitor:
windchill wt.util.jmx.SetLogLevel -all wt.queue.QueueMonitorHelper ALL
Note that to enable the logger you usually just need the name of the class. This should allow you to see the the queue which is having the issue or more information.
It looks like the user does not have access to the queue, does this happen with an administrator user (wcadmin)?
thanks for your reply. I will try this logger.
It looks like the user does not have access to the queue, does this happen with an administrator user (wcadmin)?
Because it is the production environment, so there is no way to test