java.lang.InterruptedException while associating a workflow to new issue type
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Associating new issue type to workflow throws "java.lang.RuntimeException: java.lang.InterruptedException"
Environment
Jira 9.x.x
Diagnosis
Associating new issue type to workflow gives the below error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Sorry, we had some technical problems during your last operation.
Log's referral number: da4877c8-708f-46f1-ac0f-94440549368f
Referer URL: https://xxx/secure/project/SelectProjectWorkflowSchemeStep2!default.jspa?draftMigration=true&projectId=xxx&schemeId=xxx
java.lang.RuntimeException: java.lang.InterruptedException
java.lang.RuntimeException: java.lang.InterruptedException
at com.atlassian.jira.task.TaskManagerImpl.withTaskMap(TaskManagerImpl.java:132) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:207) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:148) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:141) [classes/:?]
at com.atlassian.jira.workflow.migration.AbstractWorkflowSchemeMigrationHelper.migrateAsync(AbstractWorkflowSchemeMigrationHelper.java:361) [classes/:?]
at com.atlassian.jira.web.action.admin.workflow.scheme.SelectProjectWorkflowSchemeStep2.lambda$doExecute$0(SelectProjectWorkflowSchemeStep2.java:115) [classes/:?]
at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.waitForUpdatesToFinishAndExecute(DefaultWorkflowSchemeManager.java:871) [classes/:?]
....
Caused by: java.lang.InterruptedException
at java.base/java.util.concurrent.FutureTask.awaitDone(FutureTask.java:418) [?:?]
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:190) [?:?]
at com.atlassian.jira.task.TaskManagerImpl.withTaskMap(TaskManagerImpl.java:130) [classes/:?]
... 329 more
Catalina.out
1
2
3
4
5
6
2024-08-22 11:11:32,779+0000 http-nio-8080-exec-18 url: /internal-error ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=e42adf62-192d-4ba8-b1ba-a07db7823b7a, interpretedMsg=, cause=java.lang.RuntimeException: java.lang.InterruptedException, stacktrace=java.lang.RuntimeException: java.lang.InterruptedException
at com.atlassian.jira.task.TaskManagerImpl.withTaskMap(TaskManagerImpl.java:132) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:207) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:148) [classes/:?]
at com.atlassian.jira.task.TaskManagerImpl.submitTask(TaskManagerImpl.java:141) [classes/:?]
at com.atlassian.jira.workflow.migration.AbstractWorkflowSchemeMigrationHelper.migrateAsync(AbstractWorkflowSchemeMigrationHelper.java:361) [classes/:?]
Cause
interruptThreadThreshold="120" interrupting thread as defined in server.xml
1
2
3
4
5
6
Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="120" interruptThreadThreshold="120" />
</Context>"
Solution
Stop Jira Service.
Edit "server.xml" file and increase interruptThreadThreshold value to a higher value or remove interruptThreadThreshold parameter from server.xml.
Restart Jira service.
Associate workflow to new issue type
Was this helpful?