Hello,
I've installed the modules jasper_server and jasper_accountreport.
I have tried to print the report accoun_balancetiers.
I had this error message :
2010-04-22 16:19:50,148] [31m[49mERROR[0m:web-services:[01]:
[2010-04-22 16:19:50,148] [31m[49mERROR[0m:web-services:[02]: Environment
Information :
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[03]: System :
Linux-2.6.31-20-generic-pae-i686-with-Ubuntu-9.10-karmic
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[04]: OS Name : posix
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[05]: Distributor
ID: Ubuntu
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[06]: Description:
Ubuntu 9.10
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[07]: Release:
9.10
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[08]: Codename:
karmic
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[09]: Operating
System Release : 2.6.31-20-generic-pae
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[10]: Operating
System Version : #58-Ubuntu SMP Fri Mar 12 06:25:51 UTC 2010
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[11]: Operating
System Architecture : 32bit
[2010-04-22 16:19:50,149] [31m[49mERROR[0m:web-services:[12]: Operating
System Locale : fr_FR.UTF8
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[13]: Python Version
: 2.6.4
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[14]: OpenERP-Server
Version : 5.0.5
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[15]: Last revision
No. & ID :
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[16]: Exception: 7
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[17]: Traceback
(most recent call last):
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[18]: File
"/usr/lib/openerp-server/service/web_services.py", line 687, in go
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[19]: (result,
format) = obj.create(cr, uid, ids, datas, context)
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[20]: File
"/usr/lib/openerp-server/addons/jasper_server/report_custom.py", line 75, in
create
[2010-04-22 16:19:50,150] [31m[49mERROR[0m:web-services:[21]:
msg=Message.load(cStringIO.StringIO(content)).records
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[22]: File
"build/bdist.linux-i686/egg/dime.py", line 295, in load
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[23]: return
Message(records = Record.load_all(stream))
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[24]: File
"build/bdist.linux-i686/egg/dime.py", line 286, in __init__
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[25]:
self.records = list(records)
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[26]: File
"build/bdist.linux-i686/egg/dime.py", line 269, in load_all
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[27]: record =
Record.load(stream)
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[28]: File
"build/bdist.linux-i686/egg/dime.py", line 250, in load
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[29]: raise
Record.UnsupportedVersion(version)
[2010-04-22 16:19:50,151] [31m[49mERROR[0m:web-services:[30]:
UnsupportedVersion: 7
The Jasperserver is installed and running. The serveur configuration on the
openerp side seems to be good (I can connect manually to the address of the
field name with jasperadmin/jasperadmin).
I didn't make any special configuration on The JasperServer, I don't know if I
had to.
My OpenERP version is 5.0.5, installed on an Ubuntu 9.10 with Python 2.6.4.
With some print, I saw that the original content message (from line 75 of
report_custom.py) is :
<xml><soapenv><soapenv><ns1><runReportReturn><?xml version="1.0"
encoding="UTF-8"?>
<operationResult version="2.0.1">
<returnCode><![CDATA[2]]></returnCode>
<returnMessage><![CDATA[/reports/test_salaire2/balancetiers is
not a valid report]]></returnMessage>
</operationResult>
</runReportReturn></ns1></soapenv></soapenv>
I see it says :
<returnMessage><![CDATA[/reports/test_salaire2/balancetiers is not a
valid report]]></returnMessage>
I don't know what I should do for that.
It seems that the error is due to the fact that the dime Message.load only
takes the first caracter of the content message "<which>> 3 = 7 -> the
UnsupportedVersion.
If someone knows about it, some help would be appreciated.
Thank you,
Thibaut.
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=54706#54706
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users