Async Servlet in Jira Server 8.x

Hello,

We have develop a custom add on jira, which uses server sent events via async http servlet(servlet-api 3.0.1). It works fine in Jira 7.13.5, but when we upgrade our jira to 8.2.3 the servlet stopped working.

We got a following error message: java.lang.IllegalStateException: One of the plugins in the filter chain does not support async.

Is there any way to use async servlet in Jira 8.x?

We tried to extend our servlet descriptor in the atlassian-plugin.xml with the < async-supported >true< /async-supported > flag, but it’s not resolve the problem.

Atlassian dependencies versions are:

com.atlassian.jira:jira-api: 8.2.3
com.atlassian.maven.plugins:jira-maven-plugin: 8.0.2
com.atlassian.jira.tests:jira-testkit-plugin: 8.1.11

Regards,
Péter Magnucz

I have the same issue. How can I fix it?

1 Like

Hello,

Unfortunately we have not found a satisfactory solution so far, so we are currently using polling if the asynchronous servlet is unavailable.

We achieved partial results with the Atmosphere Framework, but the application server was shut down at high load. Unfortunately, this may be due to a configuration error. Due to lack of time, we are not working on integrating the framework at this time.

Regards,
Peter

Problem solved as follows:

You shouldn’t use async servlets to start j task.