Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.4 Bulk User creation throws null pointer exception
Currently we were creating users with an osgi module, and bulk was working correctly. But with the upgrade to liferay 7.4 it stopped working and throws a null pointer exception, and all the parameters have a specific value, the method used is addUserWithWorkflow from the UserLocalServiceUtil.
A NPE typically comes with a stacktrace - knowing it and the exact version that you're running, it should be simple to map the exception to a specific line of code (either your own, or Liferay's). This mapping should tell you what's wrong. Without it, there's not much we can help you with.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™