← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 530019] Re: junk after document element

 

Hello,

We had this issue when trying to import attributes and we found its
cause.

First, here is how I investigated :
I temporarily activated the verbose on the xmlrpc connection
magerp.osv -> Connection.connect :
        self.ser = xmlrpclib.ServerProxy(self.location, verbose=True)
So the xml details are output and also the eventual errors.

For example, we got the following message  :
reply: 'HTTP/1.1 200 OK\r\n'
header: Server: nginx/0.8.53
header: Date: Tue, 09 Nov 2010 17:08:53 GMT
header: Content-Type: text/xml; charset=utf-8
header: Connection: close
header: Cache-Control: max-age=31536000
header: Expires: Wed, 09 Nov 2011 17:08:49 GMT
header: Vary: Accept-Encoding
header: Content-Length: 209
body: '<br />\n<b>Fatal error</b>:  Allowed memory size of 134217728
bytes exhausted (tried to allocate 28349 bytes) in
<b>/data/www/magento/preprod/lib/Zend/XmlRpc/Value.php</b>
on line <b>139</b><br />\n'

Then, it only remained to change the webserver configuration to increase
the memory size limit.

It's possible that others webserver errors can induce the "junk after
document element" error, so I propose to anyone having the same error to
proceed like that to check if it's the same issue or not.

Guewen

-- 
junk after document element
https://bugs.launchpad.net/bugs/530019
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in Magento Open ERP Connector: Won't Fix

Bug description:
Hello !!
When attempting an import product magento to OpenERP I get this error:
junk after document element

To which may be due?
Thanks

Environment Information : 
System : Linux-2.6.24-27-server-x86_64-with-debian-lenny-sid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 8.04.4 LTS
Release:	8.04
Codename:	hardy
Operating System Release : 2.6.24-27-server
Operating System Version : #1 SMP Wed Jan 27 23:39:33 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : es_ES.UTF8
Python Version : 2.5.2
OpenERP-Client Version : 5.0.7
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 576, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/magerp_core.py", line 150, in sync_products
    list_prods = attr_conn.call('catalog_product.list')
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/magerp_osv.py", line 87, in call
    return self.try_call(method, arguments)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/magerp_osv.py", line 60, in try_call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1335, in _parse_response
    p.feed(response)
  File "/usr/lib/python2.5/xmlrpclib.py", line 547, in feed
    self._parser.Parse(data, 0)
ExpatError: junk after document element: line 2, column 0