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
FinderImpl Issue in Servicebuilder Liferay 7.2
Hi,I am facing issue after creating FinderImpl in servicebuilder project All method written in LocalserviceImpl throwing null pointer exception. I am using Liferay 7.2 with Fix pack 4.
Step that I have followed.1. Create service builder project and create an entity in service.xml.2. run Build service and did gradle referesh.3. write a method in Entity Local service Impl and build service again and deploy.4. When I call method created above in any module it work fine. 5. Now add FinderIml Class in persistance.impl package i.e FooFinderImpl and build service .6. I followed the steps creating FinderImpl provided by Liferay and I have already written FinderImpl in many other Liferay projects in 7.0 and 6.2.
7. After deploying service builder again method we were calling earlier is throwing null pointer exception.
Thanks
Step that I have followed.1. Create service builder project and create an entity in service.xml.2. run Build service and did gradle referesh.3. write a method in Entity Local service Impl and build service again and deploy.4. When I call method created above in any module it work fine. 5. Now add FinderIml Class in persistance.impl package i.e FooFinderImpl and build service .6. I followed the steps creating FinderImpl provided by Liferay and I have already written FinderImpl in many other Liferay projects in 7.0 and 6.2.
7. After deploying service builder again method we were calling earlier is throwing null pointer exception.
Thanks
Hi ,
can you please share the FooFinderImpl code ?
can you please share the FooFinderImpl code ?
Hi,I have not written anything in FooFinderImpl yet. It's empty.
You wrote: " Now add FinderIml Class in persistance.impl package i.e FooFinderImpl and build service"
I don't understand that. Did you add the class manually?
Or did you you do the correct thing and set remote to true in service.xml and rebuild the service so that the class is generated?
Can you share the exception with us?
I don't understand that. Did you add the class manually?
Or did you you do the correct thing and set remote to true in service.xml and rebuild the service so that the class is generated?
Can you share the exception with us?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™