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
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
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:
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?
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.
The exception message is null.
--
Sincerely,
Ahmed Hadad
"Jared Burns" <jared_burns> wrote in message
news:g0vf15$3ih$1@localhost.localdomain...
--
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
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?
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.
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...
--
Sincerely,
Ahmed Hadad
"Patrick Streule" <patrick_streule> wrote in message
news:g10iv1$icd$1@localhost.localdomain...
IWorkItemType wiDefect =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).
HTH,
Patrick,
Jazz Work Item Team
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...
<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 =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).
HTH,
Patrick,
Jazz Work Item Team