wt., 23 sie 2022 o 13:37 Johannes Geppert <jo...@apache.org> napisał(a): > > Hi Lukasz, > > I just checked if it is easy to migrate the AWS serverless implementation > <https://github.com/awslabs/aws-serverless-java-container> from Struts2 to > 6.0.0. > Unfortunately it looks like the session handling has changed a bit and > raises a null pointer exception. > > ERROR DefaultDispatcherErrorHandler Exception occurred during processing > request: null > java.lang.NullPointerException > at > com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest.getSession(AwsHttpServletRequest.java:139) > at > javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:270) > at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:171) > at > org.apache.struts2.interceptor.csp.DefaultCspSettings.associateNonceWithSession(DefaultCspSettings.java:83) > at > org.apache.struts2.interceptor.csp.DefaultCspSettings.addCspHeaders(DefaultCspSettings.java:71) > at > org.apache.struts2.interceptor.csp.CspInterceptor.beforeResult(CspInterceptor.java:49) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:274) > > Any idea about the root cause and hint to the possible change?
Does it work with 6.0.0? And it's probably related to this change https://issues.apache.org/jira/browse/WW-5203 So maybe it need to be reverted Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org