It's all about the answers!

Ask a question

Jazz getClientLibrary(IWorkItemClient.class) API Call Except


Ahmed Hadad (10687) | asked May 18 '08, 8:58 a.m.
Calling the following method throws Exception. This method is being called
from an external application that connects to Jazz through the Jazz APIs.

Preconditions:

Platform started successfully
TeamRepository accessed successfully
Login completed successfully

IWorkItemClient workItemClient = (IWorkItemClient)
repo.getClientLibrary(IWorkItemClient.class);

common - Invalid icon URL:
"{0}"platform:/plugin/com.ibm.team.build.ui/icons/obj16/bld_rslt.gif
<java>java.net.MalformedURLException: unknown protocol: platform
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createIconURL(LinkTypeRegistry.java:349)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createEndPointDescriptor(LinkTypeRegistry.java:244)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readElement(LinkTypeRegistry.java:152)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readRegistry(LinkTypeRegistry.java:131)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:100)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:99)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$SingletonHolder.<clinit>(LinkTypeRegistry.java:41)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getInstance(LinkTypeRegistry.java:46)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getLinkType(LinkTypeRegistry.java:61)
at com.ibm.team.workitem.common.internal.util.Utils.<clinit>(Utils.java:72)
at
com.ibm.team.workitem.common.internal.util.AuditablesHelper.<clinit>(AuditablesHelper.java:31)
at com.ibm.team.workitem.common.model.IWorkItem.<clinit>(IWorkItem.java:72)
at
com.ibm.team.workitem.client.internal.WorkItemClient.<clinit>(WorkItemClient.java:345)
at
com.ibm.team.workitem.client.internal.WorkItemClientLibraryFactory.createClientLibrary(WorkItemClientLibraryFactory.java:17)
at
com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at
com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:408)
at
com.ibm.cde.jazz.actions.ActionCreateDefect.execute(ActionCreateDefect.java:57)
at com.ibm.cde.actions.AbstractAction.run(AbstractAction.java:250)
at
com.ibm.cde.bridge.ActionTransactionPair.run(ActionTransactionPair.java:161)
at java.lang.Thread.run(Unknown Source)

common - Invalid icon URL:
"{0}"platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug.gif
<java>java.net.MalformedURLException: unknown protocol: platform
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createIconURL(LinkTypeRegistry.java:349)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createEndPointDescriptor(LinkTypeRegistry.java:244)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readElement(LinkTypeRegistry.java:153)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readRegistry(LinkTypeRegistry.java:131)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:100)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:99)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$SingletonHolder.<clinit>(LinkTypeRegistry.java:41)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getInstance(LinkTypeRegistry.java:46)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getLinkType(LinkTypeRegistry.java:61)
at com.ibm.team.workitem.common.internal.util.Utils.<clinit>(Utils.java:72)
at
com.ibm.team.workitem.common.internal.util.AuditablesHelper.<clinit>(AuditablesHelper.java:31)
at com.ibm.team.workitem.common.model.IWorkItem.<clinit>(IWorkItem.java:72)
at
com.ibm.team.workitem.client.internal.WorkItemClient.<clinit>(WorkItemClient.java:345)
at
com.ibm.team.workitem.client.internal.WorkItemClientLibraryFactory.createClientLibrary(WorkItemClientLibraryFactory.java:17)
at
com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at
com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:408)
at
com.ibm.cde.jazz.actions.ActionCreateDefect.execute(ActionCreateDefect.java:57)
at com.ibm.cde.actions.AbstractAction.run(AbstractAction.java:250)
at
com.ibm.cde.bridge.ActionTransactionPair.run(ActionTransactionPair.java:161)
at java.lang.Thread.run(Unknown Source)



--
Sincerely,

Ahmed Hadad

One answer



permanent link
Ahmed Hadad (10687) | answered May 19 '08, 10:51 a.m.
Are more details needed to figure out what is wrong in this case?

--
Sincerely,

Ahmed Hadad

"Ahmed Hadad (IBM)" <ahadad> wrote in message
news:g0p95o$eu3$1@localhost.localdomain...
Calling the following method throws Exception. This method is being called
from an external application that connects to Jazz through the Jazz APIs.

Preconditions:

Platform started successfully
TeamRepository accessed successfully
Login completed successfully

IWorkItemClient workItemClient = (IWorkItemClient)
repo.getClientLibrary(IWorkItemClient.class);

common - Invalid icon URL:
"{0}"platform:/plugin/com.ibm.team.build.ui/icons/obj16/bld_rslt.gif
java.net.MalformedURLException: unknown protocol:
platform>java.net.MalformedURLException: unknown protocol: platform
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createIconURL(LinkTypeRegistry.java:349)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createEndPointDescriptor(LinkTypeRegistry.java:244)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readElement(LinkTypeRegistry.java:152)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readRegistry(LinkTypeRegistry.java:131)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:100)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:99)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$SingletonHolder.<clinit>(LinkTypeRegistry.java:41)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getInstance(LinkTypeRegistry.java:46)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getLinkType(LinkTypeRegistry.java:61)
at
com.ibm.team.workitem.common.internal.util.Utils.<clinit>(Utils.java:72)
at
com.ibm.team.workitem.common.internal.util.AuditablesHelper.<clinit>(AuditablesHelper.java:31)
at
com.ibm.team.workitem.common.model.IWorkItem.<clinit>(IWorkItem.java:72)
at
com.ibm.team.workitem.client.internal.WorkItemClient.<clinit>(WorkItemClient.java:345)
at
com.ibm.team.workitem.client.internal.WorkItemClientLibraryFactory.createClientLibrary(WorkItemClientLibraryFactory.java:17)
at
com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at
com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:408)
at
com.ibm.cde.jazz.actions.ActionCreateDefect.execute(ActionCreateDefect.java:57)
at com.ibm.cde.actions.AbstractAction.run(AbstractAction.java:250)
at
com.ibm.cde.bridge.ActionTransactionPair.run(ActionTransactionPair.java:161)
at java.lang.Thread.run(Unknown Source)

common - Invalid icon URL:
"{0}"platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug.gif
java.net.MalformedURLException: unknown protocol:
platform>java.net.MalformedURLException: unknown protocol: platform
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createIconURL(LinkTypeRegistry.java:349)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createEndPointDescriptor(LinkTypeRegistry.java:244)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readElement(LinkTypeRegistry.java:153)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readRegistry(LinkTypeRegistry.java:131)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:100)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:99)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry$SingletonHolder.<clinit>(LinkTypeRegistry.java:41)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getInstance(LinkTypeRegistry.java:46)
at
com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getLinkType(LinkTypeRegistry.java:61)
at
com.ibm.team.workitem.common.internal.util.Utils.<clinit>(Utils.java:72)
at
com.ibm.team.workitem.common.internal.util.AuditablesHelper.<clinit>(AuditablesHelper.java:31)
at
com.ibm.team.workitem.common.model.IWorkItem.<clinit>(IWorkItem.java:72)
at
com.ibm.team.workitem.client.internal.WorkItemClient.<clinit>(WorkItemClient.java:345)
at
com.ibm.team.workitem.client.internal.WorkItemClientLibraryFactory.createClientLibrary(WorkItemClientLibraryFactory.java:17)
at
com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at
com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:408)
at
com.ibm.cde.jazz.actions.ActionCreateDefect.execute(ActionCreateDefect.java:57)
at com.ibm.cde.actions.AbstractAction.run(AbstractAction.java:250)
at
com.ibm.cde.bridge.ActionTransactionPair.run(ActionTransactionPair.java:161)
at java.lang.Thread.run(Unknown Source)



--
Sincerely,

Ahmed Hadad

Your answer


Register or to post your answer.