Exception: Start tag expected, '<' not found, line 1, column 1

Bug #694409 reported by OpenBMS JSC
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

I experience the following when generating a PDF report from RML

[2010-12-26 11:41:23,739][crdev] ERROR:web-services:[01]: Exception: Start tag expected, '<' not found, line 1, column 1
[2010-12-26 11:41:23,739][crdev] ERROR:web-services:[02]: Traceback (most recent call last):
[2010-12-26 11:41:23,739][crdev] ERROR:web-services:[03]: File "/var/local/software/openerp-v6.0dev/server/bin/service/web_services.py", line 723, in go
[2010-12-26 11:41:23,739][crdev] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-12-26 11:41:23,739][crdev] ERROR:web-services:[05]: File "/var/local/software/openerp-v6.0dev/server/bin/report/report_sxw.py", line 426, in create
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[07]: File "/var/local/software/openerp-v6.0dev/server/bin/report/report_sxw.py", line 489, in create_source_pdf
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[09]: File "/var/local/software/openerp-v6.0dev/server/bin/report/report_sxw.py", line 504, in create_single_pdf
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[10]: processed_rml = etree.XML(rml)
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[11]: File "lxml.etree.pyx", line 2512, in lxml.etree.XML (src/lxml/lxml.etree.c:48421)
[2010-12-26 11:41:23,740][crdev] ERROR:web-services:[12]: File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:72245)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[13]: File "parser.pxi", line 1417, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:71041)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[14]: File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67581)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[15]: File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[16]: File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[17]: File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64521)
[2010-12-26 11:41:23,741][crdev] ERROR:web-services:[18]: XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
[2010-12-26 11:41:23,787][crdev] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/var/local/software/openerp-v6.0dev/server/bin/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/var/local/software/openerp-v6.0dev/server/bin/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException

$ bzr version-info
revision-id: launchpad_translations_on_behalf_of_openerp-20101224045615-4x194c2rh4bukhwi
date: 2010-12-24 04:56:15 +0000
build-date: 2010-12-26 11:44:57 +0700
revno: 3149
branch-nick: server

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

I run the RML report through xmllint and found no error

$ xmllint --noout medical_lab/report/labtest.rml

Revision history for this message
xrg (xrg) wrote : Re: [Bug 694409] Re: Exception: Start tag expected, '<' not found, line 1, column 1

On Sunday 26 December 2010, you wrote:
> I run the RML report through xmllint and found no error
>
> $ xmllint --noout medical_lab/report/labtest.rml
>
>
> ** Attachment added: "labtest.rml"
>
> https://bugs.launchpad.net/openobject-server/+bug/694409/+attachment/17763
> 67/+files/labtest.rml

Hello.
Your issue seems to refer to the "Medical" project, not directly supported by
OpenERP so far. Luis Falcon knows better than us how far the porting of his
code to v6.0 has gone.
However, we are keen to help you debug this issue.

Please, do NOT use Windows when you want to write any decent code at all...

I just opened the file and found (copy-paste of 'less' terminal):
==> append : to filename to view the HTML source
<U+FEFF><?xml version="1.0" encoding="UTF-8"?>
="15.0" y1="42.0" width="539" height="758"/>
[[repeatIn(objects,'patient')]] LABO ...

See? Some editor is screwing your files.

Please allow me now to set this bug as invalid.

Changed in openobject-server:
status: New → Invalid
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

Sorry for the noise and many thanks for the feedbacks and tips. I was also just discover what is the culprit by switching back to the old day vi tool (vi -b). Gedit didn't report this to me (maybe I don't know the option to show all the hiden chars).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.