| <class '_mysql_exceptions.OperationalError'> | Python 2.5.1: /usr/local/bin/python2.5 Tue Oct 7 02:30:02 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/local/cgi/20un/products/CompanyProducts.py in |
| 136 self.__ncg.display(r'%sCompanyProducts.html' %self.htmlDocsPath) |
| 137 |
| 138 coObj=CompanyProcucts() |
| 139 coObj.show() |
| 140 |
| coObj = <__main__.CompanyProcucts instance at 0x81cc46c>, coObj.show = <bound method CompanyProcucts.show of <__main__.CompanyProcucts instance at 0x81cc46c>> |
| /usr/local/cgi/20un/products/CompanyProducts.py in show(self=<__main__.CompanyProcucts instance at 0x81cc46c>) |
| 120 self.checkLogin() |
| 121 self.setHotProducts(mainID) |
| 122 self.setVisGroups(mainID) |
| 123 self.setCompanyInfo(mainID) |
| 124 productCount=self.setProductInfo(mainID,page) |
| self = <__main__.CompanyProcucts instance at 0x81cc46c>, self.setVisGroups = <bound method CompanyProcucts.setVisGroups of <__main__.CompanyProcucts instance at 0x81cc46c>>, mainID = 133980 |
| /usr/local/cgi/20un/products/CompanyProducts.py in setVisGroups(self=<__main__.CompanyProcucts instance at 0x81cc46c>, mainID=133980) |
| 35 count = 0 |
| 36 setValue = self.__ncg.hdf.setValue |
| 37 visGroups = VisGroup().getVisGroupsByUserID(mainID) |
| 38 if visGroups : |
| 39 setValue('visGroupBox','set') |
| visGroups undefined, VisGroup = <class VisGroupManager.VisGroup at 0x8305e9c>, ).getVisGroupsByUserID = <unbound method VisGroup.getVisGroupsByUserID>, mainID = 133980 |
| /usr/local/core/VisGroupManager.py in getVisGroupsByUserID(self=<VisGroupManager.VisGroup instance at 0x831cf2c>, mainID=133980, count=10) |
| 42 params = [mainID] |
| 43 from UserManager import User |
| 44 userObj = User({'ID':mainID}) |
| 45 catIDs = userObj.getUserCategories() |
| 46 if catIDs: |
| userObj undefined, User = <class UserManager.User at 0x81e8a4c>, mainID = 133980 |
| /usr/local/core/UserManager.py in __init__(self=<UserManager.User instance at 0x831ceec>, params={'ID': 133980}) |
| 67 def __init__(self,params={}): |
| 68 import DataAccessLayer |
| 69 self.__dataObj = DataAccessLayer.DataLayer() |
| 70 if type(params)!= type({}): raise ValueError,'Invalid Value' |
| 71 for field in params: |
| self = <UserManager.User instance at 0x831ceec>, self.__dataObj undefined, DataAccessLayer = <module 'DataAccessLayer' from '/usr/local/core/DataAccessLayer.pyc'>, DataAccessLayer.DataLayer = <class DataAccessLayer.DataLayer at 0x827cecc> |
| /usr/local/core/DataAccessLayer.py in __init__(self=<DataAccessLayer.DataLayer instance at 0x832206c>) |
| 49 |
| 50 class DataLayer: |
| 51 def __init__(self): self.__sqlObj = SQLDataAccess() |
| 52 |
| 53 |
| __init__ undefined, self = <DataAccessLayer.DataLayer instance at 0x832206c>, self.__sqlObj undefined, global SQLDataAccess = <class DataAccessLayer.SQLDataAccess at 0x827ce9c> |
| /usr/local/core/DataAccessLayer.py in __init__(self=<DataAccessLayer.SQLDataAccess instance at 0x83223ac>) |
| 12 self.__connection = MySQLdb.connect(host=ncg.hdf.getValue('dbHost','localhost'),user=ncg.hdf.getValue('dbUser',''), |
| 13 passwd=ncg.hdf.getValue('dbPass',''),db=ncg.hdf.getValue('dbDB',''), |
| 14 client_flag =65536|131072) # client_flags: CLIENT_MULTI_STATEMENTS 65536 , CLIENT_MULTI_RESULTS 131072 |
| 15 except: raise |
| 16 |
| client_flag undefined |
| /usr/local/lib/python2.5/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'xQlm#i75m', 'user': 'kbnt3KG#p'}) |
| 72 """Factory function for connections.Connection.""" |
| 73 from connections import Connection |
| 74 return Connection(*args, **kwargs) |
| 75 |
| 76 connect = Connection = Connect |
| Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'xQlm#i75m', 'user': 'kbnt3KG#p'} |
| /usr/local/lib/python2.5/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 836dc0c>, *args=(), **kwargs={'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'xQlm#i75m', 'user': 'kbnt3KG#p'}) |
| 168 kwargs2['client_flag'] = client_flag |
| 169 |
| 170 super(Connection, self).__init__(*args, **kwargs2) |
| 171 |
| 172 self.encoders = dict([ (k, v) for k, v in conv.items() |
| builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 836dc0c>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 836dc0c>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x8281294>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x82811ec>, ...}, 'db': 'main', 'host': 'localhost', 'passwd': 'xQlm#i75m', 'user': 'kbnt3KG#p'} |
<class '_mysql_exceptions.OperationalError'>: (1040, 'Too many connections')