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

thumbnail
Prashant Ballal, modified 4 Years ago. New Member Posts: 8 Join Date: 1/13/20 Recent Posts

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, modified 4 Years ago. New Member Posts: 9 Join Date: 11/27/19 Recent Posts

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, modified 4 Years ago. New Member Posts: 15 Join Date: 6/27/11 Recent Posts

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

Mario González, modified 4 Years ago. New Member Posts: 9 Join Date: 11/27/19 Recent Posts

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

thumbnail
Prashant Ballal, modified 4 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts

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, modified 4 Years ago. New Member Posts: 15 Join Date: 6/27/11 Recent Posts

Hello,

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

thumbnail
Prashant Ballal, modified 4 Years ago. New Member Posts: 8 Join Date: 1/13/20 Recent Posts

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

Francisco Javier Rivera, modified 4 Years ago. New Member Posts: 15 Join Date: 6/27/11 Recent Posts

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