Message Boards

FinderImpl Issue in Servicebuilder Liferay 7.2

YOGESH CHANDRA, modified 3 Years ago.

FinderImpl Issue in Servicebuilder Liferay 7.2

New Member Posts: 6 Join Date: 4/1/20 Recent Posts
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
thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: FinderImpl Issue in Servicebuilder Liferay 7.2

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,
can you please share the  FooFinderImpl   code ?
YOGESH CHANDRA, modified 3 Years ago.

RE: FinderImpl Issue in Servicebuilder Liferay 7.2

New Member Posts: 6 Join Date: 4/1/20 Recent Posts
Hi,I have not written anything in FooFinderImpl yet. It's empty.
thumbnail
Christoph Rabel, modified 3 Years ago.

RE: FinderImpl Issue in Servicebuilder Liferay 7.2

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
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?