It's all about the answers!

Ask a question

java.lang.IllegalArgumentException Thrown When Calling IWork


Ahmed Hadad (106187) | asked May 20 '08, 3:54 p.m.
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



permanent link
Jared Burns (4.5k29) | 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?

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.

permanent link
Patrick Streule (4.9k21) | answered May 21 '08, 3:27 a.m.
JAZZ DEVELOPER
IWorkItemType wiDefect =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).

HTH,
Patrick,
Jazz Work Item Team

permanent link
Ahmed Hadad (106187) | answered May 21 '08, 9:52 a.m.
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
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.

permanent link
Ahmed Hadad (106187) | answered May 21 '08, 10:05 a.m.
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 =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).

HTH,
Patrick,
Jazz Work Item Team

permanent link
Ahmed Hadad (106187) | answered May 21 '08, 10:08 a.m.
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 =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).

HTH,
Patrick,
Jazz Work Item Team

Your answer


Register or to post 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.