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

thumbnail
Prashant Ballal, modificado hace 4 años. New Member Mensajes: 8 Fecha de incorporación: 13/01/20 Mensajes recientes

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, modificado hace 4 años. New Member Mensajes: 9 Fecha de incorporación: 27/11/19 Mensajes recientes

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, modificado hace 4 años. New Member Mensajes: 15 Fecha de incorporación: 27/06/11 Mensajes recientes

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

Mario González, modificado hace 4 años. New Member Mensajes: 9 Fecha de incorporación: 27/11/19 Mensajes recientes

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

thumbnail
Prashant Ballal, modificado hace 4 años. Liferay Legend Mensajes: 1555 Fecha de incorporación: 24/09/09 Mensajes recientes

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, modificado hace 4 años. New Member Mensajes: 15 Fecha de incorporación: 27/06/11 Mensajes recientes

Hello,

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

thumbnail
Prashant Ballal, modificado hace 4 años. New Member Mensajes: 8 Fecha de incorporación: 13/01/20 Mensajes recientes

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

Francisco Javier Rivera, modificado hace 4 años. New Member Mensajes: 15 Fecha de incorporación: 27/06/11 Mensajes recientes

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