dhia.xd...@gmail.com schrieb am Mittwoch, 28. September 2022 um 12:21:36 UTC+2:
I have a gwt app that is running when deployed on tomcat on server AFor some reason the same app when is deployed on tomcat on a server B has a session issueWe have Method 1 and Method 2 inside a servlet that extends RemoteServiceServletWe have a method1 in which we do:this.getThreadLocalRequest.getSession(true).setAttribute("myuserid", myuserid)Then in a second method we dothis.getThreadLocalRequest.getSession(false).getAttribute("myuserid")which throws a null pointer exception as getSession retuns nullIt is strange as this only happens on the server BI have verified the tomcat config files like context.xml files and they are identicalI have printed currentThread.gtId() inside both methods and they are different but as said no issue on server A.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/1daa9506-05c3-46ad-92c6-d3189576ea1en%40googlegroups.com.