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

Bug 367927

Summary: NPE in TaskStore when trying to run tests
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: ServerAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 0.4   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2012-01-05 05:41:02 EST
I get the following stack trace when I try to run tests. Obviously, all tests fail.

...
Caused by: java.lang.NullPointerException
	at org.eclipse.orion.internal.server.core.tasks.TaskStore.readAllTasks(TaskStore.java:165)
	at org.eclipse.orion.internal.server.core.tasks.TaskService.cleanUpTasks(TaskService.java:113)
	at org.eclipse.orion.internal.server.core.tasks.TaskService.<init>(TaskService.java:109)
	at org.eclipse.orion.internal.server.core.Activator.startTaskService(Activator.java:137)
	at org.eclipse.orion.internal.server.core.Activator.start(Activator.java:131)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(AccessController.java:251)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	... 46 more
Comment 1 Malgorzata Janczarska CLA 2012-01-05 06:39:06 EST
TaskService wasn't initialized correctly. Good it came out now.
Comment 2 Tomasz Zarna CLA 2012-01-09 06:05:56 EST
(In reply to comment #1)
> TaskService wasn't initialized correctly. Good it came out now.

Running tests before committing would have prevented this.
Comment 3 Malgorzata Janczarska CLA 2012-01-09 06:12:09 EST
(In reply to comment #2)
> (In reply to comment #1)
> > TaskService wasn't initialized correctly. Good it came out now.
> 
> Running tests before committing would have prevented this.

Thanks for the advice but in my configuration tasks directory existed.