error printing report using jasper_server/6.1

Bug #928213 reported by Enapps Ltd OpenERP Partner London UK
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JasperReport Server Connector
Fix Released
Low
Christophe CHAUVET
6.0
Fix Released
Low
Christophe CHAUVET
6.1
Fix Released
Low
Christophe CHAUVET

Bug Description

Hello, thank you for working on this module for 6.1.

Sorry for the delay testing I've been busy debugging a database.

Checked a few different configurations so I'm certain the setup is OK on my end however when I try and print a report I get the following error:
[2012-02-07 12:01:28,783][?] ERROR:web-services:[01]:
[2012-02-07 12:01:28,783][?] ERROR:web-services:[02]: Environment Information :
[2012-02-07 12:01:28,783][?] ERROR:web-services:[03]: System : Linux-2.6.35-30-generic-pae-i686-with-Ubuntu-10.10-maverick
[2012-02-07 12:01:28,783][?] ERROR:web-services:[04]: OS Name : posix
[2012-02-07 12:01:28,783][?] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2012-02-07 12:01:28,784][?] ERROR:web-services:[06]: Description: Ubuntu 10.10
[2012-02-07 12:01:28,784][?] ERROR:web-services:[07]: Release: 10.10
[2012-02-07 12:01:28,784][?] ERROR:web-services:[08]: Codename: maverick
[2012-02-07 12:01:28,784][?] ERROR:web-services:[09]: Operating System Release : 2.6.35-30-generic-pae
[2012-02-07 12:01:28,784][?] ERROR:web-services:[10]: Operating System Version : #56-Ubuntu SMP Mon Jul 11 21:51:12 UTC 2011
[2012-02-07 12:01:28,784][?] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2012-02-07 12:01:28,784][?] ERROR:web-services:[12]: Operating System Locale : en_GB.UTF8
[2012-02-07 12:01:28,784][?] ERROR:web-services:[13]: Python Version : 2.6.6
[2012-02-07 12:01:28,784][?] ERROR:web-services:[14]: OpenERP-Server Version : 6.1rc1
[2012-02-07 12:01:28,784][?] ERROR:web-services:[15]: Exception: ('Error', 'Impossible to parse XML error message')
[2012-02-07 12:01:28,784][?] ERROR:web-services:[16]: Traceback (most recent call last):
[2012-02-07 12:01:28,784][?] ERROR:web-services:[17]: File "/home/openerp/openerp6.1/server/trunk/openerp/service/web_services.py", line 736, in go
[2012-02-07 12:01:28,784][?] ERROR:web-services:[18]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2012-02-07 12:01:28,784][?] ERROR:web-services:[19]: File "/home/openerp/openerp6.1/addons/trunk/jasper_server/jasper.py", line 48, in create
[2012-02-07 12:01:28,784][?] ERROR:web-services:[20]: raise except_osv(e.title, e.message)
[2012-02-07 12:01:28,784][?] ERROR:web-services:[21]: except_osv: ('Error', 'Impossible to parse XML error message')
[2012-02-07 12:01:29,682][?] DEBUG:web-services:netrpc: communication-level exception
Traceback (most recent call last):
  File "/home/openerp/openerp6.1/server/trunk/openerp/service/netrpc_server.py", line 62, in run
    result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
  File "/home/openerp/openerp6.1/server/trunk/openerp/netsvc.py", line 324, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/openerp/openerp6.1/server/trunk/openerp/service/web_services.py", line 672, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/openerp6.1/server/trunk/openerp/service/web_services.py", line 788, in exp_report_get
    return self._check_report(report_id)
  File "/home/openerp/openerp6.1/server/trunk/openerp/service/web_services.py", line 766, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/home/openerp/openerp6.1/server/trunk/openerp/netsvc.py", line 65, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'Error', u'Impossible to parse XML error message')

Related branches

Revision history for this message
Enapps Ltd OpenERP Partner London UK (enapps-london-uk) wrote :

Please ignore this bug as we got some reports printing without a problem now on another server.

thanks

Changed in openerp-jasperserver:
status: New → Invalid
Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi

This problem appear when runReport not found with JasperServer > 4.2.1 but i don't why parse error message failed, that why i just report a message to indicate "Error message cannot be parse"

It is also present in 6.0

I try to fix definitively this bug

Regards,

Revision history for this message
Colin MacMillan (colin-macmillan) wrote :

Hello Christophe, I can confirm that we do not get an error in JasperServer 4.5 using the GTK client.

Many thanks
Colin

Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hello

I found the problem, the error message is now send in UTF-8, and we must parse on a a str()

It fix for 6.0 and 6.1

Regards,

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

Other bug subscribers

Remote bug watches

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