Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error message: Invalid use of RequestCache by thread: ProjectImport: .Incorrect usage of JIRA API.

Tim C
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

Hi,

I'm having problems doing a single project import (on Jira v9.2 datacenter) from a full system backup/export as created from a different server (of same Jira version).

Anyone got any ideas or advice about the following error message in the logs ...???

-----

ProjectImport: CreateIssues:thread-8 ERROR <myemailaddress.co.uk>

/secure/admin/ProjectImportSummary.jspa

[c.a.j.cache.request.RequestCacheRecorderImpl] Invalid use of RequestCache by thread: ProjectImport: .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.

---

Immediately, after the above - there's loads of entries showing that the actual importing of issues are failing (as shown):

 

2022-10-05 16:34:22,934+0000 ProjectImport: CreateIssues:thread-4 ERROR /secure/admin/ProjectImportSummary.jspa [c.a.j.imports.project.DefaultProjectImportPersister] Unable to create issue with key 'CRMSF-493'.

2022-10-05 16:34:16,717+0000 ProjectImport: CreateIssues:thread-8 ERROR /secure/admin/ProjectImportSummary.jspa [c.a.j.imports.project.DefaultProjectImportPersister] Unable to create issue with key 'CRMSF-673'.

2022-10-05 16:34:10,719+0000 ProjectImport: CreateIssues:thread-6 ERROR /secure/admin/ProjectImportSummary.jspa [c.a.j.imports.project.DefaultProjectImportPersister] Unable to create issue with key 'CRMSF-417'.

 

Thanks in advance - for any help or advice.

 

1 answer

0 votes
Tim C
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2022

FYI. Atlassian reviewed the logs and claim there's a number of plug-ins which can give this error ...

Check for these common plugins known to cause this error; JIRA Suite Utilities, JIRA Misc Utilities, Minyaa Suite, or JIRA Email This Issue.

 

The source & target servers do already have both JIRA Suite Utilities & JIRA Misc Utilities installed - so could be causing the problem.

Tim C
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2022

Issue tracked down JSU ... the project importing process couldn't cope for data where workflow has a JSU-based "post-processing" step on the initial "on create" transition.

Removed the JSU command (on the workflow) and all imported fine - no errors.

Suggest an answer

Log in or Sign up to answer