If LockProjectByDefault is set to true, OpenProjects tries to lock the returned projects. If not all open projects can be locked, OpenProjects throws a ProjectLockingException. Please consider this if you work with e.g. write-protected or revisioned projects.