findWorkflowInfo Exception
Hi
I met a problem of findWorkflowInfo with RTC SDK java API,some exception raised ,any one met this problem before? WorkflowUtilities.findWorkflowInfo(resolved.getItem(),null).getStateName(Iden_state); Feb 29, 2012 11:23:28 AM com.ibm.team.foundation.common.util.FoundationLog unexpectedError SEVERE: URL not found: processattachment:/workitemtype/riskaction.gif Feb 29, 2012 11:23:28 AM com.ibm.team.foundation.common.util.FoundationLog unexpectedError SEVERE: Error while retrieving image: processattachment:/workflow/accepted.gif com.ibm.team.repository.common.ItemNotFoundException: CRRTC0317E: Could not find ProcessAttachment for path: _9LHgYJJfEd6w68Wm552x3w/workflow/accepted.gif at com.ibm.team.workitem.service.internal.ImageContentService.findProcessAttachment(ImageContentService.java:156) at com.ibm.team.workitem.service.internal.ImageContentService.getProcessAttachmentContent(ImageContentService.java:360) at com.ibm.team.workitem.service.internal.ImageContentService.getTeamContent(ImageContentService.java:347) at com.ibm.team.workitem.service.internal.ImageContentService.access$0(ImageContentService.java:338) at com.ibm.team.workitem.service.internal.ImageContentService$1.run(ImageContentService.java:218) at com.ibm.team.workitem.service.internal.ImageContentService$1.run(ImageContentService.java:1) at com.ibm.team.repository.service.internal.TeamServiceContext.runAsAdmin(TeamServiceContext.java:135) at com.ibm.team.workitem.service.internal.ImageContentService.get(ImageContentService.java:215) at sun.reflect.GeneratedMethodAccessor356.invoke(null) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy426.get(null) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doGet(AbstractTeamServerServlet.java:357) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1871) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1725) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120) at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:811) at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:326) at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:296) at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeFault(MarshallerUtil.java:261) at com.ibm.team.repository.transport.client.RemoteTeamService.constructExceptionFromFault(RemoteTeamService.java:622) at com.ibm.team.repository.transport.client.RemoteTeamService.throwNotFoundException(RemoteTeamService.java:393) at com.ibm.team.repository.transport.client.RemoteTeamService.invokeContentGet(RemoteTeamService.java:317) at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:181) at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) at $Proxy23.get(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88) at $Proxy23.get(Unknown Source) at com.ibm.team.workitem.client.internal.WorkItemClient$3.run(WorkItemClient.java:639) at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1261) at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79) at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1254) at com.ibm.team.workitem.client.internal.WorkItemClient.getImageContent(WorkItemClient.java:629) at com.ibm.team.workitem.client.internal.util.RemoteImages.doResolveImageContent(RemoteImages.java:57) at com.ibm.team.workitem.client.internal.util.RemoteImages.resolveImageContent(RemoteImages.java:50) at com.ibm.team.workitem.client.internal.util.RemoteImages.resolveImageContent(RemoteImages.java:46) at com.ibm.team.workitem.client.internal.WorkItemClient.resolveURL(WorkItemClient.java:734) at com.ibm.team.workitem.common.internal.workflow.WorkflowInfo.cacheImageURL(WorkflowInfo.java:585) at com.ibm.team.workitem.common.internal.workflow.WorkflowInfo.resolveImageURLs(WorkflowInfo.java:567) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager$ProjectAreaRegistry.resolveImageURLs(WorkflowManager.java:278) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.updateCache(WorkflowManager.java:745) at com.ibm.team.workitem.common.internal.util.CacheHelper.internalCheckCache(CacheHelper.java:131) at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:81) at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:72) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.getProjectAreaRegistry(WorkflowManager.java:591) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.getWorkflowIdForCategory(WorkflowManager.java:458) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.getWorkflowId(WorkflowManager.java:428) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.getBoundWorkflowInfo(WorkflowManager.java:517) at com.ibm.team.workitem.common.internal.workflow.WorkflowManager.getWorkflowInfo(WorkflowManager.java:507) at com.ibm.team.workitem.common.internal.WorkItemCommon.findWorkflowInfo(WorkItemCommon.java:1117) at com.ibm.team.workitem.client.WorkflowUtilities.findWorkflowInfo(WorkflowUtilities.java:32) at com.ibm.build.DefectState.generate_result(DefectState.java:299) at com.ibm.build.DefectState.main(DefectState.java:131) |
6 answers
I have the same problem. The exact same exception.Tried circumventing the exception but to no avail.
Does anyone have a solution? It is a simple query over Child Work Items in which I need to get the Child Work Items state names. I do not understand why the API is trying to fetch images (?!). Regards, ggalvao |
Hi
Has anybody got a solution for this? Please share the solution if yes. Hi |
SDK = Plugin, PlainJava = java app..
I use this in my plugin <code> IAuditableCommon iac = ((ISaveParameter) data). getSaveOperationParameter(). getAuditableCommon(); WorkflowManager wfm = new WorkflowManager(iac); // reference the right object type (cast) IWorkItem workItem = (IWorkItem) auditable; // get the workflow this workitem is in, so we can get the labels of the states IWorkflowInfo x =wfm.getWorkflowInfo(workItem, monitor); // if this workitem is going into resolved state (we accessed 'proposed new' state above if(x.getStateName(workItem.getState2()).equalsIgnoreCase("Resolved")) { } </code> |
Ralph Schoon (63.1k●3●36●45)
| answered Mar 28 '13, 7:24 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I have never seen that exception. The code I use is here: http://rsjazz.wordpress.com/2012/11/26/manipulating-work-item-states/
and here http://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/ |
Same problem over here as well...
Have no idea why this is being output... |
It could be that the icon files are missing from your template.
Add the icon files into the template. Open the eclipse\RTC client Go to the Process Templates tab in the Jazz Administration perspective. Open the problem template Find the location of the missing image. Select the Process Configuration Source Tab at the bottom of the template. Searching the source for the missing image should provide some clues as to where to locate the problem on the Process Configuration tab. For example if the error image in the error was open.gif note the workflow tag and the action name in the section where the open.gif was found <workflow description="Workflow used for Tasks" name="Task Workflow" .... <action icon="processattachment:/workflow/open.gif" id="com.ibm.team.workitem.taskWorkflow.action.confirm" name="Initialize" state="s1"/> Verify the image is missing and replace it Open the Process Configuration tab at the bottom of the template Drill down to the Workflows Item under the Configuration section In the Workflows section choose "Task Workflow" from the "Choose Workflows to edit" drop down Find the section with the missing icon. In this case the source pointed to the Initialize value which was found under the Actions section. Repair the problem icon: Highlight the action and choose "Edit" From the pop up window choose an existing icon or choose "Add Icons" Note: Choosing an existing icon may not completely resolve the issue if the image is used under multiple operations where uploading a new image with the correct name should. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Has an answer been provided for this question?