Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343688

Summary: An internal error occurred during: "Activity Monitor Job". java.lang.NullPointerException
Product: z_Archived Reporter: Luis Morales <lmoralestmira>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: 6mix, costis, eclipse, jackstraw66, maisel+eclipsebugs, Olivier_Thomann, shawn.minto, steffen.pingel, stephan.herrmann
Version: unspecified   
Target Milestone: 3.6   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
requested log file
none
" "Activity Monitor Job"."
none
fix
none
mylyn/context/zip none

Description Luis Morales CLA 2011-04-23 12:24:29 EDT
Build Identifier: helios service release 2

all day, this message appear me while working An internal error occurred during: "Activity Monitor Job".
java.lang.NullPointerException
i not know fix it! somebody can help me???? I can clic in ok button and continue work, but in a few minutes the messages return again

Reproducible: Always
Comment 1 Stephan Herrmann CLA 2011-04-23 12:48:28 EDT
Given you see an exception there should be a corresponding entry in
the log file .metadata/.log inside your workspace directory.

If you paste or attach the exception stack trace to this bug we have better
chances of finding out which plug-in is actually causing grief.
Comment 2 Olivier Thomann CLA 2011-04-25 09:32:39 EDT
Stack trace is mandatory for further investigation.
Comment 3 Tibor Budai CLA 2011-05-02 09:56:46 EDT
Created attachment 194487 [details]
requested log file
Comment 4 Ronny Bergersten CLA 2011-05-02 10:06:07 EDT
Created attachment 194488 [details]
" "Activity Monitor Job"."
Comment 5 Ronny Bergersten CLA 2011-05-02 10:07:19 EDT
I have exactly the same problem. That error message jumps up all the time.
Comment 6 Olivier Thomann CLA 2011-05-02 10:09:34 EDT
Moving to Mylyn.
Comment 7 Hugh Hefner CLA 2011-05-02 10:09:58 EDT
I got this one too,   eclipse for java developers, build-number,  20110218-0911

!ENTRY org.eclipse.core.jobs 4 2 2011-05-02 16:04:21.361
!MESSAGE An internal error occurred during: "Activity Monitor Job".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.mylyn.internal.tasks.ui.TaskListSynchronizationScheduler.cancel(TaskListSynchronizationScheduler.java:107)
	at org.eclipse.mylyn.internal.tasks.ui.TaskListSynchronizationScheduler.userAttentionGained(TaskListSynchronizationScheduler.java:155)
	at org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager.fireActive(ActivityContextManager.java:222)
	at org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager.access$2(ActivityContextManager.java:220)
	at org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager$2.active(ActivityContextManager.java:92)
	at org.eclipse.mylyn.internal.monitor.ui.CheckActivityJob.run(CheckActivityJob.java:101)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 8 Steffen Pingel CLA 2011-05-09 15:37:59 EDT
Thanks for the stack trace. We'll look into this. On which operating systems are you experiencing this problem?
Comment 9 Missing name CLA 2011-05-09 19:41:58 EDT
(In reply to comment #8)
> Thanks for the stack trace. We'll look into this. On which operating systems
> are you experiencing this problem?

I'm on Mac OS X 10.6.3 (10D573)

Eclipse Version: Helios Service Release 2, Build id: 20110301-1815

- KFM
Comment 10 Steffen Pingel CLA 2011-05-10 04:24:21 EDT
As  work-around, can you try the following:

* Disable "Synchronize Automatically" in the view menu of the task list.

Alternatively, if you are not using Mylyn:

* Close the Task List view so it is not visible on startup
* Under Preferences > General > Startup and Shutdown disable Mylyn Team UI and Mylyn Tasks UI

Does that get rid of the error popups?
Comment 11 joe CLA 2011-05-11 17:03:51 EDT
Same error. Keeps popping up every few minutes.

Version: 3.6.2.r362_v20110210
Build id: M20110210-1200
Comment 12 Costis CLA 2011-05-12 07:06:55 EDT
(In reply to comment #10)
> As  work-around, can you try the following:
> 
> * Disable "Synchronize Automatically" in the view menu of the task list.
> 
> Alternatively, if you are not using Mylyn:
> 
> * Close the Task List view so it is not visible on startup
> * Under Preferences > General > Startup and Shutdown disable Mylyn Team UI and
> Mylyn Tasks UI
> 
> Does that get rid of the error popups?

The first step did the trick for my Eclipse 

Version: Helios Service Release 2
Build id: 20110218-0911
Comment 13 Missing name CLA 2011-05-12 19:03:35 EDT
(In reply to comment #10)
> As  work-around, can you try the following:
> 
> * Disable "Synchronize Automatically" in the view menu of the task list.
> 
> Alternatively, if you are not using Mylyn:
> 
> * Close the Task List view so it is not visible on startup
> * Under Preferences > General > Startup and Shutdown disable Mylyn Team UI and
> Mylyn Tasks UI
> 
> Does that get rid of the error popups?

Disabling the "Synchronize Automatically" menu item corrected the issue for me as well.

Thank you!

- KFM
Comment 14 Steffen Pingel CLA 2011-06-01 22:02:33 EDT
Created attachment 197208 [details]
fix
Comment 15 Steffen Pingel CLA 2011-06-01 22:02:36 EDT
Created attachment 197209 [details]
mylyn/context/zip
Comment 16 Steffen Pingel CLA 2011-06-01 22:05:24 EDT
I have committed the fix and triggered a new weekly build https://hudson.eclipse.org/hudson/job/mylyn-release/116/ which will be available from this site shortly: http://download.eclipse.org/mylyn/snapshots/weekly . This fix will also be included in Indigo RC4.