← Back to team overview

credativ team mailing list archive

[Bug 909199] Re: Parse error in base_module_meta.xml

 

*** This bug is a duplicate of bug 906362 ***
    https://bugs.launchpad.net/bugs/906362

** This bug has been marked a duplicate of bug 908069
   KeyError: 'serialization_field_id'

** This bug is no longer a duplicate of bug 908069
   KeyError: 'serialization_field_id'
** This bug has been marked a duplicate of bug 906362
   [6.1/trunk] regression in module loading since around rev #3887:  "name" violates not-null constraint

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/909199

Title:
  Parse error in base_module_meta.xml

Status in OpenERP Server:
  New

Bug description:
  Trunk version as of 27.12.2011

  When trying to create a clean database with demo data I get this
  exception in the server:

  }
  [2011-12-28 01:15:07,241][?] INFO:werkzeug:10.1.1.124 - - [28/Dec/2011 01:15:07] "POST /web/database/progress HTTP/1.1" 200 -
  [2011-12-28 01:15:07,343][test1] INFO:init.load:module base: loading security/base_security.xml
  [2011-12-28 01:15:07,577][test1] INFO:init.load:module base: loading base_menu.xml
  [2011-12-28 01:15:07,770][?] INFO:web.common.http:remove session 08c322f4897b4ec490ed5eb51148b7e8: {}
  [2011-12-28 01:15:07,773][?] INFO:werkzeug:10.1.1.124 - - [28/Dec/2011 01:15:07] "POST /web/database/progress HTTP/1.1" 200 -
  [2011-12-28 01:15:07,811][test1] INFO:init.load:module base: loading base_module_meta.xml
  [2011-12-28 01:15:07,821][test1] ERROR:db.cursor:bad query: insert into "ir_module_module" (id,"license","sequence","demo","state","application","complexity",create_uid,create_date) values (15,E'AGPL-3',10,E'False',E'uninstalled',E'False',E'normal',1,now())
  Traceback (most recent call last):
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  [2011-12-28 01:15:07,822][test1] ERROR:tools.convert.xml_import:Parse error in /home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/addons/base/base_module_meta.xml:5: 
  <record id="base.module_account_accountant" model="ir.module.module">
              <field name="sequence">10</field>
          </record>
  Traceback (most recent call last):
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/tools/convert.py", line 856, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 732, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/osv/orm.py", line 4134, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  [2011-12-28 01:15:07,827][test1] ERROR:db.create:CREATE DATABASE failed:
  Traceback (most recent call last):
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/service/web_services.py", line 66, in _initialize_db
      update_module=True)[1]
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/pooler.py", line 39, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 299, in load_modules
      loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 192, in load_module_graph
      load_init_xml(module_name, idref, mode)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 91, in <lambda>
      load_init_xml = lambda *args: _load_data(cr, *args, kind='init_xml')
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 140, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/tools/convert.py", line 999, in convert_xml_import
      obj.parse(doc.getroot())
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/tools/convert.py", line 856, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 732, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/osv/orm.py", line 4134, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  Exception in thread Thread-3:
  Traceback (most recent call last):
    File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
      self.run()
    File "/usr/lib64/python2.7/threading.py", line 483, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/service/web_services.py", line 88, in _initialize_db
      cr.close()
    File "/home/openerp61/trunk/lib/python2.7/site-packages/openerp-6.1beta-py2.7.egg/openerp/sql_db.py", line 152, in wrapper
      raise psycopg2.OperationalError(msg)
  OperationalError: Unable to use a closed cursor.

  [2011-12-28 01:15:08,305][?] INFO:web.common.http:remove session
  b5a91f425f5d48909aeea9ae0b06aa65: {}

  Something really basic failing here it seems, but I don't know enough
  to fix it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/909199/+subscriptions


References