RE: Spring mvc portlet not able access customlocalservice

srini vasulu, modified 3 Years ago. Regular Member Posts: 139 Join Date: 2/22/11 Recent Posts

    
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

 

 

 

 

 

srini vasulu, modified 3 Years ago. Regular Member Posts: 139 Join Date: 2/22/11 Recent Posts

Any Update Guyes?

 

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

Hi Srini, which dependency injector are you using with your Service Builder services?