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

NPE at WorkItemQueryAttributeFactory.findAttribute

After migration RTC libraries to 4.0.5, we are getting a null pointer exception at WorkItemQueryAttributeFactory.findAttribute. The same piece of code used to work before changing the libraries.

This is the piece of code:
    private IQueryableAttribute findAttribute(IProjectAreaHandle projectArea,
            IAuditableCommon auditableCommon, String attributeId,
            IProgressMonitor monitor) throws TeamRepositoryException {
        IQueryableAttributeFactory factory = QueryableAttributes
                .getFactory(IWorkItem.ITEM_TYPE);
        IQueryableAttribute result = factory.findAttribute(projectArea,
                attributeId, auditableCommon, monitor);
        return result;
    }

This is the stack trace:
java.lang.NullPointerException
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionDescriptor.processChild(CALMLinkTypeInformationRegistry.java:174)
    at com.ibm.team.repository.common.transport.AbstractElementDescriptor.processChildren(AbstractElementDescriptor.java:725)
    at com.ibm.team.repository.common.transport.AbstractElementDescriptor.<init>(AbstractElementDescriptor.java:60)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionDescriptor.<init>(CALMLinkTypeInformationRegistry.java:138)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.handleExtensionAdded(CALMLinkTypeInformationRegistry.java:110)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.handleExtensionAdded(CALMLinkTypeInformationRegistry.java:1)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:204)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:623)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1131)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:317)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.<init>(CALMLinkTypeInformationRegistry.java:105)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.initialize(CALMLinkTypeInformationRegistry.java:93)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.getInstance(CALMLinkTypeInformationRegistry.java:35)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.getLinkTypeInformation(CALMLinkTypeInformationRegistry.java:49)
    at com.ibm.team.workitem.common.internal.expression.WorkItemQueryAttributeFactory.updateCache(WorkItemQueryAttributeFactory.java:147)
    at com.ibm.team.workitem.common.internal.util.CacheHelper.internalCheckCache(CacheHelper.java:107)
    at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:73)
    at com.ibm.team.workitem.common.internal.expression.WorkItemQueryAttributeFactory.findAttribute(WorkItemQueryAttributeFactory.java:102)
    at com.ibm.frs.team.TeamManager.findAttribute(TeamManager.java:507)
    at com.ibm.frs.team.TeamManager.queryOpenDefect(TeamManager.java:479)
    at com.ibm.frs.team.WorkItemManager.processTestcase(WorkItemManager.java:192)
    at com.ibm.frs.team.WorkItemManager.main(WorkItemManager.java:153)
Feb 25, 2014 11:30:27 AM com.ibm.team.repository.common.transport.AbstractElementDescriptor processChildren
SEVERE: null
Throwable occurred: java.lang.NullPointerException
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionDescriptor.processChild(CALMLinkTypeInformationRegistry.java:174)
    at com.ibm.team.repository.common.transport.AbstractElementDescriptor.processChildren(AbstractElementDescriptor.java:725)
    at com.ibm.team.repository.common.transport.AbstractElementDescriptor.<init>(AbstractElementDescriptor.java:60)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionDescriptor.<init>(CALMLinkTypeInformationRegistry.java:138)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.handleExtensionAdded(CALMLinkTypeInformationRegistry.java:110)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.handleExtensionAdded(CALMLinkTypeInformationRegistry.java:1)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:204)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:623)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1131)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:317)
    at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry$CALMLinkTypeExtensionRegistryReader.<init>(CALMLinkTypeInformationRegistry.java:105)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.initialize(CALMLinkTypeInformationRegistry.java:93)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.getInstance(CALMLinkTypeInformationRegistry.java:35)
    at com.ibm.team.calm.foundation.common.linking.CALMLinkTypeInformationRegistry.getLinkTypeInformation(CALMLinkTypeInformationRegistry.java:49)
    at com.ibm.team.workitem.common.internal.expression.WorkItemQueryAttributeFactory.updateCache(WorkItemQueryAttributeFactory.java:147)
    at com.ibm.team.workitem.common.internal.util.CacheHelper.internalCheckCache(CacheHelper.java:107)
    at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:73)
    at com.ibm.team.workitem.common.internal.expression.WorkItemQueryAttributeFactory.findAttribute(WorkItemQueryAttributeFactory.java:102)
    at com.ibm.frs.team.TeamManager.findAttribute(TeamManager.java:507)
    at com.ibm.frs.team.TeamManager.queryOpenDefect(TeamManager.java:479)
    at com.ibm.frs.team.WorkItemManager.processTestcase(WorkItemManager.java:192)
    at com.ibm.frs.team.WorkItemManager.main(WorkItemManager.java:153)
Feb 25, 2014 11:30:27 AM com.ibm.team.foundation.common.util.FoundationLog unexpectedError

Does anyone have faced the same problem?

0 votes



One answer

Permanent link
Yes we have the same issue. Does anyone know why?
Thanks

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: Feb 25 '14, 9:37 a.m.

Question was seen: 3,347 times

Last updated: Jan 08 '15, 9:04 a.m.

Confirmation Cancel Confirm