java.lang.IllegalArgumentException Thrown When Calling IWork
This is being run in plain java. Anything am I doing wrong here?
Preconditions: Platform started successfully TeamRepository accessed successfully Login completed successfully IProcessArea area = ((IProcessClientService) repo.getClientLibrary(IProcessClientService.class)).findProcessArea(new URI((String) transaction.get(DefectProblemWrapper.PROJECTAREA_PARAM_NAME)),IProcessItemService.ALL_PROPERTIES, null); IWorkItemClient workItemClient = (IWorkItemClient) repo.getClientLibrary(IWorkItemClient.class); IAuditableClient iAuditableClient = (IAuditableClient) repo.getClientLibrary(IAuditableClient.class); IWorkItemType wiDefect = workItemClient.findWorkItemType(area.getProjectArea(), WorkItemTypes.DEFECT, null); <---------------- Exception is thrown here. Exception: java.lang.IllegalArgumentException at com.ibm.team.process.internal.common.util.AbstractProcess.computeConfigurationData(AbstractProcess.java:296) at com.ibm.team.process.internal.common.util.AbstractProcess.getProjectConfigurationData(AbstractProcess.java:278) at com.ibm.team.workitem.client.internal.AuditableClientProcess.findProcessConfiguration(AuditableClientProcess.java:64) at com.ibm.team.workitem.common.internal.ConfigurationItemManager.resolveProcessConfiguration(ConfigurationItemManager.java:139) at com.ibm.team.workitem.common.internal.ConfigurationItemManager.readConfigurationItems(ConfigurationItemManager.java:120) at com.ibm.team.workitem.common.internal.model.WorkItemTypeManager.readConfigurationItems(WorkItemTypeManager.java:262) at com.ibm.team.workitem.common.internal.ConfigurationItemManager$CacheManager.updateCache(ConfigurationItemManager.java:47) at com.ibm.team.workitem.common.internal.util.CacheHelper.internalCheckCache(CacheHelper.java:79) at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:53) at com.ibm.team.workitem.common.internal.ConfigurationItemManager.findConfigurationItems(ConfigurationItemManager.java:68) at com.ibm.team.workitem.common.internal.WorkItemCommon.findWorkItemTypes(WorkItemCommon.java:294) Even if I call the workItemClient.findWorkItemTypes(....), same exception is thrown. Thanks. -- Sincerely, Ahmed Hadad |
5 answers
Jared Burns (4.5k●2●9)
| answered May 20 '08, 5:15 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi, Ahmed. Is this the full text of the stack trace that you're seeing?
I ask because our code here throws an IllegalArgumentException with a message that should report what the problem was. -- Jared Burns Jazz Process Team Ahmed Hadad (IBM) wrote: This is being run in plain java. Anything am I doing wrong here? |
IWorkItemType wiDefect = |
The exception message is null.
-- Sincerely, Ahmed Hadad "Jared Burns" <jared_burns> wrote in message news:g0vf15$3ih$1@localhost.localdomain... Hi, Ahmed. Is this the full text of the stack trace that you're seeing? I |
The exception was thrown with org.eclipse.text in my classpath.
-- Sincerely, Ahmed Hadad "Patrick Streule" <patrick_streule> wrote in message news:g10iv1$icd$1@localhost.localdomain... IWorkItemType wiDefect = |
This are the Jazz related jar files I have in my classpath.
<classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> <classpathentry> -- Sincerely, Ahmed Hadad "Patrick Streule" <patrick_streule> wrote in message news:g10iv1$icd$1@localhost.localdomain... IWorkItemType wiDefect = |
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.