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: RE: Error while building service builder in DXP 7.4
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
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
Thank you very much. I respect and thank you from the bottom of my heart. It was very helpful.