NPE in ProcessAreaWorkingCopy
I have automated the initialization of a project area. The idea is that we are creating 'advanced sandbox' environments for our users to explore RTC. So we initialize a project area with several streams and teams, add the new user to the project and teams with the proper permission, load some source code into the stream, and create build definitions to build the streams. It works great however I occasionally see this exception:
It is random, but seems to occur most frequently when I'm adding users to a team area. Interestingly, everything seems to end up configured properly, regardless of whether I see this exception.
What is causing this exception? Am I not handling the process area save correctly?
Thanks for your help,
-Dave
java.lang.NullPointerException
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy.handleProcessAreaChanged(ProcessAreaWorkingCopy.java:970)
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy.access$1(ProcessAreaWorkingCopy.java:962)
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy$SharedItemChangeListener.itemsChanged(ProcessAreaWorkingCopy.java:139)
at com.ibm.team.repository.client.internal.ItemManager.dispatchEvents(ItemManager.java:1376)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$4.run(EventSource.java:759)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher.process(EventSource.java:754)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$5.run(EventSource.java:801)
at com.ibm.team.repository.client.util.ThreadCheck.runProhibitingLongOps(ThreadCheck.java:173)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher.process(EventSource.java:797)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$1.run(EventSource.java:706)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
It is random, but seems to occur most frequently when I'm adding users to a team area. Interestingly, everything seems to end up configured properly, regardless of whether I see this exception.
What is causing this exception? Am I not handling the process area save correctly?
Thanks for your help,
-Dave
One answer
I have automated the initialization of a project area. The idea is that we are creating 'advanced sandbox' environments for our users to explore RTC. So we initialize a project area with several streams and teams, add the new user to the project and teams with the proper permission, load some source code into the stream, and create build definitions to build the streams. It works great however I occasionally see this exception:
java.lang.NullPointerException
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy.handleProcessAreaChanged(ProcessAreaWorkingCopy.java:970)
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy.access$1(ProcessAreaWorkingCopy.java:962)
at com.ibm.team.process.internal.client.workingcopies.ProcessAreaWorkingCopy$SharedItemChangeListener.itemsChanged(ProcessAreaWorkingCopy.java:139)
at com.ibm.team.repository.client.internal.ItemManager.dispatchEvents(ItemManager.java:1376)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$4.run(EventSource.java:759)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher.process(EventSource.java:754)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$5.run(EventSource.java:801)
at com.ibm.team.repository.client.util.ThreadCheck.runProhibitingLongOps(ThreadCheck.java:173)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher.process(EventSource.java:797)
at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$1.run(EventSource.java:706)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
It is random, but seems to occur most frequently when I'm adding users to a team area. Interestingly, everything seems to end up configured properly, regardless of whether I see this exception.
What is causing this exception? Am I not handling the process area save correctly?
Thanks for your help,
-Dave
Hi Dave,
Can you please add these details along with the RTC build id in which you are facing this issue to https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/62384.
Thanks,
Sridevi
Jazz Process Team