From: Nikolaos P. <nk...@cc...> - 2006-02-20 19:03:13
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"= > <title></title> </head> <body bgcolor=3D"#ffffff" text=3D"#000000"> Hi Lane,<br> <br> Lane Sharman wrote: <blockquote cite=3D"mid...@dm..." type=3D"cite"><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">Hi Nikolaos.<br> <br> This is most disturbing to hear about.<br> </font></blockquote> <br> Thank you for replying.<br> <blockquote cite=3D"mid...@dm..." type=3D"cite"><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2"><br> First, there is a known concurrency issue with WM in 2.0 and possibly in prior releases. If you look at the mail thread dating back for 45 days, you will definitely see it.<br> </font></blockquote> <br> I will take a look at that thread.<br> <br> <blockquote cite=3D"mid...@dm..." type=3D"cite"><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2"><br> My concern is that the webmacro instance, shared, and the context, not shared, is improperly orchestrated for concurrency. The webmacro instance is local to WMServlet. You might consider synchronizing access to this variable as a trial fix in your local calls below. This will introduce some serialization of web processing but it might help to verify the solution.<br> <br> </font></blockquote> <br> I will try this tip<br> <br> <blockquote cite=3D"mid...@dm..." type=3D"cite"><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">One thing you might consider trying is to use a different cache handler. A few years ago, I wrote one and it is a part of the distro. I have never had a problem using this cache handler.<br> <br> Lane<br> </font></blockquote> <br> <br> Thank you !<br> <blockquote cite=3D"mid...@dm..." type=3D"cite"><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2"><br> --- Nikolaos Papadakis <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:= nk...@cc..."><nk...@cc...></a> wrote:<br> <br> From: Nikolaos Papadakis <a class=3D"moz-txt-link-rfc2396E" href=3D"mailt= o:nk...@cc..."><nk...@cc...></a><br> Date: Sat, 18 Feb 2006 10:50:33 +0200<br> To: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:webmacro-user@li= sts.sourceforge.net">web...@li...</a><br> Subject: [WebMacro-user] [WebMacro-user<br> <br> Hi all, <br> <br> I am using webmacro to develop a web-based application. <br> Things seemed to work fine till yesterday. A customer complained that he <br> managed to =E2=80=9Csee=E2=80=9D the account of another customer when he = logged-in using <br> his own credentials (he send me a screen shot of the =E2=80=9Cview=E2=80=9D= ). <br> By inspecting the log file I found that both users have been logged-in <b= r> at the same time (the second customer logged in 3 sec after the first <br= > customer). <br> The system has more than 1000 customers but this inconvenience happened <br> for the first time yesterday (?). <br> It seems that different sessions have been mixed up. <br> The servlet includes a handle method and uses several other methods <br> (methods that write and read from a database). <br> All methods are defined in the same class (that extends WMServlet). <br> As far as I know servlets must not have instance variables (only local <b= r> variables -inside methods- to prevent data corruption and <br> inconsistencies). However in my servlet I use only one non local <br> variable (a Logger) and I don't think this is the cause of the problem. <br> As an attached file I send you a fragment of the before mentioned servlet. <br> Can instance variables be defined in the case of a servlet that extends <br> WMServlet? (I mean is it safe? or its not a good practice without <br> keeping precautions?) <br> Do you have any idea what can have caused this inconvenience ? <br> Is the use of methods inside the servlet thread-safe ? <br> <br> Please help!!! <br> Nikolaos Papadakis <br> </font>------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a class=3D"moz-txt-link-freetext" href=3D"http://sel.as-us.falkag.net/se= l?cmd=3Dk&kid=103432&bid#0486&dat=121642">http://sel.as-us.falkag.net/sel= ?cmd=3Dk&kid=103432&bid#0486&dat=121642</a> _______________________________________________ Webmacro-user mailing list <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Webmacro-user@lists.= sourceforge.net">Web...@li...</a> <a class=3D"moz-txt-link-freetext" href=3D"https://lists.sourceforge.net/= lists/listinfo/webmacro-user">https://lists.sourceforge.net/lists/listinf= o/webmacro-user</a> </blockquote> </body> </html> |