Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367927 - NPE in TaskStore when trying to run tests
Summary: NPE in TaskStore when trying to run tests
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 0.4 M2   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 05:41 EST by Tomasz Zarna CLA
Modified: 2012-01-09 06:12 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.