Support Article

AtmosphereFramework exception generated in log files

SA-66252

Summary



Post upgrade to Pega Cloud 2.7, AtmosphereFramework exception is generated in the log files.


Error Messages



[ttp-apr-8080-exec-17] [  ] [  ] [  ] (AtmosphereFramework) ERROR - AtmosphereFramework exception 
java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations. 
    at org.apache.catalina.connector.Request.startAsync(Request.java:1675) 
    at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1029) 
    at org.atmosphere.cpr.AtmosphereRequestImpl.startAsync(AtmosphereRequestImpl.java:631) 
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:95) 
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:70) 
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2209) 
    at com.pega.pegarules.session.internal.serverpush.atmosphere.AtmospherePushEngine.handleRequestHook(AtmospherePushEngine.java:305) 
    at com.pega.pegarules.session.internal.serverpush.AbstractPushEngine.handleRequest(AbstractPushEngine.java:237) 
    at com.pega.pegarules.session.internal.engineinterface.service.AsyncRequestAPI.processRequest(AsyncRequestAPI.java:57) 
    at
.
.
.
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411) 
    at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) 
    at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273) 
    at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:121) 
    at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:92) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
    at com.pega.pegarules.internal.web.servlet.WebStandardBootFilter.doFilter(WebStandardBootFilter.java:23) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) 
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683) 
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) 
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115) 
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) 
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549) 
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
    at java.lang.Thread.run(Thread.java:748)



Steps to Reproduce



Upgrade Pega Cloud 2.4 infrastructure to Pega Cloud 2.7.


Root Cause



A defect in Pegasystems’ code or rules.
For atmosphere related error logs, disable the server Push feature if it is not used.



Resolution



Perform the following local-change:
  1. Create a Dynamic System Setting (DSS) with the below details.

    Owning-Ruleset: "Pega-Engine
    Setting Purpose: "prconfig/server-push/enabled/default" 
    Value: "false" 

     
  2. Restart the server.

 
Suggest Edit

Published November 29, 2018 - Updated October 8, 2020


0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.