Problems with threading

0 views
Skip to first unread message

Gerhard Kalab

unread,
Oct 30, 2005, 9:22:05 AM10/30/05
to turbo...@googlegroups.com
Hi,

I started to convert the dvdstore2 from http://linux.dell.com/dvdstore/ to
turbogears.

Everything worked fine until I put server.threadPool=10 into the config
files.

Since then I get weird errors like the following if I stress test the app.

Any ideas?

Thanks,
Gerhard

2005/10/30 14:52:22 INFO Traceback (most recent call last):
File
"c:\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py",
line 271, in run
main()
File
"c:\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py",
line 502, in main
body = page_handler(*args, **cherrypy.request.paramMap)
File
"c:\python24\lib\site-packages\turbogears-0.8a4-py2.4.egg\turbogears\controllers.py",
line 121, in newfunc
output = func(self, *args, **kw)
File "D:\Daten\privat\ds2\ds2\controllers.py", line 33, in default
return self.purchasecomplete(**kw)
File
"c:\python24\lib\site-packages\turbogears-0.8a4-py2.4.egg\turbogears\controllers.py",
line 121, in newfunc
output = func(self, *args, **kw)
File "D:\Daten\privat\ds2\ds2\controllers.py", line 282, in
purchasecomplete
orderdate=datetime.datetime.today())
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1183, in __init__
self._create(id, **kw)
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1207, in _create
self.set(**kw)
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1084, in set
raise AttributeError, '%s (with attribute %r)' % (e, name)
AttributeError: 'OrderLine' object has no attribute 'id' (with attribute
'product')

-------------------

2005/10/30 14:52:32 INFO Traceback (most recent call last):
File
"c:\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py",
line 271, in run
main()
File
"c:\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py",
line 502, in main
body = page_handler(*args, **cherrypy.request.paramMap)
File
"c:\python24\lib\site-packages\turbogears-0.8a4-py2.4.egg\turbogears\controllers.py",
line 121, in newfunc
output = func(self, *args, **kw)
File "D:\Daten\privat\ds2\ds2\controllers.py", line 33, in default
return self.purchasecomplete(**kw)
File
"c:\python24\lib\site-packages\turbogears-0.8a4-py2.4.egg\turbogears\controllers.py",
line 121, in newfunc
output = func(self, *args, **kw)
File "D:\Daten\privat\ds2\ds2\controllers.py", line 286, in
purchasecomplete
product = product)
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1183, in __init__
self._create(id, **kw)
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1210, in _create
self._SO_finishCreate(id)
File
"c:\python24\lib\site-packages\sqlobject-0.7.0-py2.4.egg\sqlobject\main.py",
line 1228, in _SO_finishCreate
del self.sqlmeta._creating
AttributeError: _creating

--
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl

william

unread,
Oct 30, 2005, 12:51:50 PM10/30/05
to TurboGears

I've got such problems (with Postgres 8) and I've disabled the
autoCommit (which is, by default activated).
Reply all
Reply to author
Forward
0 new messages