RE: Liferay 7.3.6 GA7 java.lang.NullPointerException in service builder met

thumbnail
تم تعديل Prashant Ballal منذ 4 سنوات من الدقائق. New Member المشاركات: 8 تاريخ الإنضمام: 13‏/1‏/20 المشاركات الحديثة

Hi,

I am using 7.3.6 GA7 CE with the tomcat bundle and MySQL as DB. I created one service module and created add and update method in *LocalServiceImpl. I am getting the below error while adding/updating the entity in a custom table.

 

java.lang.NullPointerException
        at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl._getArguments(FinderCacheImpl.java:466)
        at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl.updateByEntityCache(FinderCacheImpl.java:378)
        at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl._putResult(EntityCacheImpl.java:439)
        at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:336)
        at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:358)
        at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:328)

I googled the issue. As per the suggestion, there is an issue with the service builder template, but I checked the service.xml and it already contains version 7.3.0 as shown below:

<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.3.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_3_0.dtd">

Thanks in advance.

تم تعديل Mario González منذ 4 سنوات من الدقائق. New Member المشاركات: 9 تاريخ الإنضمام: 27‏/11‏/19 المشاركات الحديثة

Hi, I'm facing the exact same issue, in my case is a test environment created for upgrade from version 7.3.5. My project works as expected on 7.3.5, but on 7.3.6 I'm facing the same problem (I can read data but not update).

Any help would be great

تم تعديل Francisco Javier Rivera منذ 4 سنوات من الدقائق. New Member المشاركات: 15 تاريخ الإنضمام: 27‏/6‏/11 المشاركات الحديثة

Hola, conseguiste resolver este problema, yo estoy en la misma situación

تم تعديل Mario González منذ 4 سنوات من الدقائق. New Member المشاركات: 9 تاريخ الإنضمام: 27‏/11‏/19 المشاركات الحديثة

I forgot to mention that I've tried disabling the entity cache and the result is the same

thumbnail
تم تعديل Prashant Ballal منذ 4 سنوات من الدقائق. Liferay Legend المشاركات: 1555 تاريخ الإنضمام: 24‏/9‏/09 المشاركات الحديثة

No, that's not sufficient.

buildService needs to be done with a sufficiently high version of the service builder plugin. The simplest way to get that is to use the most current workspace. Update settings.gradle and update the version number of the plugins workspace:

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

 

تم تعديل Francisco Javier Rivera منذ 4 سنوات من الدقائق. New Member المشاركات: 15 تاريخ الإنضمام: 27‏/6‏/11 المشاركات الحديثة

Hello,

Have you managed to solve this problem? I am in the same situation and I do not see a solution

thumbnail
تم تعديل Prashant Ballal منذ 4 سنوات من الدقائق. New Member المشاركات: 8 تاريخ الإنضمام: 13‏/1‏/20 المشاركات الحديثة

No. I couldn't resolve it. Have you tried what Christoph Rabel has suggested.

تم تعديل Francisco Javier Rivera منذ 4 سنوات من الدقائق. New Member المشاركات: 15 تاريخ الإنضمام: 27‏/6‏/11 المشاركات الحديثة

I managed to fix it. What I had to do was download a more recent version of Developer Studio, create a new workspace and it worked. Christoph Rabel was right