Error while building service builder in DXP 7.4

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 13 Join Date: 5/23/14 Recent Posts

Dear Team,

We have created a simple service builder and when we try to build the service builder in liferay-dxp-7.4.13.u51 (EE) version with Liferay Developer Studio it is giving the below errors

D:\Liferay\modules\test-service\test-service-service\src\main\java\test\service\service\persistence\impl\FooPersistenceImpl.java:2425: error: method getResult in interface FinderCache cannot be applied to given types;
        Long count = (Long)finderCache.getResult(
                                      ^
  required: FinderPath,Object[],BasePersistence<?>
  found: FinderPath,Object[]
  reason: actual and formal argument lists differ in length 

--- By adding the 3rd parameter as null it is working fine, but as a default service builder we cann't do everytime to add the extra parameter that is not a good practice to do as well.

--- If there are any patchfix or bugfix avilable, please let us know. Appreciate your kind help.

Thanks,
Prasad Vallabhaneni

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 13 Join Date: 5/23/14 Recent Posts

Hi,

To resolve the above issue we need to update the gradle plugin workspace version to 4.0.19 in settings.gradle of workspace to resolve the service builder issue.

classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "4.0.19") 

Thanks & Regards,

Prasad Vallabhaneni

Jamie Sammons, modified 2 Years ago. New Member Post: 1 Join Date: 3/25/20 Recent Posts
Thank you very much. I respect and thank you from the bottom of my heart. It was very helpful.