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: Spring mvc portlet not able access customlocalservice
Hi ,
In liferay 7.4.3.6 CE GA6 Created using spring
MVC portlet and trying to access the custome table entity inside in
action class but not able to access
when i write
List<Employee> employee =
EmployeeLocalServiceUtil.getEmployee(-1,-1); like this then getting
the below error
java.lang.NullPointerException
at com.service.EmployeeLocalServiceUtil.getEmployee(EmployeeLocalServiceUtil.java:294)
if i will try defernt way
@Reference
private SubmittalLocalService _submittalService;
List<Submittal> Submittal1 =
_submittalService.getSubmittals(-1, -1);
here _submittalService
is getting the null value and not able to proceed
in gradle service using like below
compile project(":modules:employee-service:employee-service-api")
Is it required any more configurations?
Note: it's working fine in liferay module only issue in spring mvc portlet
Regards
Srini
Any Update Guyes?
Hi Srini, which dependency injector are you using with your Service Builder services?
Powered by Liferay™