Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: Liferay 7.3.6 GA7 java.lang.NullPointerException in service builder
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.
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
Hola, conseguiste resolver este problema, yo estoy en la misma situación
I forgot to mention that I've tried disabling the entity cache and the result is the same
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")
Hello,
Have you managed to solve this problem? I am in the same situation and I do not see a solution
No. I couldn't resolve it. Have you tried what Christoph Rabel has suggested.
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
Powered by Liferay™