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?
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?