"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
learn-legacy-article-disclaimer-text
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