Details
-
Bug
-
Status: Open
-
Medium
-
Resolution: Unresolved
-
Xporter DC 7.2.4
-
None
-
None
-
Data Center
Description
Description
Xporter users are encountering multiple stack trace entries in the logs related to the invalid use of RequestCache by a thread. Some users report that this issue occurs when developers fail to initialize the thread cache context, potentially leading to further errors.
How to reproduce
- Search Support Zip for this entry
Actual result/Attachments
2025-03-31 14:18:00,133+0000 Xporter-7a32a43621bb4d2e86ded07a9fd4d596 ERROR goncalo.nunes [c.a.j.cache.request.RequestCacheRecorderImpl] Invalid use of RequestCache by thread: Xporter.Incorrect usage of JIRA API. You can only create/use: RequestCacheImpl inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtil for details. This message will be logged once per thread. This ERROR should be fixed on the caller side (check the stack-trace or thread-name) as it is causing inconsistent data. java.lang.Throwable at com.atlassian.jira.cache.request.RequestCacheRecorderImpl.errorLogOOCThreadUsage(RequestCacheRecorderImpl.java:32) at com.atlassian.jira.cache.request.RequestCacheRecorderImpl.recordRequestCacheOOCUsage(RequestCacheRecorderImpl.java:25) at com.atlassian.jira.cache.request.RequestCacheImpl.get(RequestCacheImpl.java:47) at java.base/java.util.Optional.map(Optional.java:260) at com.atlassian.jira.issue.link.DefaultIssueLinkManager.getOutwardLinks(DefaultIssueLinkManager.java:339) at com.atlassian.jira.config.DefaultSubTaskManager.getSubTaskIssueLinks(DefaultSubTaskManager.java:394) at com.atlassian.jira.config.DefaultSubTaskManager.getSubTaskObjects(DefaultSubTaskManager.java:411) at com.atlassian.jira.issue.IssueImpl$2.create(IssueImpl.java:178) at com.atlassian.jira.issue.IssueImpl$2.create(IssueImpl.java:175) at io.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:185) at io.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:332) at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:150) at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116) at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95) at com.atlassian.jira.issue.IssueImpl.getSubTaskObjects(IssueImpl.java:1060) at com.xpandit.jiraxporter.manager.impl.XporterFieldRetrieverImpl.lambda$getFieldRetriever$171(Unknown Source) at com.xpandit.jiraxporter.mapping.c.a(Unknown Source) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at com.xpandit.jiraxporter.mapping.c.b(Unknown Source) at com.xpandit.jiraxporter.mapping.c.a(Unknown Source) at com.xpandit.jiraxporter.workflow.CreateDocumentFunction.getFields(Unknown Source) at com.xpandit.jiraxporter.workflow.d.a(Unknown Source) at com.xpandit.jiraxporter.workflow.d.a(Unknown Source) at com.xpandit.jiraxporter.workflow.d.a(Unknown Source) at com.xpandit.jiraxporter.component.scheduler.ScheduleReporting.sendByEmail(Unknown Source) at com.xpandit.jiraxporter.component.scheduler.ScheduleReporting.lambda$null$0(Unknown Source) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at com.xpandit.jiraxporter.component.scheduler.ScheduleReporting.lambda$runJob$1(Unknown Source) at com.xpandit.jiraxporter.component.a.a.j(Unknown Source) at com.xpandit.jiraxporter.component.a.a.run(Unknown Source) at java.base/java.lang.Thread.run(Thread.java:840)