Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



5 answers

Permanent link
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.

0 votes


Permanent link
IWorkItemType wiDefect =
workItemClient.findWorkItemType(area.getProjectArea(),
WorkItemTypes.DEFECT, null); <Exception> Find Similar Work Items).

HTH,
Patrick,
Jazz Work Item Team

0 votes


Permanent link
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.

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: May 20 '08, 3:54 p.m.

Question was seen: 6,970 times

Last updated: May 20 '08, 3:54 p.m.

Confirmation Cancel Confirm