Open Fikili opened 9 months ago
BTW, similar problem is here: https://hub.alfresco.com/t5/alfresco-content-services-forum/problems-copying-a-document-to-several-userhome/td-p/162082
Added custom debug messages to capture the problem:
[org.orderofthebee.addons.support.tools.repo.jsconsole.CacheBackedChunkedList] [http-nio-8080-exec-13] Chunk size = 170
[org.orderofthebee.addons.support.tools.repo.jsconsole.CacheBackedChunkedList] [http-nio-8080-exec-13] ChunkKey = (1707482785335, 170)
[org.orderofthebee.addons.support.tools.repo.jsconsole.CacheBackedChunkedList] [http-nio-8080-exec-13] chunkList = null
[org.orderofthebee.addons.support.tools.repo.jsconsole.CacheBackedChunkedList] [http-nio-8080-exec-13] AlfrescoRuntimeException was thrown with = null
[org.orderofthebee.addons.support.tools.repo.jsconsole.ExecuteWebscript] [http-nio-8080-exec-13] Caught exception; decorating with appropriate status template
The problem seems to be related Alfresco clustering and used cache if the clustering is enabled.
If clustering is OFF (alfresco.cluster.enabled=false
), DefaultSimpleCache is used and everything works fine.
If clustering is ON, HazelcastSimpleCache is used and the problem can be seen.
After another Alfresco restart, I cannot reproduce the issue. I will monitor the situation and if it doesn't appear in a month, I will close the case.
BUG
Script executed from JS Console receives NPE. The script doesn't need to contain any Alfresco service. Example of the script:
The issue can be reproduced around value
index < 500
.The same script was implemented as common webscript and it runs fine.
Expected behavior
Script will be completed without any problem.
Actual behavior
NullPointerException is thrown.
Steps to reproduce the behavior
Run the script above.
Additional details (analysis so far, log statements, references, etc.)
alfresco.log
Tell us about your environment