Legacy Knowledge Base
Published Sep. 10, 2025

"Unable to persist buffered increment value" Error in Liferay Logs

Written By

Allison McGill

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I am seeing the following errors thrown regularly in my Liferay console logs. How can I resolve this?
ERROR [BufferedIncrement-default-2][BufferedIncrementRunnable:54] Unable to persist buffered increment value: com.liferay.view.count.service.ViewCountEntryLocalService.incrementViewCount(long,long,long,int)@com.liferay.view.count.service.impl.ViewCountEntryLocalServiceImpl([56681928215437, 20009, 32943, 1]) 
java.lang.NullPointerException: null
at com.liferay.document.library.internal.view.count.model.listener.DLFileEntryViewCountEntryModelListener.onAfterIncrement(DLFileEntryViewCountEntryModelListener.java:34) ~[?:?]
at com.liferay.view.count.service.impl.ViewCountEntryLocalServiceImpl.incrementViewCount(ViewCountEntryLocalServiceImpl.java:137) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:60) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:90) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.internal.increment.BufferedIncreasableEntry.proceed(BufferedIncreasableEntry.java:56) ~[portal-impl.jar:?]
at com.liferay.portal.internal.increment.BufferedIncrementRunnable.run(BufferedIncrementRunnable.java:51) [portal-impl.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]

Environment

  • Liferay Quarterly Releases

Resolution

  • This fix will be included in a later 2024.Q2 release. Please open a Liferay Support ticket, and request the fix for LPD-31257.

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base