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

thumbnail
Prashant Ballal, geändert vor 4 Jahren. New Member Beiträge: 8 Beitrittsdatum: 13.01.20 Neueste Beiträge

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, geändert vor 4 Jahren. New Member Beiträge: 9 Beitrittsdatum: 27.11.19 Neueste Beiträge

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, geändert vor 4 Jahren. New Member Beiträge: 15 Beitrittsdatum: 27.06.11 Neueste Beiträge

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

Mario González, geändert vor 4 Jahren. New Member Beiträge: 9 Beitrittsdatum: 27.11.19 Neueste Beiträge

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

thumbnail
Prashant Ballal, geändert vor 4 Jahren. Liferay Legend Beiträge: 1555 Beitrittsdatum: 24.09.09 Neueste Beiträge

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, geändert vor 4 Jahren. New Member Beiträge: 15 Beitrittsdatum: 27.06.11 Neueste Beiträge

Hello,

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

thumbnail
Prashant Ballal, geändert vor 4 Jahren. New Member Beiträge: 8 Beitrittsdatum: 13.01.20 Neueste Beiträge

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

Francisco Javier Rivera, geändert vor 4 Jahren. New Member Beiträge: 15 Beitrittsdatum: 27.06.11 Neueste Beiträge

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