Thanks Geoff! I downloaded your fix and by putting in the print statement verified I was getting multiple copies of UnboundMethodError before the fix and only one after the fix.
If I understand the problem correctly, the className.methodName(self,...) form of call does a global lookup and the error message was saying it found an instance with the right name, but it was the wrong copy. The self.methodName(...) form does a local lookup and avoided the multiple copy confusion. Roger Haase On Sunday 14 July 2002 10:08 am, Geoff Talvola wrote: > I just checked in a fix to Webware CVS. Give it a try. > > - Geoff > > On Sun, 2002-07-14 at 12:36, Geoff Talvola wrote: > > This isn't a Python problem -- it's a bug in Webware. > > > > If you put a print statement at the end of UnboundMethodError.py you'll > > find that the module actually gets imported multiple times. This > > somehow causes a mismatch between the instances and the classes that > > triggers the error you're noticing. > > > > If you restart the appserver, then use your web browser to directly > > access the UnboundMethodError servlet, then go to UnboundMethod.html, > > the error goes away. The images come up fine with no errors as long as > > the appserver stays running. > > > > What this leads me to believe is that there is a race condition in > > WebKit. If there are multiple simultaneous requests for a servlet that > > hasn't yet been loaded, the module containing the servlet gets imported > > multiple times simultaneously, causing various errors. This would > > persist through the lifetime of the appserver since it never throws away > > old servlet instances. But if the first access for the servlet occurs > > in isolation, then the problem is avoided. > > > > I'll see if I can add some locking into ServletFactory to solve the > > problem. > > > > - Geoff > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss